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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regexp query 1

Status
Not open for further replies.

ranjit

Technical User
Apr 14, 2000
131
GB
[tt]

Hi,

I'm looking for an awk regular expression for a pathname of any length. For example, capable of picking up all the paths below:

/opt/install/db
/informix/data/bin/data
/mqseries/install/help/docs
/u/dwk/ops/archive


This is to allow for substition to an alternative path later in the awk script.

Thanks,


[/tt]
 
/\/[/a-z]+/ should do it? You could add A-Z0-9 to it if you wish too.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top