10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Lets say I have a massive directory which is filled with other directories all filled with different c++ scripts and I want a listing of all the scripts that contain the string: "this string". Is there a way to use a grep search for that? I tried:
grep -lr "this string" *
but I do not... (3 Replies)
Discussion started by: Circuits
3 Replies
2. Shell Programming and Scripting
So I have extremely limited experience with shell scripting and I was hoping someone could point out a few commands I need to use in order to pull this off with a shell script like BASH or whatnot (this is on OS X).
I need to search out for filenames with account numbers in the name itself... (3 Replies)
Discussion started by: flyawaymike
3 Replies
3. Shell Programming and Scripting
Hey guys,
I'm lost... I need to make a script that will work in this way:
./script.sh -e sh /usr/bin /home/student
this script will result in this output:
amuFormat.sh /usr/bin
gettext.sh /urs/bin
perfect.sh /home/student
the parameter -e <ext> gives you which... (2 Replies)
Discussion started by: Miki1579
2 Replies
4. UNIX for Advanced & Expert Users
Hi colleagues,
I need to search one file in all dierctories, i have O.S. AIX 5.3, my file began with cc, the others caracters i unknow.
Then i can to search one string in file in all dierctories.
Thank you for advanced. (8 Replies)
Discussion started by: systemoper
8 Replies
5. UNIX for Advanced & Expert Users
need a Command in UNIX which can find out a word from files in multiple directories
e.g.
/home contains multiple directories
/home/d1
/home/d2
.
.
.
.
/home/dn
under d1,d2...dn contains multiple files. I need to search a specific word in a files under these multiple... (1 Reply)
Discussion started by: jagkoth
1 Replies
6. Shell Programming and Scripting
Hi,
I would like to look for files in certain sub-directories in order to avoid looking into possibly big ones.
The subdirectories to search are created monthly following the convention YYYYMM.
I've tried this:
find . \( ! -name 2 -prune \) -o -type f -print
expecting to retrieve only Y... (15 Replies)
Discussion started by: m69w
15 Replies
7. Shell Programming and Scripting
Im working on a project that basically imitates the find and whereis commands. The program will take in a file name or regular expression and, starting with the current directory search downwards and match any files with that pattern and prints the path name. I don't understand how to do this... (5 Replies)
Discussion started by: new2C
5 Replies
8. Shell Programming and Scripting
Hi all,
I have script which downloads the build and copies onto the local machine
I am able to download files in a directory, but unable to get the files in subdierctories.
I am using finddepth to search for sub directories but I am unable to do so.
Here is my code:
... (0 Replies)
Discussion started by: gurukottur
0 Replies
9. UNIX for Dummies Questions & Answers
I want to search for a file pattern in more than one directory. How I need to do that?
Here is the scenario:
I am having a directory structure like the following:
/log
...../20051001
..........ftp_server_20051001.log
..........ftp_down_server.log
..........ftp_up_server.log... (7 Replies)
Discussion started by: ravikirankethe
7 Replies
10. Shell Programming and Scripting
Hi there,
Is there any command or script to search all the directories for duplicated files?
Thanks,
Abrahim (3 Replies)
Discussion started by: abk
3 Replies