Search Results

Search: Posts Made By: jharish
36,457
Posted By gaur84
You can extract the word from this scripts ...
You can extract the word from this scripts

awk '{for(i=1;i<=NF;i++) {if($i ~/[0-9]/) {print $i}}}' filename
36,457
Posted By pseudocoder
[^ ]*[0-9][0-9][0-9][0-9][^ ]* should be the...
[^ ]*[0-9][0-9][0-9][0-9][^ ]*
should be the proper regex.

$ cat sedinput
1) Adaptec SCSI RAID 5445
2) Adaptec SCSI 5445S RAID
3) ICP ICP5085BL SATA RAID
$ grep -o "[^...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 01:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy