![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linux Shell Question: how to print the shell script name ? | meili100 | UNIX for Dummies Questions & Answers | 3 | 07-01-2008 02:55 PM |
| Urgent: selecting unique specific content of a file using shell script | jisha | Shell Programming and Scripting | 2 | 01-08-2008 08:45 AM |
| shell script question | tselvanin | Shell Programming and Scripting | 2 | 08-28-2007 10:53 PM |
| Shell script to check the unique numbers in huge data | namishtiwari | Shell Programming and Scripting | 7 | 08-10-2007 10:38 AM |
| Problem with shell script...ORA-00904:invalid identifier | bhagat.singh-j | Shell Programming and Scripting | 12 | 11-13-2006 10:33 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Shell Script Unique Identifier Question
i All
I have scripting question. I have a file "out.txt" which is generated by another script the file contains the following Code:
my_identifier8859574 logout I now have another script which uses this file, It needs the number Only that comes after my_identifier I havn't a breeze how to do this. I assume i need to use awk something like VALUE=cat out.txt | grep my_identifier | awk ..... any suggestions? Cheers Graham |
|
||||
|
Apologies for asking again
but I am now having an issue with TR I want to make double sure that the value of id has no non-numerical characters in it. Code:
if [ ($id | tr -d '[:digit:]') == '' ] then #let do the next bit else #email me fi im getting the error ./test.sh[12]: Syntax error at line 12 : `(' is not expected. any advice? Cheers Graham |
![]() |
| Bookmarks |
| Tags |
| manipulation, variable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|