10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Team,
How to get the file creation date and time in SFTP server
we can able to type ls -ltr command only SFTP server.
Generally we type ls --full-time test.txt we will get the date and time , same way how to do in SFTP server after connected.
Thanks (1 Reply)
Discussion started by: bmk123
1 Replies
2. UNIX for Beginners Questions & Answers
Hi All,
I have a CSV file which is as below. Basically I need to take the year column in it and find if the year is >= 20152 . If that is then I should subtract all values by 6. In the below example in description I am having number mentioned as YYWW so I need to subtract those by -5. Whereever... (8 Replies)
Discussion started by: arunkumar_mca
8 Replies
3. Shell Programming and Scripting
Can someone draw up a script that for every file, folder and subfolder and files that will copy the creation date over top of the modified date??
I know how to touch every file recursively, but no idea how to read a files creation date then use that to touch the modification date of that file,... (3 Replies)
Discussion started by: toysareforboys
3 Replies
4. Shell Programming and Scripting
the following was taken from a perl script:
my $date = strftime "%B %d %H:%M:%S", localtime;
how can i modify it so this date outputs the date in the form of the date of the messages file. for example:
Sep 20 11:48:44
As it is right now, the perl script outputs the date like this:
... (1 Reply)
Discussion started by: SkySmart
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I don't have a lot of info, so I'm sure this is a long shot. But figured I'd check to see if this issue rings a bell with anyone.
Two weeks ago a Unix server stopped updating the date. So everyday it shows the same system time. It's been manually changed to the correct date, but then... (2 Replies)
Discussion started by: no_clue
2 Replies
6. Shell Programming and Scripting
Hi,
Can anyone tell me a process to find the creation date of a file in a directory.
If suppose I have a file in a directory created in 2009
-rw-r--r-- 1 xyz guest 2480 Jul 16 2009 sample.txt
The command should return the the file creation date as 16/07/2009
thanks, (2 Replies)
Discussion started by: swathich
2 Replies
7. Shell Programming and Scripting
Hi,
I just need to know way of getting date of file when it was created.
eg i have a file abc created on 23 aug. Now i need to know date of file i.e. 23 aug. How can i get that data.
Thanks
Sarbjit (7 Replies)
Discussion started by: sarbjit
7 Replies
8. Shell Programming and Scripting
Hi All,
I need to get file creation date.
I have to access one file who's name is like...
abc.log092308
and the date changes as per current date. And i am accessing this file next day. meance in above case i will access above file on 09-24-2008
Also one problem is that this file... (2 Replies)
Discussion started by: Jeevan Salunke
2 Replies
9. UNIX for Dummies Questions & Answers
When i execute the below command it is giving the timestamp in the format mentioned below
ls -ltr 1234.txt | awk 'BEGIN {FS=" "} {print $6" "$7" "$8}'
Mar 20 00:12
i want output in the format 200803200012
please help me how to do it
here year is not returned and i have to convert mar to... (5 Replies)
Discussion started by: trichyselva
5 Replies
10. Shell Programming and Scripting
Hi,
I need the unix command which returns only the file name and its creation date/time in unix.
I tried ls -l <filename>. But that is giving other details also which I do not want.
Could anyone help me out?
Thanks. (6 Replies)
Discussion started by: unipepper
6 Replies