Need to find the .cst file in UNIX


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need to find the .cst file in UNIX
# 1  
Old 11-25-2014
Need to find the .cst file in UNIX

I need to find out the .cst file in my unix.

wat would be the command to find it out where it wil present in unix
# 2  
Old 11-25-2014
Quote:
Originally Posted by ramkumar15
I need to find out the .cst file in my unix.

wat would be the command to find it out where it wil present in unix
Hello ramkumar15,

Following command may help you.


find . -type f -name "*.cst"


Above command will look for all cst files if you want to look for a specific name you can make changes accordingly to command. Also you can use search option in forum and refer the man find page for same.


Thanks,
R. Singh
This User Gave Thanks to RavinderSingh13 For This Post:
# 3  
Old 11-25-2014
I need to find the word "custom" where those words are present in the scripts.

wat command would be appropriate.
# 4  
Old 11-25-2014
Hello ramkumar15,

Following may help you in same.

Code:
find . -exec grep "custom" {} \; -print 2>/dev/null  | awk '/^\./ {print $0}'

Thanks,
R. Singh
This User Gave Thanks to RavinderSingh13 For This Post:
# 5  
Old 11-25-2014
With grep (GNU grep) 2.20 try
Code:
grep -r custom *

# 6  
Old 11-27-2014
the below command searches only in the mentioned directory.

find . -exec grep "custom" {} \; -print 2>/dev/null | awk '/^\./ {print $0}'

if the word need to be searched in the all directories what would be the command.
# 7  
Old 11-27-2014
find . will search your cwd and directories below. What "all" directories do you want? For the entire disk, use "/" as the starting directory. If your find version has the printf action, you can save the awk part...
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Solaris

Convert GMT date and time to CST

I need away to convert the following GMT date and time value RAW_TME= 042720171530 "mmddccyyhhmm" to Localhost time. In this case it is in central time. Here is what I came up with but it does not look efficient: RAW_TME=042720171530 logmm=`echo $RAW_TME | cut -c1-2` logdd=`echo $RAW_TME |... (4 Replies)
Discussion started by: mrn6430
4 Replies

2. UNIX for Beginners Questions & Answers

UNIX utility to find difference in folder, file and contents of file against a base version

Hi, I am trying to find out whether there are any Unix utilities that compares folders, files and contents within the file and provides a comprehensive report. The comparison can be against base version of a folder and file with content. Can you please let me know of such a utility? Thanks,... (6 Replies)
Discussion started by: Sripathi_ks
6 Replies

3. Shell Programming and Scripting

How to find complete file names in UNIX if i know only extention of file

Suppose I have a file which contains other file names with some extention . text file containt gdsds sd8ef g/f/temp_temp.sum yyeta t/unix.sum ghfp hrwer h/y/test.text.dat if then.... I want to get the complete file names, like for above file I should get output as temp_temp.sum... (4 Replies)
Discussion started by: panchal
4 Replies

4. Shell Programming and Scripting

CST to UTC conversion

Hi ALL, In a file i have the date and time as: 2009-04-28 23:10:05 CST My Local Unix server time is in UTC. Now i need to convert the above date and time in the file to UTC timezone and convert to number of seconds. Kindly suggest me on this, ---------- Post updated at 05:13 AM... (6 Replies)
Discussion started by: HemaV
6 Replies

5. Shell Programming and Scripting

Need to write a script in UNIX to find a file if another file exists

So I have a lot of Java applications on my servers all having their own folder from the applications subdirectory. Now, I need to do the following. Search all the applications subdirectories for message.jar. If the message.jar file exists, I need to search the application directory for... (1 Reply)
Discussion started by: mmdawg
1 Replies

6. UNIX for Dummies Questions & Answers

Find in file. Does this exist under UNIX?

Hello, I have the following problem. I know there is a file somewhere on a UNIX machine that contains a string, but I don't know where. With the "grep" command, I can look into a file but only if I'm located in the correct directory. With the "find" command, I can search across directories... (2 Replies)
Discussion started by: scampsd
2 Replies

7. Shell Programming and Scripting

how to find a file in UNIX without find command?

given a start directory,a filename,how to find it? (3 Replies)
Discussion started by: bluo
3 Replies
Login or Register to Ask a Question