bash, echo redirection not to the last line but first
Hi,
What would be an elegant method to add $var to the beginning of a file?
for instance one does to add a line:
echo $var >> file.txt
echo $var >> file.txt <-- elegant but here at beginning?
so that it reads:
$var
thanks
|