It seems you're storing the date in a variable somewhere in your script which is fine, however, if you need a start and end date then you will need to store the date command again.
This User Gave Thanks to in2nix4life For This Post:
Hi there,
I am trying to do the following in Unix (Solaris 2.7):
1...Find the actual date 7 days ago in format (dd-mmm-yyyy) and with the weekday prefably,
2...Find the date 5 days after the above in the same format.
How can I do this in Unix instead of accessing our Oracle database and... (5 Replies)
Good day folks,
This is my first post on this board and I thank you in advance for helping me with this issue.
Any idea how I can synchronize server time with another timeserver but have my server lag behind by 2 seconds?
Meaning...I need a simple unix script that I can run as crone that... (2 Replies)
Hi
Do you have any pointers how to validate numbers (not to contain alphabets and special characters) and date(MM/DD/YYYY) format.
I used following regular expression to validate integer, which is not working in the default shell:
nodigits="$(echo $testvalue | sed 's/]//g')"
... (4 Replies)
Hi,
I wrote a simple shell script which accepts the input value yearmonth in the format YYYYMM and displays the date as YYYY-MM-DD.Day will be 01 always.Please find the code below
#!/bin/ksh
export yearmonth_date=$1
print_usage() {
echo "usage: ${0##*/} <yearmonth_date> \n" \
... (1 Reply)
When I write
Select date_field from TableA fetch first row only
I am getting the output as 09/25/2009.
I want to get the output in the below format
2009-09-25 i.e., MM-DD-YYYY. Please help (7 Replies)
I need to generate a report on the first of each month that will show me how many points are going to expire on a particular scheme for the next three months. The points expiry is not an issue what I have an issue with is finding the command to give me the last day of each month for the current and... (2 Replies)
Hi all,
Need an urgent help on the below scenario.
script:
awk -F","
'BEGIN { #some variable assignment}
{ #some calculation and put values in array}
END {
year=#getting it from array and assume this will be 2014
month=#getting it from array and this will be 05
date=#... (7 Replies)
HI,
Can anyone tell me how to pull the date and file name separated by a space using the find command or any other command. I want to look through several directories and based on a date timeframe (find -mtime -7), output the file name (without the path) and the date(in format mmddyyyy) to a... (2 Replies)
current date command runs well
awk -v t="$(date +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
subtract 30 days fails
awk -v t="$(date --date="-30days" +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
awk command in hp unix subtract 30 days automatically from current date without date illegal option error... (20 Replies)
Discussion started by: kmarcus
20 Replies
LEARN ABOUT DEBIAN
jpegexiforient
JPEGEXIFORIENT(1) User Commands JPEGEXIFORIENT(1)NAME
jpegexiforient - reads or writes the Exif Orientation Tag
SYNOPSIS
jpegexiforient [switches] jpegfile
DESCRIPTION
This is a utility program to get and set the Exif Orientation Tag. It can be used together with jpegtran in scripts for automatic orienta-
tion correction of digital camera pictures.
The Exif orientation value gives the orientation of the camera relative to the scene when the image was captured. The relation of the '0th
row' and '0th column' to visual position is shown as below.
Value | 0th Row | 0th Column
------+-------------+-----------
1 | top | left side
2 | top | right side
3 | bottom | right side
4 | bottom | left side
5 | left side | top
6 | right side | top
7 | right side | bottom
8 | left side | bottom
For convenience, here is what the letter F would look like if it were tagged correctly and displayed by a program that ignores the orienta-
tion tag:
1 2 3 4
888888 888888 88 88
88 88 88 88
8888 8888 8888 8888
88 88 88 88
88 88 888888 888888
5 6 7 8
8888888888 88 88 8888888888
88 88 88 88 88 88 88 88
88 8888888888 8888888888 88
jpegexiforient output the Exif Orientation Tag in a JPEG Exif file. With the options -1 .. -8, it can also be used to set the tag.
OPTIONS
--help display this help and exit
--version
output version information and exit
-n Do not output the trailing newline
-1 .. -8
Set orientation value 1 .. 8
AUTHOR
Guido Vollbeding <guido@jpegclub.org>
SEE ALSO jpegtran(1), exifautotran(1)jpegexiforient February 2005 JPEGEXIFORIENT(1)