![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to filter out some paragraphs in a file | cnlhap | Shell Programming and Scripting | 7 | 08-19-2008 04:03 PM |
| File filter | Dastard | Shell Programming and Scripting | 3 | 09-06-2007 02:50 PM |
| how do I filter double lines from a txt file | I-1 | Shell Programming and Scripting | 10 | 02-20-2007 01:21 PM |
| filter parts of a big file using awk or sed script | apalex | Shell Programming and Scripting | 1 | 07-25-2005 05:45 PM |
| filter out certain column from a file | CamTu | Shell Programming and Scripting | 4 | 04-04-2005 07:24 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I have a file in which there are strings given below:
inode 1138932c(mqsiadm) inode 1257904c(mqsiadm) I want to get the nos. only form these. The o/p should be 1138932 1257904 How to filter this out ?? |
|
||||
|
Hey, I know you have used following one..
tr -d Deletes each character from standard input that is contained in the string specified by String1. Notes: 1 When the -C option is specified with the -d option, all characters except those specified by String1 will be deleted. The contents of String2 are ignored unless the -s option is also specified. 2 When the -c option is specified with the -d option, all values except those specified by String1 will be deleted. The contents of String2 are ignored unless the -s option is also specified. I have contents in the file... /clocal/mqbrkrs/user/mqsiadm/sanjay: inode 1138932c(mqsiadm) inode 1257904c(mqsiadm) And when I run command given by you then I get following.. 47940411389321257904 Don't know from where its been generated ? ![]() |
|
||||
|
Quote:
inode 1138932c(mqsiadm) inode 1257904c(mqsiadm) Now tell me !! ![]() |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|