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
I was trying to copy the files inside the path /home/user/check/Q1/dir/folder1/expected/n/a1.out1 and a1.out2 and a1.out3 to /home/user/check/Q2/dir/folder1/expected/n/
if n directory is not present at Q2/dir/folder1/expected/ then directory should be created first. And, script follow the... (5 Replies)
Discussion started by: Mannu2525
5 Replies
3. 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
4. Shell Programming and Scripting
Hi
I am looking for the correct syntax to find all files in the current directory without listing sub-directoris. I was using the following command, but it still returns subdirectoris and files inside them:
$ ls -laR | grep -v ^./
Any idea? Thanks
PS I am in ksh88 (4 Replies)
Discussion started by: aoussenko
4 Replies
5. Shell Programming and Scripting
I want to move the files in a dir to different dirs based on their file names.
Ex: i have 4 different files with name -
CTS_NONE_10476031_MRL_PFT20081215a.txt
CTS_NONE_10633009_MRL_PFT20091020a.txt
CTS_NONE_10345673_MRL_PFT20081215a.txt
CTS_NONE_10872456_MRL_PFT20091020a.txt
and the 1st... (4 Replies)
Discussion started by: Sriranga
4 Replies
6. UNIX for Dummies Questions & Answers
I want to move the files in a dir to different dirs based on their file names.
Ex: i have 4 different files with name -
CTS_NONE_10476031_MRL_PFT20081215a.txt
CTS_NONE_10633009_MRL_PFT20091020a.txt
CTS_NONE_10345673_MRL_PFT20081215a.txt
CTS_NONE_10872456_MRL_PFT20091020a.txt
and the 1st... (2 Replies)
Discussion started by: Sriranga
2 Replies
7. Shell Programming and Scripting
Hi all,
I have a directory with many subdirectories each named like so: KOG0001, KOG0002, ...KOG9999.
Each of these subdirectories contain a variable number two kinds of files (nuc and prot) named like so: Capitella_sp_nuc_hits.fasta (nuc) and Capitella_sp_prot_hits.fasta (prot). The... (2 Replies)
Discussion started by: kmkocot
2 Replies
8. Shell Programming and Scripting
Hello everybody,
i'm dummy for unix but i want to learn something.
i want to search the working directory and its subdirectories( all ) to find the files which are more than 1024 bytes.
So which commands must i learn?
Thanks to all. (13 Replies)
Discussion started by: redbeard_06
13 Replies
9. Shell Programming and Scripting
Hi there,
say the package is in the ~/ and it's ~/packageFoo.pm
I can use usePackage.pl in ~/ (~/usePackage.pl).
Now, if I move it to ~/subDIR/usePackage.pl, the script won't work because it's not in the same DIR with packageFoo.pm
How can i fix it?
Thanks
Gusla (1 Reply)
Discussion started by: gusla
1 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