I've got a data file containing lines in 2 basic formats e.g.
1 f none /usr/stdapp/cnvcmd/cnvcmd.ast 0666 root other 22681
and
0003d000gh0root/usr/.install/stdapp/defapp/cat008/enccat.ast
I want a pattern match will will pull out the file name with its path from both types of rows. I can get it to work with one or the other but not both! Can you do better? Thanks.
1 f none /usr/stdapp/cnvcmd/cnvcmd.ast 0666 root other 22681
and
0003d000gh0root/usr/.install/stdapp/defapp/cat008/enccat.ast
I want a pattern match will will pull out the file name with its path from both types of rows. I can get it to work with one or the other but not both! Can you do better? Thanks.