try this:
a=`ls -1` for file in $a; do fileb=`echo $file | sed "s/?//g"`; mv "$file" "$fileb"; done
check it furzt by populating a temp directory with files like: asd?as?asda asd?asdas?asfd? sdf??Sdfsd
and then execute the script
Carlos wrote:
hi the filenames have "?" in them. for example "charts.jsp?securitySymbol=BAL"
..and i have like 200++ files with "?" in them... how do i make a bash script just to remove the "?".
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ --
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
-- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
