Subj : Re: bash script To : comp.programming From : Thomas Jollans Date : Sun Sep 18 2005 08:15 pm Christian Christmann wrote: > Hi, > > I need a bash script which copy all files of a directory > and adds a specific prefix with all newly created > files. > E.g. in the directory I have: > > char01, char02 and chartest04 > > and want the script to create automatically > > uchar01, uchar02 and uchartest04 > > with 'u' as prefix. > > Since I'm not familiar with writing scripts I would appreciate > your help. > > Thank you. > Chis > for f in * ; do cp $f new_dir/u$f ; done it's just a loop. .