1
I would like to go through a file and remove certain sequences in between delimiters.
For example
drw---- 00000000 11111111 0 ./a/
drw---- 00000000 11111111 0 ./b/
d------ 00000000 11111111 0 ./c/
d------ 00000000 11111111 0 ./d/k/
d------ 00000000 11111111 0 ./e/l/r/
d------ 00000000 11111111 0 ./f/m/s/x/
------- 00000000 11111111 89 ./g/n/t/y/C.xml
dr----- 00000000 11111111 0 ./h/o/u/z/
dr-r--- 00000000 11111111 0 ./i/p/v/A/D/
d--r--- 00000000 11111111 0 ./j/q/w/B/
Would become
drw---- ./a/
drw---- ./b/
d------ ./c/
d------ ./d/k/
d------ ./e/l/r/
d------ ./f/m/s/x/
------- ./g/n/t/y/C.xml
dr----- ./h/o/u/z/
dr-r--- ./i/p/v/A/D/
d--r--- ./j/q/w/B/
Where the starting delimiter is the 2nd space in the file, and the ending delimiter is ./
I'm really new to cygwin and all of it's clever tools, so I have no idea what to do. I'm pretty sure I could use sed and regular expressions somehow, but I simply don't know enough to come up with the solution on my own.
delimiter <-- that is how you spell it. You got it right elsewhere but not in the subject. The word limit is in there. – barlop – 2012-04-06T19:28:00.217