Desktops
Q: Merge sed coding?
I've been fiddling with some sed, most found through searching around the web, the 3 lines below work for me in that order one after another. I don't need the 3 backup files, if it can overwrite the original that could be great to.
Hope someone can help
Thanks
Matt
sed -i.bkp 's/^[ \t]*//'
sed -i.bkk '/^\s*$/d'
sed -i.bbb '/^[0-9]/ d'
Posted on Oct 8, 2015 2:07 PM
by VikingOSX,Solvedanswer
Mac OS X
What does this do for you? You may need to insert an 's' character after each semi-colon.
sed -i.bkp 's/^[ \t]*//;/^\s*$/d;/^[0-9]/d'
Posted on Oct 8, 2015 2:12 PM