var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Deleting a part of the line based on patterns
I need to do something as below:
george, john, mckay delete all here
everything from delete should be deleted, the out put should be,
george, john, mckay
Any help appreciated.
echo 'george, john, mckay delete all here' | sed -e 's/\(.*\) delete .*/\1/g'
This works perfectly...I am too weak at shell script could you help me with another problem...
I have a file like below:
gina, crab.george, john, joe, crab.mckay
Get rid of the 'crab.' and sort the rest of the output. I expect the output to be like:
george, gina, joe, john, mckay
Thanks for all your help.