Computing.Net > Forums > Unix > Extraction Issue

Extraction Issue

Reply to Message Icon

Original Message
Name: prashanthraju
Date: March 29, 2007 at 03:32:04 Pacific
Subject: Extraction Issue
OS: Unix
CPU/Ram: 512 MB
Model/Manufacturer: 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


Report Offensive Message For Removal


Response Number 1
Name: nauj
Date: March 29, 2007 at 07:59:12 Pacific
Subject: Extraction Issue
Reply: (edit)

Try:

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

Hope it helps


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Extraction Issue

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge