Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parsing output of command for a string

Status
Not open for further replies.

mbach

Technical User
Dec 12, 2000
24
0
0
US
All,
I need to parse some output for file paths which were not backed up. The file paths all start with a capital letter followed by a colon. (ie...C:\Program Files\Winnt\system32\config...
The problem is that the file paths are not always listed in the same field (ie...awk '{print $8}') and I can't index off of any keyword to find the field with the file path. I tried awk but the spaces in the file path threw it off...ie..it would only print C:\Program instead of C:\Program Files\...\...
Anyone have an idea to solve this?
Mike B
 
Could you post some of the output and which parts you're after? If it can be parsed, Perl can do it.

----------------------------------------------------------------------------------
...but I'm just a C man trying to see the light
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top