Forum: Shell Scripting Dec 18th, 2008 |
| Replies: 5 Views: 1,751 ls *.done | while read line ; do mv $line $(basename $line .done) ; done |
Forum: Shell Scripting Nov 14th, 2008 |
| Replies: 4 Views: 785 (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 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 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 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 |