07-04-2017
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this.
My Requirment is as below:
Input for me will be 2000909(YYYYMM)
I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
Discussion started by: girish.raos
3 Replies
2. UNIX for Dummies Questions & Answers
Hi folks
month=`date +%m`gives current month
Howto print previous month (current month minus 1) with Solaris date and ksh (7 Replies)
Discussion started by: slashdotweenie
7 Replies
3. Shell Programming and Scripting
Hi,
does anybody know how to format `date` command correctly to return the day of the week? Thanks -A
I work in ksh.... (1 Reply)
Discussion started by: aoussenko
1 Replies
4. UNIX and Linux Applications
Hi
I have a table with name, date in format DD.MM.YYYY.
I need to something like this (I try to explain in pseudo code)
if SYSDATE (current date) minus 6 months > $expiry date
print OK
else print NOK with $name and $expiry date
I know this is possible with Oracle. How to do this... (0 Replies)
Discussion started by: slashdotweenie
0 Replies
5. Shell Programming and Scripting
Hi guys,
I had a scenario...
1. I had to get the previous days date in yyyymmdd format
2. i had to create a file with Date inthe format yyyymmdd.txt format
both are different
thanks guys in advance.. (4 Replies)
Discussion started by: apple2685
4 Replies
6. AIX
I need to get the next day's date of the user entered date
for example:
Enter date (yyyy/mm/yy):
2013/10/08I need to get the next day's date of the user entered date
Desired Output:
2013/10/09Though there are ways to achieve this is Linux or Unix environment (date command) ,I need to... (1 Reply)
Discussion started by: rpm120
1 Replies
7. HP-UX
Hi there,
is it possible to get the actual date minux six months with just a simple command?
It's easy with Linux but on HP Unix (for me) impossible ;)
Best wishes (3 Replies)
Discussion started by: System
3 Replies
8. Homework & Coursework Questions
I am running a script in ksh to get the 2 months back date from system date.The below code is giving correct date output from putty command prompt.But while running the script is .ksh file it is giving the error below.Please suggest.
; d=a; y=a
m-=num
while(m < 1) {m+=12; y--}... (1 Reply)
Discussion started by: hini
1 Replies
9. Shell Programming and Scripting
Hi the below code is failing i am trying to generate do the following:
2014-10-22 11:26:00 (Substract 24 hrs)
should produce
2014-10-21 11:26:00
I need the same formatting below because that gets inputted into code for an... (4 Replies)
Discussion started by: Samuel12
4 Replies
10. UNIX for Beginners Questions & Answers
I Have text like
XXX_20190908.csv.gz need to replace Only date in this format with current date every day
Thanks! (1 Reply)
Discussion started by: yamasani1991
1 Replies
LEARN ABOUT DEBIAN
stripchart
STRIPCHART(5) File Formats Manual STRIPCHART(5)
NAME
stripchart - draws diagrams from data with PHP
SYNOPSIS
The script is expected to be called as a CGI script but also works from the command line.
DESCRIPTION
Stripchart prepares a series of diagrams directly from raw data. It is handy for web pages that need some graphics without too much over-
head.
OPTIONS
-i input FILE
name of input data file (mandatory)
-o output FILE
name of output .gif file (default: STDOUT)
-O output FILE
name of output .gif file, also dumps to STDOUT
-f from TIME
stripchart with data starting at TIME (default: 24 hours ago)
-t to TIME
stripchart with data ending at TIME (default: now)
-r range RANGE
stripchart data centered around "from" time the size of RANGE (overrides -t)
-l last LINES
stripchart last number of LINES in data file (overrides -f and -t and -r)
-T title TITLE
title to put on graphic (default: FILE RANGE)
-x column X
time or "x" column (default: 2)
-y column Y
value or "y" column (default: 3)
-Y column Y'
overplot second "y" column (default: none)
-b baseline VALUE
overplot baseline of arbitrary value VALUE
-B baseline-avg
overrides -b, it plots baseline of computed average
-d dump low VALUE
ignore data less than VALUE
-D dump high VALUE
ignore data higher than VALUE
-v verbose
puts verbose runtime output to STDERR
-L log makes y axis log scale
-c colors "COLORS"
set gnuplot colors for graph/axisnts/data (default: "xffffff x000000 xc0c0c0 x00a000 x0000a0 x2020c0" in order: bground, axisnts,
grids, pointcolor1,2,3)
-C cgi output CGI header to STDOUT if being called as CGI
-s stats
turn extra plot stats on (current, avg, min, max)
-j julian times
time columns is in local julian date (legacy stuff)
-V version
print version number and exit
-h help
display this help
NOTES
* TIME either unix date, julian date, or civil date in the form:
YYYY:MM:DD:HH:MM (year, month, day, hour, minute)
If you enter something with colons, it assumes it is civil date
If you have a decimal point, it assumes it is julian date
If it is an integer, it assumes it is unix date (epoch seconds)
If it is a negative number, it is in decimal days from current time
(i.e. -2.5 = two and a half days ago)
* All times on command line are assumed to be "local" times
* All times in the data file must be in unix date (epoch seconds)
* RANGE is given in decimal days (i.e. 1.25 = 1 day, 6 hours)
* if LINES == 0, (i.e. -l 0) then the whole data file is read in
* columns (given with -x, -y, -Y flags) start at 1
* titles given with -T can contain the following key words which will
be converted:
FILE - basename of input file
RANGE - pretty civil date range (in local time zone)
the default title is: FILE RANGE
AUTHORS
Matt Lebofsky
2.21 November 2002 STRIPCHART(5)