prepend to a file one liner shell?
Posted
by elmarco
on Stack Overflow
See other posts from Stack Overflow
or by elmarco
Published on 2008-09-10T15:17:09Z
Indexed on
2010/03/20
15:41 UTC
Read the original article
Hit count: 463
This is probably a complex solution.
I am looking for a simple operator like ">>", but for prepending.
I am afraid it does not exist. I'll have to do something like
mv $F tmp cat header tmp > $F
Anything smarter? (I am not fond of tmp files)
© Stack Overflow or respective owner