sed

-e followed by the editing command
-n don't print all the lines
-E  use extended regular expressions
cat file1 | sed 's/\\/\//g'         # what do these do?

cat file1 | sed -n '2,4p'
cat file1 | sed -n '75,$p'

ls *.JPG | sed 's/JPG/jpg/g'