Results 1 to 3 of 3
server 12:10 uid:gid> ls -l app-validator
lrwxrwxrwx 1 skedev etdit 24 Aug 24 06:52 app-validator -> app-validator-1.3.22/
server 12:10 uid:gid> ls -l app-validator | awk '{print $11}' | awk -F ...
- 09-01-2010 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 2
awk help
server 12:10 uid:gid> ls -l app-validator
lrwxrwxrwx 1 skedev etdit 24 Aug 24 06:52 app-validator -> app-validator-1.3.22/
server 12:10 uid:gid> ls -l app-validator | awk '{print $11}' | awk -F 'app-validator-' '{print $2}' | awk -F '/' '{print $1}'
1.3.22
I want to get 1.3.22. Is there anything that is more terse and effective than the above awk statement? Please suggest.
- 09-01-2010 #2Linux User
- Join Date
- Jan 2007
- Location
- cleveland
- Posts
- 452
welcome to the forum
you could use "cut" twice--
cut -d - -f5 | cut -d / -f1the sun is new every day (heraclitus)
- 09-02-2010 #3Just Joined!
- Join Date
- Sep 2010
- Posts
- 2
Thanks, it worked.
Thanks for the reply. It works perfectly.


Reply With Quote