Unix time difference between two files




















Code :. Not everyone has those. Just so you guys are aware of this. Not that stat is a bad choice, it is great if you have it. OS is AIX. AIX has an alternative: the istat command. Archiving and moving files into directories, creating directories, etc. Is this doable or overly complex. Red Hat. Access time of files and directories. My query please: What I saw how access times of a file and directories work. After than whenever I access without How to list all the files, directories and sub-directories in the current path except one directory?

Can anyone come up with a unix command that lists all the files, directories and sub-directories in the current directory except a folder called log.? Thank you in advance. Time difference between two time stamps. Plz help. Both file have same amount of lines that is almost K lines. A small executable: busybox is able to parse date formats with the -D option. Note: Using the -u option will avoid some DST and local effects. Most of the time it does not change the final difference as both date commands are executed with the same environment TZ.

Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Collectives on Stack Overflow. Learn more. Asked 4 years, 5 months ago. Active 3 years, 2 months ago. Viewed times. I need to get the time difference between the newest file and the oldest file in a specified directory using shell script, Can anyone help on this As an example, lets see below scenario, I have a directory which contains several files and directories, I need to get the exact time difference between the newest and oldest file in this directory.

Improve this question. Ishara Kularatna. Ishara Kularatna Ishara Kularatna 2 2 silver badges 15 15 bronze badges. Of course you must read this — Sumudu. Add a comment. Improve this question. So what is the actual problem? The unix version is correct - those are simply integers. Add a comment. Active Oldest Votes. Improve this answer. George George Sverri M. Olsen Sverri M. Olsen Community Bot 1 1 1 silver badge.



0コメント

  • 1000 / 1000