using commands to output path, filename and info to a txt file
ok, this might be a bit difficult but here goes
I have a directory, say /file
in said directory there are aprox 20 files with the structure soXXXXXX.xml where XXXXXX is a number
what i need is to list all these files with their path and with XXXXXX right next to it
Or better yet, seperate the two by pipe "|" and ending with a pipe
i can get the list of the files with find
find ./ -name "so*.xml" -print > list.txt
but that just gives ./so123456.xml,
i'd need to strip out the . at the start and then take the 123456 out of the line, which i havent got a clue how to do then add a | in the middle.
thanks in advance
and this is supposed to be run from the command line correct?
hmm... ok. well i tested it doing an "echo ./so12345.xml | awk ..." so i guess the find output is different. i'm sure you can tweak it ;-)
|All times are GMT -5. The time now is 01:06 PM.|