10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
To copy the file from windows to linux i use pscp command(pscp source user@destination). Know i want to copy the latest modified or created files from windows to linux. could any one please help me out with it.
Thanks and Regards,
Sourabh (2 Replies)
Discussion started by: SourabhChavan
2 Replies
2. Shell Programming and Scripting
Hi,
I want to display the file names and the record count for the files in the 2nd column for the files created today.
i have written the below command which is listing the file names. but while piping the above command to the wc -l command
its not working for me.
ls -l... (5 Replies)
Discussion started by: Showdown
5 Replies
3. UNIX for Dummies Questions & Answers
I am trying to fetch the latest modified file from a directory using the command
find . -type f -exec ls -lt \{\} \+ | head | awk '{print $9}'
After the O/P, I get the below mentioned error and the command doesnt terminate at all.
find: ls terminated by signal 13
find: ls terminated by... (2 Replies)
Discussion started by: Sree10
2 Replies
4. Shell Programming and Scripting
Hi All,
My AIX server have a mounted drive "/stage". I want to list the latest modified/created files in this drive. Also large files in this drive.
I tried to ls -l | sort +4nr | head -10
Someother solutions to list from entire drive.
Thanks. :) (6 Replies)
Discussion started by: karumudi7
6 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I want to list out the files for a particular date recursively along with timestamp and directory name .
I tried using command
ls -lRt this list out all the files along with directory structure
but i want for a particular date so i tried with
ls -lRt | grep 20110809
in... (9 Replies)
Discussion started by: Abhi2910
9 Replies
6. Shell Programming and Scripting
I wan to pick the latest modified file name and redirect it to a file ..
ls -tr | tail -1 >file
but this is printing file ins side the filename ,
can anyone help me out (5 Replies)
Discussion started by: vishwakar
5 Replies
7. UNIX for Dummies Questions & Answers
I only know how to list all sub-directories or files in specified directory. I don't know how to order them by modified date, furthermore, I don't know how to get the top one file in the sorted list. Wish you can do me a favor. Thanks in advance! (3 Replies)
Discussion started by: crest.boy
3 Replies
8. Shell Programming and Scripting
Hi,
I have an application which creates some directories while running. I want to delete these directories which are 4 days older.
i tried
find . type d -mtime +1 -print
And it is working fine..
but
find . type d -mtime +4 -print
is not giving any results which are 4 days... (6 Replies)
Discussion started by: Tuxidow
6 Replies
9. Shell Programming and Scripting
Hi
Can some one please help me
How can i search a file which has been created or modified in last five minutes
I have used the command
find . -mmin -5
and it does not work
i get an error -mmin is bad option
Please help
Much regards
Tarun (2 Replies)
Discussion started by: tarundeepdhawan
2 Replies
10. Shell Programming and Scripting
Hello people,
I want to list the files & folders created/modified since a particular date say June 2006. I know I can list recursively thru the folders and use awk to extract the date column to get the desired output.
Just wanted to check whether there is an easier way to do this. Please... (2 Replies)
Discussion started by: tipsy
2 Replies