Using bash shell on Ubuntu 14.04.  Trying to do a simple search and replace on every line of a file.  I have triedperl -pi -e s/.*/DELETE FROM my_object_times where ID = '$1';/g ids.csvbut this leaves me with a file full of DELETE FROM my_object_times where ID = '';and everything I wanted to capture is not inserted at all.  What is a better way to do this search and replace?  I expected the final results to be something likeDELETE FROM my_object_times where ID = 'abcdef12341234abcdef';
Search and replace is not respecting my $1 token
perl;search;replace
This will do it:sed -i s/.*/DELETE FROM my_object_times where ID = '&';/ ids.csv