Stream editor commands
Played with srtream files for various things to be played:
sed -i s/<search-teaxt>/<replace with> filename
#when removing forward slashes from file:
sed -i /\\/// filename # we don’t have to replce anything so we are not writing it.
#put inverted comma in each line
#put inverted comma in each line sed 's/.*/"&"/'
#without spaces sed 's/ *\(.*\) *$/"\1"/'
#skip empty lines
sed 's/ *\(.*\) *$/"\1"/'