10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Is there a better way to search within a list of subfolders :
# dir2, dir3, dir6, ..... dir59 exists
A_LIST="$A_START_PATH/dir1 $A_START_PATH/dir4 $A_START_PATH/dir5"
find "$A_LIST" -type f -name"*.txt"
Now searching for all files in any subdirs... (2 Replies)
Discussion started by: jcdole
2. Shell Programming and Scripting
I have a folder with 4000 (*3) files like
gr_q4_gb-4000.anc... (6 Replies)
Discussion started by: sammy777888
3. Shell Programming and Scripting
I need a script/command to list out all the files in current path and also the files in folder and subfolders.
Ex: My files are like below
$ ls -lrt
-rw-r--r-- 1 abc users 419 May 25 10:27 abcd.xml
drwxr-xr-x 3 abc users 4096 May 25 10:28 TEST
Under TEST, there are... (2 Replies)
Discussion started by: divya bandipotu
4. Shell Programming and Scripting
Hi Unix Gurus,
I am able to copy only files that exist in the parent folder. My parent folder has sub folders and within sub folders there are lots files.
I need to copy folder, sub folders and files from Unix to the remote windows SFTP location.
The directory structure is something like... (1 Reply)
Discussion started by: shankar1dada
5. Homework & Coursework Questions
Hello, I tried to count all unique words of all files in one folder and its subfolders. Can anybody say me, why this doesnt work:
ls| find -d | cat | tr "\ " "\n"| uniq -u | wc -l
Cat writes only the names of those files, but not the wors, which should be in them.
Thanks for any advice.
... (9 Replies)
Discussion started by: Dworza
6. UNIX for Dummies Questions & Answers
First of all, the extent of my unix knowledge is next to nil. I've been able to telnet to a unix box, and thanks to the Computer Hope website, I've been able to learn a few basic commands to navigate from folder to folder, and view contents.
What I really need to do is obtain a count of all... (2 Replies)
Discussion started by: scarfinv
7. UNIX for Dummies Questions & Answers
can help me doing 2 things in Debian 5.0?
1.) Create 100 folders
Format: ./0/0, ./0/1, ./0/2, ...,./0/9, ./1/0/, ..., ./9/9
2.) Move over 200.000 files into the subdirectories according to their last digits.
12398123.dat -> ./3/2/12398123.dat
48161.dat ->... (2 Replies)
Discussion started by: diadas
8. Shell Programming and Scripting
i need to change string in all files in current folder and all subfolders. i wrote the following script. It works good except it dont delete temp file from subfolders.
for z in `find . -type f -name "*.html" -o -name "*.htm"`; do
sed -e 's@abc@xyz@g' $z>temp;
mv temp $z;
any idea?... (1 Reply)
Discussion started by: crazynups
9. UNIX for Dummies Questions & Answers
I would like know how many files there under a particular folder, which contains subfolders.
Thanks (5 Replies)
Discussion started by: cy163
10. UNIX for Dummies Questions & Answers
i have this script :
foreach f ($1/*.cpp )
mv $f $f:r.c
that renames me files in dir , how can i change it so it will rename me
also in subdirectorys?
thanks (0 Replies)
Discussion started by: umen