Skip to main content

All Questions

0 votes
2 answers
4k views

change date/time format from yyyymmddHHMMss to dd/mm/yyyy HH:MM:ss

How do I change date/time format from yyyymmddHHMMss to dd/mm/yyyy HH:MM:ss which is displayed as an output (eg. JOBNAME1 STARTED AT 20180904152402) from a command... grep JOBNAME1 | sed -e s/|/ /...
Colin's user avatar
  • 1
0 votes
5 answers
8k views

Give previous date as argument to shell script

I need to execute the script by passing previous date as command line argument. It must be automated. So, how can i pass the previous date to the script? For example: sh processFile.sh previousdate ...
user218332's user avatar
1 vote
1 answer
171 views

How to delete the folders created with 2016-04-03 to 2016-10-4 date names

I am looking for script or command to delete a folder which was created one day only (means single day) which starts with this format: 2016-04-03.tar.gz ... 2016-09-30.tar.gz. I want to delete folders ...
user193911's user avatar
2 votes
1 answer
830 views

Any better method than this for sorting files by their creation date?

I needed to display a list of directories sorted by their creation date and I came up with this code snippet that I thought was kind of clever. Is there a more obvious way to do this that I'm missing? ...
slm's user avatar
  • 378k