06-14-2018
Thanks @rbatte1 and @MadeInGermany
I posted the question in Unix StackExchange as well, and found the solution. I have posted the final script there in case it's helpful for others with same issue/question.
I am unable to paste the web link to the StackExchange thread here since I guess I have to have at least 5 posts, which I don't. I wish I was able to provide the link so that it would have been helpful to others stumbling on the post in future.
---------- Post updated at 06:24 PM ---------- Previous update was at 06:23 PM ----------
Thanks @rbatte1 for your help as well, but unfortunately even stat is not available in HP-UX version we have.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello all
im looking for fast way to convert timestamp format to date format
and vaiseversa in tcsh , can it be done?
thanks allot (2 Replies)
Discussion started by: umen
2 Replies
2. UNIX for Advanced & Expert Users
Hi,
I have a file say abc. I get the timestamp in following way:
ls -ltr abc | awk -F" " '{print $6,$7,$8}'
Mar 8 10:23
I need to get the timestamp as :
03-08-2007 10:23:00
Thanks
Sumeet (1 Reply)
Discussion started by: sumeet
1 Replies
3. Programming
hi everyone, im new here and am in desperate need of help. I want to convert my 32 bit unix time stamp ' 45d732f6' into a readable format (Sat, 17 February 2007 16:53:10 UTC) using c++.
I have looked around the interent but i just cant make sense of anything. All examples i can find just... (3 Replies)
Discussion started by: uselessprog
3 Replies
4. UNIX for Advanced & Expert Users
The time stamp format using "ls -l" is either mmm dd hh:mm or mmm dd yyyy.
For later case, how can I know the hh:mm as well. Thanks. (3 Replies)
Discussion started by: pok.fung
3 Replies
5. Shell Programming and Scripting
Hi All,
I have a string like below.
"Mar 31 2009" .
I want to convert this to unix time .
Also please let me know how to find the unix time for the above string minus one day. For Eg. if i have string "Mar 31 2009" i want to find the unix time stamp of "Mar 30 2009".
Thanks in advance,... (11 Replies)
Discussion started by: girish.raos
11 Replies
6. AIX
Hello,
How do I convert unix timestamp value to 'normal' date format - to get year month and day values ?
Looks like it's easy to do using GNU date (linux systems). But how do I do tthis on AIX ?
I don't want to write C program, any ways to do that using unix shells ?
thanks (1 Reply)
Discussion started by: vilius
1 Replies
7. UNIX for Dummies Questions & Answers
Hello Experts,
I have a timestamp(6) column in a .csv data file , format of the data is as below:-
ETCT,P,Elec, Inc.,abc,11/5/2010 4:16:09.000000 PM,Y,Y,Y
I want the timestamp column to be properly formatted like
11/05/2010 04:16:09.000000 PM
Currently the "0" is missing with... (3 Replies)
Discussion started by: mtlrsk
3 Replies
8. Shell Programming and Scripting
Hi all,
I'm a Unix newbie and I need to get file timestamp in the following format:
YYYYMMDD HH24:MM:SS
example:
20120713 18:49:30
For start I've tried the following code, but I don't know how to display the year and even format the date:
ls -l $filename | awk '{print $7 $6 $8}'
My... (4 Replies)
Discussion started by: Braun
4 Replies
9. Shell Programming and Scripting
Hello I have a file : file1.txt with the below contents :
237176 test1 test2 1442149024
237138 test3 test4 1442121300
237171 test5 test7 1442112823
237145 test9 test10 1442109600
In the above file fourth field represents the timestamp in Unix format.
I found a command which converts... (6 Replies)
Discussion started by: rahul2662
6 Replies
10. Shell Programming and Scripting
Hello All,
I have a date in DD/MM/YYYY format. I am trying to convert this into unix timestamp. I have tried following:
date -d $mydate +%s
where mydate = 23/12/2016 00:00:00
I am getting following error:
date: extra operand `+%s'
Try `date --help' for more information.
... (1 Reply)
Discussion started by: angshuman
1 Replies
LEARN ABOUT DEBIAN
photon
PHOTON(1) PHOTON(1)
NAME
photon - generates photo albums
SYNOPSIS
photon [OPTIONS] [PATH]
DESCRIPTION
Photon generates clean, yet configurable, static HTML photo galleries. All of the work is done from the command line, and the resulting
output can easily be configured by changing the template files found in /usr/share/photon/templates.
To create a new template (skin), first create a new directory:
mkdir -p ${HOME}/.photon/templates/my_theme/
Then copy the contents of /usr/share/photon/templates/photonv1/ to this new directory. Photon only needs three files to build pages:
index.html
used to display the content of a folder
image.html
used to display the page for an image
movie.html
used to display the page for a movie
If a file is missing, then photon will throw an error and will not run.
HOW TO BUILD A GALLERY
Quick start
$ photon -o myoutputdir /photos
Use the gimp plugin
$ photon --resize-plugin=gimp -v -o myoutputdir /photos
Change the size for all images and the thumbnail and keep the original photo
$ photon --sizelist=0,1600x1200,800x600 --thumbsize=320x240 -o myoutputdir /photos
Create a gallery from your custom template (skin)
$ photon -k my_theme -o myoutputdir /photos
See photon help
$ photon --help
OPTIONS
-a | --awstats
Insert Javascript for Awstats
--awstats-url=URL
Change default value for Awstats script url
-c NAME | --comment
Name of the comment file (default .comments)
-d NUM | --display-columns=NUM
Number of columns in index (default 3)
-E | --no-exif
Don't include EXIF information in HTML file
-f | --force
Overwrite non-image generated files (html, javascript, etc) (default no)
-ff | --force --force
Overwrite image files (default no)
-h | --help
Print this help
-I | --no-index
Do not generate the high level index.html
-J | --no-javascript
Do not use javascript (no shortcuts, ... )
-k | --skin=THEME
Skin selector (default photonv1)
--print-skins
Print out available skins (templates)
-l NUM | --display-lines=NUM
Number of lines in index (default 5)
-m | --movie
Movie mode, include link to movie (*.mov)
-o NAME | --output-directory=NAME
Name of the output directory
-s LIST | --sizelist=LIST
Image sizes (default 0,1024x768,800x600,640x480). Zero, which is the default, uses the original resolution. W x H specifies the width
and height of the image in pixels.
-t SIZE | --thumbsize=SIZE
Size of thumbnails (default 160x120)
-v | --verbose
Verbosely print information
-V | --version
Print program version number
-z | --compress
Compress the original image if selected (default copy the image)
--exif-bordercolor=COLOR
Exif window border color (default #008000)
--exif-bgcolor=COLOR
Exif window background color (default #f0fff0)
--exif-fgcolor=COLOR
Exif window text color (default black)
--body-bgcolor=COLOR
Body background color (default #ccccff)
--img-bgcolor=COLOR
Image background color (default white)
--exclude=PATTERN
Exclude files matching PATTERN
--resize-plugin=PLUG
Where PLUG is the program used to create thumbnails internal: fastest method (default) gimp: use Gimp>1.x (better quality)
--resize-quality-low=NUM
Quality for small image. 0 (bad) and 100 (good)
--resize-quality-high=NUM
Quality for big image 0 (bad) and 100 (good)
--gimp-program=PROG
use PROG for gimp
SHORTCUTS WHILE VIEWING AN IMAGE
n/SPACE Go to the next image (with the same resolution)
p/BACKSPACE Go to the previous image (with the same resolution)
s Start/Stop the slideshow
+/- Increase/Decrease by one second the slideshow's period
h Show shortcut and help
i Show Exif information
z Change to the higher resolution [NOT YET IMPLEMENTED]
SEE ALSO
gimp(1)
AUTHOR
Written by Luc Saillard, <luc@saillard.org>
Main web site: http://www.saillard.org/programs_and_patches/photon/
This manual page was written by Kevin Coyner <kcoyner@debian.org> for the Debian project but may be used by others.
12/16/2006 PHOTON(1)