Working with sed
Matthew A Henry
nr3m at unix.cis.pitt.edu
Fri Aug 10 06:45:56 AEST 1990
Hi,
I'm writing a script that uses sed, and am having trouble with one
part. I have a file that contains typical unix paths, one per
line, and would like to remove everything after the last forward
slash (/). In other words I would like the string:
/aaa/bbb/ccc/ddd/eee
to be changed to:
/aaa/bbb/ccc/ddd
Is this possible with sed? Any ideas e-mailed or posted would
be greatly appreciated.
Thanks,
Matt Henry NR3M
(412) 443-5071
...![allegra, bellcore, cadre, idis, psuvax1]!pitt!cisunx!nr3m
NR3M at PITTUNIX
nr3m at unix.cis.pitt.edu
More information about the Comp.unix.questions
mailing list