[lug] Appending a file to files
Atkinson, Chip
CAtkinson at Circadence.com
Tue Jan 16 08:46:21 MST 2001
Don't know why it wouldn't work, but how about
for i in (bar/*); do
cat foo >> $i
done
> -----Original Message-----
> From: Glenn Murray [mailto:gmurray at Mines.EDU]
> Sent: Tuesday, January 16, 2001 8:24 AM
> To: Boulder Linux User's Group
> Subject: [lug] Appending a file to files
>
>
>
> Sorry if this is doubly posted, my first attempt
> to send this didn't seem to make it to the list.
>
> I want to append the file foo to all the files in
> the bar directory tree. Why doesn't this work?
>
> find bar -exec cat foo >> {} \;
>
> What does work?
>
> Thanks,
> Glenn
>
>
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>
More information about the LUG
mailing list