All Questions
4 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/|/ /...
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 ...
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 ...
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?
...