Jan 31, 2003 #1 ubstek Programmer Feb 2, 2001 9 US Hello, I have a bunch of scripts in a dir, and I need to add string $Id$ in the first line of all these scripts. I want to automate this process. Thank you very much in advance.
Hello, I have a bunch of scripts in a dir, and I need to add string $Id$ in the first line of all these scripts. I want to automate this process. Thank you very much in advance.
Jan 31, 2003 #2 mrregan MIS Nov 2, 1999 490 US How about: for i in `ls` do echo "$Id$" > /tmp/newfile cat $i >> /tmp/newfile mv /tmp/newfile $i done Upvote 0 Downvote
How about: for i in `ls` do echo "$Id$" > /tmp/newfile cat $i >> /tmp/newfile mv /tmp/newfile $i done
Jan 31, 2003 Thread starter #3 ubstek Programmer Feb 2, 2001 9 US PERFECT !! Thank you. Upvote 0 Downvote