08-10-2007
This will not work for a variety of reasons.
What happens on March 31 - You'll go back to February 31?
What happens on Jan 10?
Check the FAQ for perderabo's datecalc script. It will do just what you want.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I would like to find out the month from a given date,
how is it possible. (5 Replies)
Discussion started by: rudoraj
5 Replies
2. Shell Programming and Scripting
Hi All,
I want to find the time diffrence between currnt time and "abc.txt" file create time.
I have solve that but if the abc.txt file created last month then is there any process to find the difftent?
Exp:
Create time of abc.txt is "Apr 14 06:48"
and currect date is "May 17 23:47".... (1 Reply)
Discussion started by: priyankak
1 Replies
3. UNIX for Dummies Questions & Answers
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)
Discussion started by: tigersk
9 Replies
4. 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
5. UNIX for Dummies Questions & Answers
Hi,
On any given day, I want to capture the month that has gone by - said otherwise, how do I capture last month?
expr date '+%m' - 1
Above expression is giving error.
Please advise
thanks
---------- Post updated at 09:28 AM ---------- Previous update was at 09:11 AM... (1 Reply)
Discussion started by: ab_2010
1 Replies
6. UNIX for Dummies Questions & Answers
how can i display month of the year i was born with using man command?
thanks (2 Replies)
Discussion started by: janetroop95
2 Replies
7. Shell Programming and Scripting
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
8. Red Hat
Hello,
Can you please help me find/display out last Friday's date of the month using command in Unix/Linux (3 Replies)
Discussion started by: sunnysthakur
3 Replies
9. Shell Programming and Scripting
how to find all files other than first two dates & last date per month and year
Hi All,
lets say there are following files in directory
-rwxr-xr-x 1 user userg 1596 Mar 19 2012 a.txt
-rwxr-xr-x 1 user userg 1596 Mar 19 2012 b.txt
-rwxr-xr-x 1 user userg ... (6 Replies)
Discussion started by: Makarand Dodmis
6 Replies
10. Shell Programming and Scripting
Hi,
I want two dates one will be the current date and the other one will be just one month before. Say if current month is 11/4/2014 then the other date should be 11/3/2014.
#!/bin/ksh
currentDtae=`date`
oneMonthBefore= ?
I dont know how to do it. Went through some of the related threads... (15 Replies)
Discussion started by: Sharma331
15 Replies
LEARN ABOUT DEBIAN
dv4lstart
DV4LSTART(1) General Commands Manual DV4LSTART(1)
NAME
dv4lstart - redirect V4L API to access a camcorder from a V4L program
SYNOPSIS
dvlstart [options] command [argument ...]
DESCRIPTION
dv4lstart enables command to access a dv1394 (Firewire) camcorder by using the video4linux (V4L) API. dv4lstart uses the LD_PRELOAD facil-
ity to intercept calls to the V4L API and make the camcorder's videostream available.
Check that LD_PRELOAD works in your environment by starting
$ dv4lstart ls -l /dev/video0
The resulting output should look like
crw-rw---- 0 root video 81, 0 Jan 1 1970 /dev/video0
Check your 1394 driver config by starting
$ gst-launch-0.10 dv1394src ! dvdemux ! dvdec ! xvimagesink
from your shell. After turning on your camera, a video window should appear. If this works, dv4lstart should work as well.
Inside command, use /dev/video0. Any existing, real V4L device named /dev/video0 can not be accessed from an application started with
dv4lstart (applications started normally can access the real /dev/video0)
OPTIONS
-c, --color-correction
Set this option if red objects look blue.
-n, --new-dev
Tell dv4lstart to simulate a new video device rather than overriding /dev/video0. Set this option if your application needs to
access other video devices.
-r, --rgb-only
Set this option to prevent V4L applications from choosing YUV palettes. Try this option if you get low frame rates.
-v, --verbose level
Set the amount of debugging messages. A level of 0 means no output at all, 1 is the default, 3 enables all messages.
-h, --help
displays a help message
EXAMPLES
The command
$ dv4lstart v4l-info
outputs some information about the simulated V4L device.
$ dv4lstart -c gqcam -v /dev/video0
starts the gqcam webcam viewer, swapping red and blue colors.
LIMITATIONS
Programs using exotic ways to access the V4L API will not work.
Some environments don't allow the use of LD_PRELOAD for security reasons. dv4lstart will not work there.
If dv4lstart does not work, try dv4l instead.
SEE ALSO
dv4l(1)
DV4LSTART(1)