what is the best way to parse this file??:
/net/volume/test-101/test.txt
/net/volume/test-101/test2.txt
/net/volume/test-101/test3.txt
/net/volume2/test-120/test4.txt
/net/volume2/test-120/test5.txt
into this file:
located in: /net/volume/test-101/
test.txt
test2.txt
test3.txt
located in: /net/volume2/test-120/
test4.txt
test5.txt
----------
the first is an output from a tool i wrote that does a recursive list, greps out the path info, and prints it to a file. thanks so much in advance for the help
.
-c
/net/volume/test-101/test.txt
/net/volume/test-101/test2.txt
/net/volume/test-101/test3.txt
/net/volume2/test-120/test4.txt
/net/volume2/test-120/test5.txt
into this file:
located in: /net/volume/test-101/
test.txt
test2.txt
test3.txt
located in: /net/volume2/test-120/
test4.txt
test5.txt
----------
the first is an output from a tool i wrote that does a recursive list, greps out the path info, and prints it to a file. thanks so much in advance for the help
-c