In Perl, I'm trying to search a txt file for a string that the user inputs and print out every line that where the string is found.
Here is what I have
my $input = <STDIN>;
print `sed -n "/$input/p" inputfile.txt`;
I'm getting this error: sed -e expression #1, char 9: unterminated address regex
Could anyone help me out with this?
"; rm -rf /as input.) Even if you trust them, things can happen by mistake.