![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| read space filled file and replace text at specific position | COD | Shell Programming and Scripting | 6 | 04-21-2008 02:40 AM |
| Need Script to delete multiple entries from a file | sidewayz | Shell Programming and Scripting | 1 | 02-14-2008 08:38 AM |
| File read/delete synchronization in unix | saumya.c | UNIX for Dummies Questions & Answers | 2 | 02-08-2008 10:15 AM |
| Need to delete multiple lines in a file. | kangdom | Shell Programming and Scripting | 6 | 10-16-2006 08:02 AM |
| when I try to run rm on multiple files I have problem to delete files with space | umen | UNIX for Dummies Questions & Answers | 1 | 09-20-2005 12:20 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
How to delete multiple space or tabs from a read only file
Hi,
Actually I am want to cut the three fields of "file-nr" file. [yogender@gfmdatabase yogender]$ cat /proc/sys/fs/file-nr 638 219 52270 I want to assign these value to diffrent varibales as follow:- a=638 b=219 c=52270 I tried to use cut command for this purpose and also tried to squeeze all sapces to a single space, but didn't succed. I know file-nr is a read only file but there would be any way to cut these fields/values. Kindly help me with this. Thanks - Yogender |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
Could you Please suggest how can i assign these values to three diffrent variables? Thanks- Yogi |