Computing.Net > Forums > Unix > Extraction Issue

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Extraction Issue

Reply to Message Icon

Name: prashanthraju
Date: March 29, 2007 at 03:32:04 Pacific
OS: Unix
CPU/Ram: 512 MB
Product: HP
Comment:

Hi all,
I extracted one line from from a file using ls command & output is as follows
Deployed : 25 File uploaded : 2560 File Rejected : 1
Now i need to extract only 2560 from the above line..Output will be always same
Can any one help to extract this value.
Prob with cut command is that it cuts the file only.....

Thanks in advance


Prashanth



Sponsored Link
Ads by Google

Response Number 1
Name: nauj
Date: March 29, 2007 at 07:59:12 Pacific
Reply:

Try:

echo "Deployed : 25 File uploaded : 2560 File Rejected : 1" | cut -c31-35

Hope it helps


0
Reply to Message Icon

Related Posts

See More


FTP Remote file existence... transpose rows & cols...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Extraction Issue

extract a specific line from file www.computing.net/answers/unix/extract-a-specific-line-from-file/5381.html

extracting text from finger www.computing.net/answers/unix/extracting-text-from-finger/5064.html

Extracting File names www.computing.net/answers/unix/extracting-file-names/4597.html