Search Results

Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: Gromit ; Forum: IT Professionals' Lounge and child forums
Forum: IT Professionals' Lounge Nov 12th, 2008
Replies: 9
Views: 1,310
Posted By Gromit
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
Posted By Gromit
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
Posted By Gromit
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
Posted By Gromit
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
Posted By Gromit
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...
Showing results 1 to 5 of 5

 


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

©2003 - 2009 DaniWeb® LLC