LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] sed help needed (or whichever tool)

[ILUG] sed help needed (or whichever tool)

Tom Salmon tom at tomsalmon.com
Tue Jan 24 17:25:36 GMT 2012


Hi Bernhard,

A simple bit of bash should be enough:
	for file in *; do mv "$file" "$file.suffix"; done

Just in case, best take a backup copy of the files before you start.


Tom.

On Tue, Jan 24, 2012 at 05:04:53PM +0000, Bernhard Rohrer wrote:
> Hiya
> 
> I need to rename all the files in a directory by adding a suffix to
> them. the filenames look something like:
> 1326659048.M664667P14231.office.domain.net,S=2287,W=2346:2,Sa
> 
> any help appreciated. this exceeds my comand line skills.
> 
> Thanks
> 
> Bernhard
> -- 
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug
> Who we are : http://www.linux.ie/
> Where we are : http://www.linux.ie/map/

-- 
Tom Salmon BEng (Hons)
Software Engineer

  http://tomsalmon.eu/



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell