Questions tagged [date]

154 questions
-2
votes
1 answer

How do I change the year in Unix?

I've looked at the man page for "date" and I can't figure out how to change the year. I know there is some string you need to create to describe the date format but how do I use that?
travis1097
  • 113
  • 1
  • 3
-4
votes
2 answers

execute bash script on last thursday of every month

Actually i have a bash script file and i want to execute it on the last thursday of every month please help me to find out the proper solution of that problem using bash scripting.
pawan
  • 1
  • 1
  • 2
-4
votes
1 answer

linux + change/edit file without effecting on file date

I want to edit some file in my linux for example ls -ltr /etc/some_file -rw-r--r-- 1 root root 188 Jul 1 2010 sysstat . echo "Server101_IP=187.0.98.4" >> /etc/some_file . I expect to get the following date: ls -ltr…
yael
  • 2,433
  • 5
  • 31
  • 43
-5
votes
1 answer

"date" returning a month as a 3-char word

At the moment I call date this way: date '+%Y %m %d' # ==> 2017 12 01 How should I adjust it so that it return a month in the 3-char format? Like this: date '+%Y %m %d' # ==> 2017 dec 01
Joddy
  • 69
  • 2
  • 5
1 2 3
10
11