Hi,
How do I use a variable with sed?? For example:
if i set a $USER to be kjones
then insert the $USER variable in the first line of a file, using the below command
sed -e '1i$USER' | cat > temp
but this doesn't work ... i get $USER in the file and not the value.
How do I use a variable with sed?? For example:
if i set a $USER to be kjones
then insert the $USER variable in the first line of a file, using the below command
sed -e '1i$USER' | cat > temp
but this doesn't work ... i get $USER in the file and not the value.