10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
bash or c-shell On Solaris 10
I need a command that will list the files of a directory, and grep each of those filenames out of a static text file, and then only echo field 2 of the static text file.
Something like this:
#> ls -1 /home/dir/ | each filename grep $filename static.txt |awk... (4 Replies)
Discussion started by: ajp7701
4 Replies
2. Shell Programming and Scripting
Need help on below query asap. Thanks.
The below is the directory structure:
/home/suren
under /suren the following are the directories
/bin
/log
/error
/bin contains the following files
abc.txt
bcd.ksh
cde.sh
wer.ksh
ghi (file with out any extension)
/log contains the following... (1 Reply)
Discussion started by: sureng
1 Replies
3. Shell Programming and Scripting
Hi all,
I'd very grateful for some help with the following:
I have a directory with several subdirectories with files in them. All files are named different, even between different subdirectories. I also have a list with some of those file names in a txt file (without the path, just the file... (5 Replies)
Discussion started by: foracoffee
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I would like to list all files, older than 7 days, in a directory, but exclude all subdirectories in the find command. If I use find . -type f -mtime +7 all files in the subdirs are also included. How can I exclude them?
Regards,
JW (6 Replies)
Discussion started by: jwbijl
6 Replies
5. UNIX for Dummies Questions & Answers
I copied all JPEGs from my laptop to an external drive using
find . -name "*.jpg" -exec cp '{}' ./media/Backup/pictures \;
And then deleted all of them from my laptop.
Now, I realize that I need the folder path of all the original JPEGs as the path has the important information.
I dont... (1 Reply)
Discussion started by: eshwaconsulting
1 Replies
6. Shell Programming and Scripting
I am trying following ...
ls -ltrh | grep 'Dec 2'
but it is displaying files for last year also ..as this dir is full of files from last 3-5 yrs
I only want to files for today.
e.g .
ls -ltrh | grep 'Dec 2'
-rw-r----- 1 ajay ajay 0 Dec 2 2010 text23.txt
-rw-r----- ... (19 Replies)
Discussion started by: ajaypatil_am
19 Replies
7. UNIX for Dummies Questions & Answers
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Discussion started by: nmakkena
3 Replies
8. 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
9. Shell Programming and Scripting
Hello,
fjalkdsjfkldsajflkajdskl (3 Replies)
Discussion started by: pmeesara
3 Replies
10. Shell Programming and Scripting
Hello people
I need to find a way to generate a file that contains the names of all *.jpg files that were generated after a specific date
The search should start in my current folder and recursively search inner folders
It would be best to list the file names one below the other in the output... (3 Replies)
Discussion started by: jasongr
3 Replies