I write a sh script that zip and copy to tape all files that older then 2 hours.
1. The way I choose is - touch a file with "now - 2 hours", then use fine with '! -newer'
2. Do you have any other idea to do it ?
tnx. (1 Reply)
Hi
I have a date in a variable in Unix script and have to subtract -1 from the date.
fromdate='07/13/2009'
Now we want to subract one day from it i.e the end result should be '07/12/2009'
Any suggestions?
Thanks (2 Replies)
need some help on the below requirement:
File1:
SV,22,20100501140000,JFK,RUH
SV,29,20100501073000,BOM,RUH
SV,29,20100501073000,SIN,RUH
third filed is datetime which is of the format (yyyymmddhh24miss)
File2
JFK,+,0500
BLR,-,0530
SIN,-,0800
for every line of file 1, take 4... (9 Replies)
Hi Folks
I have tried awk command to conditionally add or subtract value from specific row in a file. The test file looks like:
# cat test.txt
cont x y
Max 0.3 0.9
Min 0.2 0.9
diff 0.1 0
# awk '{for (i=2; i <=NF; i++) if ($i== "0") $i=$i+0.2; print}' test.txt
Output:
cont... (1 Reply)
Hi All,
I have a file with thousands of lines in the following format, where
Field1=First 8 characters
Field2-9-16 characters
Field3=17-26 characters
I need to add Field 1 and Field2 and subtract the result from Field 3.
Field3=Field3 - (Field1 + Field2)
0012.00 0010.00 0001576.53... (4 Replies)
---------- Post updated at 01:58 PM ---------- Previous update was at 01:48 PM ----------
For some reason my question is not getting printed. Here are the details:
Greetings.
I would like to add/subtact an integer to/from two columns of integers. I feel like this should be easy using awk... (3 Replies)
Hello All,
I am working on script where I need to add hours,minutes or seconds in the time.Time is not the current but it could be future time.I thought I can store that time in variable and add hours.minutes or second but I am not able to add that in the time that is stores in a variable.
Time... (9 Replies)
Gents,
Is there the way to increase hours (+3) to the data with the format following.
example
JDhhmmss
335193508
input
335193508
335203508
335213508
335223508
335233508
output
335223508
335233508
336003508
336013508 (14 Replies)
Discussion started by: jiam912
14 Replies
LEARN ABOUT DEBIAN
oggz-chop
oggz-chop(1) General Commands Manual oggz-chop(1)NAME
oggz-chop -- Extract the part of an Ogg file between given start and/or end times.
SYNOPSIS
oggz-chop [-o filename | --output filename ] [-s start_time | --start start_time ] [-e end_time | --end end_time ] [-k | --no-skele-
ton ] filename
oggz-chop [-h | --help ] [-v | --version ]
Description
oggz-chop chops a section of an Ogg file. It correctly interprets the granulepos timestamps of Ogg CELT, CMML, Dirac, FLAC, Kate, PCM,
Speex, Theora and Vorbis bitstreams. Run oggz-known-codecs(1) for a full list of codecs known by the installed version of oggz.
The output file contains copies of the headers of the input file, and all the codec data required to correctly decode the content between
the start and end times specified on the commandline. For codecs with data dependencies like video keyframes, the keyframe prior to the
starting time will be included in the output.
Note that oggz-chop operates by copying pages of Ogg data; it does not strip partial packets from the first or last data page included in
the output. It does however ensure to set the end of stream flag on the last page of each logical bitstream.
Skeleton handling: By default, the output will contain a Skeleton track specifying the start of the chop as presentation time.
Options
oggz-chop accepts the following options:
Output options
-o filename, --output filename
Write output to the specified filename instead of printing it to standard output.
-s start_time, --start start_time
Specify the start time of the chopped section to output.
-e end_time, --end end_time
Specify the end time of the chopped section to output.
-k , --no-skeleton
Do NOT include a Skeleton bitstream in the output.
-h, --help
Display usage information and exit.
-v, --version
Output version information and exit.
EXAMPLES
Extract the first minute of file.ogx:
oggz chop -e 1:00 file.ogx
Extract from the second to the fifth minute of file.ogx:
oggz chop -s 2:00 -e 5:00 -o output.ogx file.ogx
Extract, specifying SMPTE-25 frame offsets:
oggz chop -s smpte-25:00:02:03::12 -e smpte-25:00:05:02::04 -o output.ogv file.ogv
Server configuration
The following configuration for Apache httpd will enable oggz-chop. As with most Apache directives, this may of course be restricted to
particular Directories or Locations:
ScriptAlias /oggz-chop /usr/bin/oggz-chop
Action application/ogg /oggz-chop
HTTP/1.1 Cacheability
oggz-chop generates Last-Modified HTTP headers, and responds correctly to If-Modified-Since conditional GET requests.
AUTHOR
Conrad Parker February 25, 2008;
COPYRIGHT
Copyright (C) 2008 Annodex Association
SEE ALSO oggz-validate(1), oggz-merge(1), oggz-dump(1), hogg(1)oggz-chop(1)