I have a question. i want to create a script called 'firstline' which contains two arguments. the first argument being a line of text and the second argument being a newly created file. The main purpose of script is to take the first argument (a line of text) and insert it into the top line in the second argument.
I want to achieve this in BASH using 'echo'
I have entered some script and it doesnt seem to work
} < $2
echo "this first line in $2 is "$1".
can you help??