Sponsored Content
Full Discussion: Previous day's date in Perl?
Top Forums Shell Programming and Scripting Previous day's date in Perl? Post 302079789 by rajus19 on Wednesday 12th of July 2006 11:45:38 PM
Old 07-13-2006
Previous day's date in Perl?

Hi All,

I want to find the previous day's date and store that in a variable, which will be usuful for further processing.

Any help please.

Regards,
raju
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to find Day of the Week from the given date (Perl)?

How to find the Day of the Week of the given Date using perl? If I have a date in YYY--MM-DD format, how to find the DOW? Based on that, I need to find the following sunday. Pls help. (5 Replies)
Discussion started by: deepakwins
5 Replies

2. Shell Programming and Scripting

needs to display month for previous day date

Hello, I wanted to display the month for previous day date. Like, today date is 18-Nov-2008. So the previous date is 17-Nov-2008. The output should be November. If the today date is 1-DEC-2008, then output should be NOVEMBER. If the today date is 1-JAN-2008, then output should be DECEMBER.... (4 Replies)
Discussion started by: govindts
4 Replies

3. Shell Programming and Scripting

Script to find previous month last day minus one day timestamp

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

4. Shell Programming and Scripting

finding the previous day date and creating a file with date

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

5. Shell Programming and Scripting

Script to check if last modified day is previous day

Hi, I would like to write a script that checks if a file ('counter') was modified the previous day, if so erase its contents and write 00000000 into it. For e.g. if the file 'counter' was last modified at 11.30pm on 24th May and the script runs at 12.15am of 25th May, it should erase it's... (1 Reply)
Discussion started by: hegdepras
1 Replies

6. UNIX for Dummies Questions & Answers

Move the files between Current day & a previous day

Hi All, I have a requirement where I need to first capture the current day & move all the files from a particular directory based on a previous day. i.e move all the files from one directory to another based on current day & a previous day. Here is what I am trying, but it gives me errors.... (2 Replies)
Discussion started by: dsfreddie
2 Replies

7. Shell Programming and Scripting

Can i get the previous/next days date of a selected day

Ok, the title is confusing i know, but it is a weird question. I have a bash script running on Centos5.8 and want to find a better way to do some date manipulation. What i am trying to do is get 3 days of files (day before, that day, and day after), concatenate the three files and pass them on... (2 Replies)
Discussion started by: oly_r
2 Replies

8. Shell Programming and Scripting

Help with getting last date of previous month and first date of previous 4th month from current date

I have requirment to get last date of previous month and the first date of previous 4th month: Example: Current date: 20130320 (yyyymmdd) Last date of previous month: 20130228 (yyyymmdd) First date of previous 4th month: 20121101 (yyyymmdd) In my shell --date, -d, -v switches are not... (3 Replies)
Discussion started by: machomaddy
3 Replies

9. Shell Programming and Scripting

How to find the date of previous day in shell script?

Hi Experts, i am using the below code get the date of previous day. #!/usr/bin/ksh datestamp=`date '+%Y%m%d'` yest=$((datestamp -1)) echo $yest When i execute the code i am getting output as: 20130715 What i am trying here is, based on the date passed i am fetching previus day's... (0 Replies)
Discussion started by: learner24
0 Replies

10. UNIX for Dummies Questions & Answers

[Solved] Using date command, getting previous day

Legends, i need to get previous day using date command. Can you please help. sdosanjh:/home> date +%m%d%y 011514 i tried -d '-1 day' but it is not working (5 Replies)
Discussion started by: sdosanjh
5 Replies
gmemusage(1)						      General Commands Manual						      gmemusage(1)

NAME
gmemusage - graphically display memory used by running processes. SYNOPSIS
gmemusage [ options ] DESCRIPTION
Gmemusage is modelled after the program of the same name on Silicon Graphics' workstations. Gmemusage graphically displays the contents of memory on a running system, broken up by individual processes. The display is a stacked bar graph with the height of an area representing the RSS size of the corresponding process. In addition, the process name, number of processes with that name and the size (in kilobytes) are shown. Processes which take up less memory than a (user-specifiable) threshhold are merged into a single area on the graph. Multiple processes with the same name are merged into a single area. While running, gmemusage accepts the following keys: Q or q Exit the program. Up Arrow Increase the minimum threshhold by 10 kb. Down Arrow Decrease the minimum threshhold by 10 kb. Other keys are (not-so-silently!) ignored. OPTIONS
Gmemusage accepts the following command-line options (defaults in brackets): -name resourcename Class name to use for resources (Gmemusage) -display display X server to contact ($DISPLAY environment variable) -geometry geometry Initial window geometry (320x400) -font font Use font font for drawing text (fixed) -background color Color to use for window background (grey4) -update seconds Update interval (5 seconds) -threshhold kb Threshhold below which small processes are merged (400 kb) -ncolors #colors How many different colors to use (3) -color1 color Name of first color (red/maroon) -color2 color Name of second color (green/OliveDrab) -color3 color Name of third color (blue/SlateBlue) -color[4-9] color Names of remaining colors (undefined) -help Print a short help message. RESOURCES
Gmemusage understands the following X resources. See the OPTIONS section for details of what they do. name (class Name) display (class Display) geometry (class Geometry) font (class Font) background (class Background) update (class Interval) threshhold (class Threshhold) ncolors (class NColors) color1 (class Color) color2 (class Color) color3 (class Color) color[4-9] (class Color) BUGS
See the TODO file which comes with the distribution. SEE ALSO
top(1), ps(1), xosview(1). VERSION
Gmemusage version 0.2, 1998/01/14 AUTHOR
Raju Mathur (raju@sgi.com) aka OldMonk. SITE
The canonical site for gmemusage is: http://reality.sgi.com/raju/software COPYRIGHT
Gmemusage is copyright (C) 1997, 1998 by Raju Mathur. See the file COPYING in the source directory for copyright information. Silicon Graphics 14 January 1998 gmemusage(1)
All times are GMT -4. The time now is 02:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy