appending text to all files that starts with a string
Posted
by learner135
on Stack Overflow
See other posts from Stack Overflow
or by learner135
Published on 2010-06-02T07:17:19Z
Indexed on
2010/06/02
7:33 UTC
Read the original article
Hit count: 208
How do I append a string to all the files in a directory that starts with a particular string?
I tried,
cat mysig >> F*
But instead of appending contents of mysig to all files starting with F, it creates a file named "F*". Obviously wildcard doesn't seem to work. Any alternatives? Thanks in advance.
Edit: Also how do I delete this newly created file "F*" safely?. Using
rm F*
would delete all the files starting with F which I wouldn't want.
© Stack Overflow or respective owner