Forum: IT Professionals' Lounge Nov 12th, 2008 |
| Replies: 9 Views: 1,310 Heh, for some reason the topic reply notification from this thread reminded me of this, so I had to share:
http://www.gnu.org/fun/jokes/ed.msg.html
-G |
Forum: IT Professionals' Lounge Nov 7th, 2008 |
| Replies: 9 Views: 1,310 vim all the way! If it's configured with syntax hilighting and search hilighting, and you can get used to the commands, it's the best ever for command line html/php/any scripting language you can... |
Forum: IT Professionals' Lounge Sep 11th, 2008 |
| Replies: 7 Views: 2,162 Hmm... well, technically you could run it all on one line like this:
for FILE in $(find . -type f -name '*4%3a*'); do NEWNAME=$(echo $FILE|sed s/'4%3a'//); mv -v $FILE $NEWNAME; done
but... |
Forum: IT Professionals' Lounge Sep 11th, 2008 |
| Replies: 7 Views: 2,162 Forgot to add comments!
#!/bin/sh
# first we need a list to work from. the
# "for" statement will loop through the results
# of our "find" command, using each result in turn
# as "$FILE".... |
Forum: IT Professionals' Lounge Sep 11th, 2008 |
| Replies: 7 Views: 2,162 Usually we use the "mv" (move) command to rename a file. Try something like this!
#!/bin/sh
for FILE in $(find . -type f -name '*4%3a*'); do
NEWNAME=$(echo $FILE|sed s/'4%3a'//)
mv -v... |