I'm taking in an arguement thats sorted in $file.
The $file contains a file name like file1.txt or something all files are in the same directory as the script..
Can I run sed on the file ? I was thinking of using something like
more file.txt | sed "s/http//"
Something like that is there a way to output the contents of the file and pipe it into sed ?
Thanks.
You don't need more. Just append the names of one or more files after the command:
sed "s/http//" file.txt file2.txt file3.txt