unix sed with */;

Score
0
Vote Up
April 20, 2011 at 05:45:57 Pacific
Specs: Windows 7

I was sent a script from a unix environment and am trying to figure out what this command is actually doing. I am working in a windows environment and need to know how to edit the file to achieve the same results.
The complete command line is
cat RUNSEQFIX.DDL | sed 's/; */;/'>ALTERSEQS.DDL

Reply ↓  Report •


#1
Vote Down
Score
6
Vote Up
April 21, 2011 at 06:33:42 Pacific

This sed script is removing all the spaces after the semicolon in each line of file RUNSEQFIX.DDL and creating file ALTERSEQS.DDL.

Beware that it only converts the first semicolon in each line of the file. If you have more than one semicolon in a line, the spaces with that semicolon is not changed.


Reply ↓  Report •
Reply to Message Icon Start New Discussion
Related Posts

« My memory card is not det... transfering files windows... »