10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My directory structure is like
I have main directories and subdirectories underneath. I want to write a shell script where I will be passing file name as a parameter, Now I want to find all the files in Directory1... (19 Replies)
Discussion started by: John William
2. Shell Programming and Scripting
Looking for some help with a script that will take all files in any given root folder (which are not already in a folder) and put them into separate folders with the name of each given file.
Thank you! (1 Reply)
Discussion started by: DanTheMan
3. UNIX for Dummies Questions & Answers
I did this:
ls -lrRt | grep ^* | cksum *
but it is showing cksum of sub-directories.
Please use code tags when posting data and code samples, thank you. (3 Replies)
Discussion started by: ezee
4. Shell Programming and Scripting
I am looking for a simple way for replacing all the files under a directory that use the server "xsgd1234dap" with "xsdr3423pap".
In the Directory,
$ grep -l "xsgd1234dap" *.sh | wc -l
I have "119" files that are still using... (5 Replies)
Discussion started by: filter
5. Shell Programming and Scripting
I am trying to write something to find the size of particular type of files in a directory & it's subdirectory and sum the size .. These types of file are found at directory level or its subdirectories level ..
find $S_PATH -exec ls -lad... (4 Replies)
Discussion started by: Vaddadi
6. Shell Programming and Scripting
The following find command lists the files which are 45 minutes older. But it searches for the sub directories also.
$ find . -type f -mmin +45 -print
hello.txt test temp
How can i modify the find command in such way that it finds... (4 Replies)
Discussion started by: Tuxidow
7. 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
8. 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
9. UNIX for Dummies Questions & Answers
After checking all the UNIX threads, I am able to come up with a solution so far. I am working on a shell script where it moves the files to a certain directory. The conditions to check are
1) Check if the file exists in the current directory.
2) Check if the destination directory... (2 Replies)
Discussion started by: madhunk
10. Shell Programming and Scripting
I have written one script to calculate total space of all file in one directory, ignoring subdirectory, it works fine.
Now, I've been trying to calculate all files which includes files in any subdirectories.
I use recursive function to do this, but it can work only if there is only one... (4 Replies)
Discussion started by: KLL