On Monday, September 8, 2003, at 03:19 PM, Soren Harward wrote:
On Mon 08 Sep 2003 at 14:45:30, Hans Fugal said:* Grant Robinson [Mon, 8 Sep 2003 at 14:37 -0600] <quote>
Nah, bash will do this all by itself:
for f in auto*; do cp ${f} targetdir/bongo-${f##auto-}; done
Now that is a cool trick, and it worked perfectly. Thanks, Soren. Care to give a more detailed explanation on what the ${f## does?
Grant
____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
