Im loosing my mind here...no matter what I do... it is still showing incorrect format. Consitontly showing errors no matter what I do.
Im running GNU bash, version 3.2.48(1). I have tried so many variants of this date format and nothing is working.
I guess I have to drop this script.
Thanks for your help.
PGonzalez
Last edited by Franklin52; 01-05-2012 at 04:19 AM..
Reason: Please use code tags for code and data samples, thank you
Hi All,
When I type date..I get the date, time ..etc displayed
...but can someone help me to display yesterdays date... some script to display back dates.
Thanks in advance
Minaz (7 Replies)
Hi!!
I wanna display file names which are created before/after a particular date.
I wud be glad if anybody can help me out in that.
Thanx
Dhruv (1 Reply)
Hi,
I needed to write a script to "Collect and Display the Last User ID and Date of Last Login".
The requirement is:
When a workstation stops reporting it could be for many reasons. If we know the last person who logged in before the workstation came down, then we can contact the last... (1 Reply)
Hi,
I needed to write a script to "Collect and Display the Last User ID and Date of Last Login".
The requirement is:
When a workstation stops reporting it could be for many reasons. If we know the last person who logged in before the workstation came down, then we can contact the last... (1 Reply)
Hi,
Am new to unix..i want some help..
when am using ls command like ls-ltr it displaying output like this:
rw-r--r-- 1 infauser dba 36 Jun 16 12:36 s1_midify
-rw-r--r-- 1 infauser dba 66 Jun 16 12:42 sample_one
-rw-r--r-- 1 infauser dba 77 Jun 16 13:05... (3 Replies)
Hi,
I have a log file with contents like
81.49.74.131 - -
81.49.74.131 - -
116.112.52.31 - -
116.112.52.31 - -
I need an output like this
81.49.74.131 14/Sep/2008 Time duration: 00:06:00
116.112.52.31 15/Sep/2008 Time duration: 00:00:01
Please anyone suggest a script for this.... (1 Reply)
I am still a novice at this stuff, but I have searched everywhere and I cant seem to get this working.
I am using a database program that I need to pull information from. The command I am using is the following.
search /project | grep "date -v -1m "+%Y-%m""
This returns no results, however... (1 Reply)
Hi,
I am having an issue with my script, ofcourse...
I am trying to run commands against a remote server, I am pulling the hostnames or IPs from a file list, then looping thru and running the date cmd. I will be running different cmds just trying to get it working first.
The ouput isn't... (2 Replies)
Hello,
I could not find the exactly same post here.. so I will explain what I did to get the last month using date command.
I used
date +%Y-%m -d "-1 months"
to get the last month. However, the returned value of above command on 2009/10/31 was 2009 10 and not 2009 09.. and the... (9 Replies)
Hi,
I need to write a script that displays every date from 01/01/2007 to 03/31/2010 in the format mm/dd/yyyy. There doesn't seem to be a "datecalc" command on my system. Any inputs?
Thanks, (4 Replies)