Search Results

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: bugmenot ; Forum: Shell Scripting and child forums
Forum: Shell Scripting Dec 18th, 2008
Replies: 5
Views: 1,751
Posted By bugmenot
ls *.done | while read line ; do mv $line $(basename $line .done) ; done
Forum: Shell Scripting Nov 14th, 2008
Replies: 4
Views: 785
Posted By bugmenot
(while read line; do if [ $(echo $line | wc -c) -eq 1 ] ; then echo; else echo -n $line,; fi ; done<address.txt ) |sort >address.csv
Forum: Shell Scripting Dec 28th, 2007
Replies: 6
Views: 1,674
Posted By bugmenot
no, that's not it. a for loop splits on spaces, so if you have a file of name "foo bar", your code will first assign x to "foo", and then assign it to "bar" in the next iteration, but none of these...
Forum: Shell Scripting Dec 28th, 2007
Replies: 6
Views: 1,674
Posted By bugmenot
that might not work well on filenames with spaces

anyway, why can't you just do something like this?
rm -i *.psd
Forum: Shell Scripting Dec 25th, 2007
Replies: 2
Views: 2,128
Posted By bugmenot
umm... have you used vi before? if not, there are other editors like emacs and nano etc. that might be simpler to learn

anyway, vi has two modes, the command mode and insert mode. it starts in the...
Forum: Shell Scripting Oct 27th, 2007
Replies: 17
Views: 91,854
Posted By bugmenot
Showing results 1 to 6 of 6

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC