Unix/Linux Go Back    


UNIX for Beginners Questions & Answers If you're not sure where to post a Unix or Linux question, post it here. All unix and Linux beginners welcome in this forum!

Need help in command

UNIX for Beginners Questions & Answers


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 05-31-2016
arun888 arun888 is offline
Registered User
 
Join Date: Jun 2015
Last Activity: 7 June 2016, 5:55 AM EDT
Posts: 72
Thanks: 36
Thanked 1 Time in 1 Post
Need help in command

hi all,

can anyone help me out how to find a specific word in the all files in the specific directory.

Server : HP unix server.

Thanks,
Arun
Sponsored Links
    #2  
Old Unix and Linux 05-31-2016
RudiC RudiC is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 20 October 2017, 2:22 PM EDT
Location: Aachen, Germany
Posts: 11,479
Thanks: 310
Thanked 3,561 Times in 3,276 Posts
grep word *
Sponsored Links
    #3  
Old Unix and Linux 05-31-2016
arun888 arun888 is offline
Registered User
 
Join Date: Jun 2015
Last Activity: 7 June 2016, 5:55 AM EDT
Posts: 72
Thanks: 36
Thanked 1 Time in 1 Post
i have plenty of files in many directory. speicifically need to find out the files using the word.

---------- Post updated at 08:48 AM ---------- Previous update was at 08:38 AM ----------

using that specific word i need to find out the code which is used by that word.

---------- Post updated at 08:55 AM ---------- Previous update was at 08:48 AM ----------

i have tried tis

Code:
find /ram/cik-prod/ -type f -exec grep 'JOB_STEP_ID' /dev/null {} \;

Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SH script, variable built command fails, but works at command line oly_r Shell Programming and Scripting 8 09-14-2012 05:56 PM
passing command output from one command to the next command in cshell kaaliakahn UNIX for Dummies Questions & Answers 2 02-10-2012 04:59 PM
Need help! command working ok when executed in command line, but fails when run inside a script! 4dirk1 Shell Programming and Scripting 4 12-02-2010 05:47 AM
AIX:Command to get netaddress/subnet address command in IPv4/IP6 rookie8278 AIX 2 06-17-2009 11:35 AM
inconsistent ls command display at the command prompt & running as a cron job rajranibl SuSE 5 07-30-2007 08:26 AM



All times are GMT -4. The time now is 04:01 PM.