MLUG: Re: [MLUG] Renaming a bunch of files
Re: [MLUG] Renaming a bunch of files
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Thu, 1 Mar 2001, Mike Miller wrote:

> --------------------------------------------------------------------------
> #!/usr/bin/tcsh -f
> 
> set newname = `echo "$1" | awk -F: '{print $NF}'`
> mv "$1" "$newname"
> end
> --------------------------------------------------------------------------


Ack!  The 'end' doesn't belong there!  It should have been like this:


--------------------------------------------------------------------------
#!/usr/bin/tcsh -f

set newname = `echo "$1" | awk -F: '{print $NF}'`
mv "$1" "$newname"
--------------------------------------------------------------------------


Even shorter.  :-)

Mike

--
To manage your subscription, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/