The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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
why is this command not working? wrapster UNIX for Advanced & Expert Users 1 05-02-2008 06:11 AM
Sed command not working shashi_kiran_v UNIX for Dummies Questions & Answers 9 11-14-2006 08:01 PM
cd command not working er_aparna Shell Programming and Scripting 7 07-07-2006 10:38 PM
cp command not working groundlevel UNIX for Dummies Questions & Answers 7 03-22-2006 09:48 AM
last command not working antalexi SUN Solaris 3 08-04-2005 07:22 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-13-2008
Registered User
 

Join Date: Jun 2006
Posts: 58
Command not working

Hi,
I am running a command this way

grep -l ` cat get_list_data.lst | awk '{ print $2 }' ` /wss/test/trans/*CASE*

What I am trying to do is, get the second field from the file get_list_data.lst and then grep it in the path /wss/test/trans/
But it says

grep: can't open 00000000990001399144
grep: can't open 00000000990001399113


These numbers are the second filed outputs.

Please help.

Thanks and Regrds,
Gideon
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-13-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,493
Code:
awk '{ print $2 }' get_list_data.lst > ./data.sed
grep -l -f ./data.sed   /wss/test/trans/*CASE*
Reply With Quote
  #3 (permalink)  
Old 05-14-2008
Registered User
 

Join Date: Jun 2006
Posts: 58
Hi,
Thanks for the reply. But I could like to know the snag in the given command. Or the reason why it is not working.

Thanks and Regards,
Gideon.
Reply With Quote
  #4 (permalink)  
Old 05-14-2008
era era is online now
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,088
You need to use proper quoting.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:36 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0