All Questions
1
question
2
votes
1
answer
249
views
In bash, grep for a line beginning with \, and assign the result using backticks
In bash, I'm trying to grep a file for a line beginning with a \, and return the result using backticks.
For example:
echo \\Hello > myFile
out=`cat myFile | grep '^\\Hello'`
echo $out
returns ...