10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have multiple directories built in following manner
I have filenames having pattern ONE.XXX.dat TWO.ZZZ.dat and so on across the folders listed above
My objective is to list all filenames of a... (4 Replies)
Discussion started by: wahi80
2. Shell Programming and Scripting
Suppose i have a word "mail".
I have to search this word in all files inside a directory and it's sub-directories.
It will also search in all hidden directory and sub-directories.
If it finds this word in any file it will list that file.
How can i do this with perl/ruby/awk/sed/bash or... (9 Replies)
Discussion started by: cola
3. UNIX for Dummies Questions & Answers
Forgive me if there is an answer to this somewhere in the forums. I've gone through as much as I could but couldn't find a relevant answer.
What I'm trying to do is use the ll command to list some files in a subdirectory that matches a certain format.
I've tried ll *.*a* <subdirectory> but... (3 Replies)
Discussion started by: archaic
4. Shell Programming and Scripting
I was exploring find command and came across -prune option which would exclude search in a mention subdirectory.
My quesry is to search all files more that 100 MB size but exclude search in a subdirectory.
I am using below command,but somehow it is not working.
Can anybody help me... (6 Replies)
Discussion started by: usha rao
5. Shell Programming and Scripting
I'm trying to use the find command to return matches for a directory and file.
For example, given the following directories:
I'm expecting the following to be returned:
... (16 Replies)
Discussion started by: makodarear
6. Shell Programming and Scripting
Hi guys, sorry if my english not very well.. i have a problem.. i have a file and the structure is :
Folder/10.123.124.20/pm_data/A200808... (4 Replies)
Discussion started by: AdziE
7. Shell Programming and Scripting
if anyone could help me :)
I did a lot of search and 70% of answer is "how to count files in all subdirectories".
A basic problem for me is how to count files in every subdirectory separately then sort it by number of files
... (3 Replies)
Discussion started by: yorryk
8. Shell Programming and Scripting
I have to rename all occurance of CUST_MST to RESELLER_MST both in filename and file content under a directory (say D0) which contains multiple (2-3 levels) sub directory.
D0 -> D1 -> D2 has a file CUST_MST_TEMP.txt
this contains :
> cat /D0/D1/D2/CUST_MST_TEMP.txt... (3 Replies)
Discussion started by: sabyasm
9. Shell Programming and Scripting
I am writing a script which reads a file line by line and then assigns it to a variable like this 1090373422_4028715212.jpg. I have images with file name of this format in some other directory. In my script I want to assign variable with this file name and then find this filename in some other... (11 Replies)
Discussion started by: jyotib
10. Shell Programming and Scripting
I m newbie. Could u pls help me to write script on Sun solaris-
I have backup directory "/var/opt/backup/" where files are backed up in different directory "backup1" "backup2" "backup3".
I want to write a shell script which i will put in crontab and daily midnight it will... (1 Reply)
Discussion started by: thepurple