|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
grep problem
Hi,
I am running a command line from a solaris command line onto a red hat linux: Solaris line works: TODAY2="Feb" TODAY3="08" TODAY4="2012" search4=">>> file process at ... ${TODAY2} ${TODAY3} ........ ..T ${TODAY4}<<<" SF4=`grep "$search4" filename | nawk 'BEGIN {FS=" "} {print $13}'` echo $SF4: >>> file process at Wed Feb 08 14:54:53 GMT 2012<<< On Linux server it does not work it returns nothing????? as though it cannot find the string??? i am confused It is something to do with the .... but i need these as I am not sure what will be populated within these positions at that time. any help would be appreciated. ![]() |
| Sponsored Links | |
|
|
|
#2
|
||||
|
||||
|
can you provide the sample input file contents and the expected output
|
| Sponsored Links | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with grep | balesh | Shell Programming and Scripting | 2 | 04-19-2011 05:46 AM |
| Problem in GREP ???? | skyineyes | Shell Programming and Scripting | 1 | 12-16-2008 12:54 AM |
| problem with grep... | mpeyper | Shell Programming and Scripting | 2 | 08-28-2008 02:25 AM |
| Problem with GREP. | syndex | Shell Programming and Scripting | 2 | 07-11-2007 01:44 PM |
| grep problem | rraajjiibb | Shell Programming and Scripting | 4 | 11-17-2004 05:41 AM |
|
|