10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies
2. Shell Programming and Scripting
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies
3. UNIX for Dummies Questions & Answers
my script is:
/u/user/orginal/:#! /bin/ksh
find . -name "aur_prog*" -exec grep -il "error" > test.out
#awk command to destination directory
exit
test.out file contain:
./aur_prog1.log
./aur_prog2.log
... (5 Replies)
Discussion started by: roughwal
5 Replies
4. UNIX for Dummies Questions & Answers
I have in root directory a folder A and a Folder B. I want to copy or move all content (many files) from A to B.
How do I do that UNIX style?
Thanks! (6 Replies)
Discussion started by: Matsakii
6 Replies
5. Shell Programming and Scripting
Hello,
How to search in directory by comparing some string with the content of
directory.
Ex:
I want to compare abhi string with the content of backup directory.
i.e want to check that is there any file in backup directory having name
... (3 Replies)
Discussion started by: AbhijitIT
3 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I have this scenario where:-
The file that I want to save its name into array df is my.08120323.trx which is located in the dir as below:
$ pwd
/u01/abc/def/SRC_datafiles
$ ls *trx
my.08120323.trx
$ df=*"trx" ##keeping the filename... (1 Reply)
Discussion started by: luna_soleil
1 Replies
7. UNIX for Dummies Questions & Answers
Is there any possible way to print the contents of a directory to a .jpg file? I have a list of thumbnails (e-books) which I want to share (+500) but I don't know how to make this.
I would appreciate a lot any comments regarding this issue. (4 Replies)
Discussion started by: agasamapetilon
4 Replies
8. AIX
Hi,
I am trying to find the content of file using grep and find command and list only the file names
but i am getting entire file list of files in the directory
find . -exec grep "test" {} \; -ls
Can anyone of you correct this (2 Replies)
Discussion started by: madhu_Jagarapu
2 Replies
9. Shell Programming and Scripting
Hi All
I am very new to the Unix shell scripting ,, could you pleae help me to generate the output file having the filename and path which files having the difference in the contents in the two directory. all files in both directory have the same name and format.
input directory /edc/input1/ ... (3 Replies)
Discussion started by: singhald007
3 Replies
10. UNIX for Advanced & Expert Users
Hi,
The app I support has a directory used for debugg files. It has just come to light there are no files in there. Or is there :confused:
Changing into the directory and completing an ls -lta you get no files. This is truly not right for the application. If I go up one directory the... (2 Replies)
Discussion started by: nhatch
2 Replies