Hi,
I'm trying to accomplish the following and would like some suggestions or possible bash script examples that may work
I have a directory that has a list of log files that's periodically dumped from a script that is crontab that are rotated 4 generations. There will be a time stamp that is... (4 Replies)
Hi,
I have a log file with contents like
81.49.74.131 - -
81.49.74.131 - -
116.112.52.31 - -
116.112.52.31 - -
I need an output like this
81.49.74.131 14/Sep/2008 Time duration: 00:06:00
116.112.52.31 15/Sep/2008 Time duration: 00:00:01
Please anyone suggest a script for this.... (1 Reply)
Morning all
Im hoping you can help me. We have a nice new oracle server :( and are needing to move some files around for EDI and BACS. The server runs windows but has an app called MKS toolkit installed which give unix commands. (Needed for the oracle stuff) I have had a go using dos commands... (2 Replies)
I have a very basic question here.
I have to FTP a file from a AIX unix box to a windows server.
But during that I have to rename the file.
For example:
I have to FTP a file called ORDER.TXT from unix and it should go as ORDER_20090101.TXT on to the windows server.
It is not possible to... (5 Replies)
i have some files in my directory....wit names say aaa, bbb, ccc,,,,,
i want to make loop so that for each file name,,,,,,a sysdate should be appended in the end.........and the files should look like aaa_20100331
i knw date can be appended as `date +"%Y%m%d"`
but m nt able to make a loop. ... (2 Replies)
I have the awk
awk -F\* '$1=="ST",$1=="SE"{if($1=="ST"){close(f);f="sample" ++i} ; $1=$1; print>f}' OFS=\| <filename>
How to add the time stamp to the file name mentioned as "sample"
Please view this code tag video for how to use code tags when posting code and data. (6 Replies)
Hi,
I want to add some hours and minutes to the current date. For example, if the current date is "July 16, 2012 15:20", i want to add 5 hours 30 minutes to "July 16, 2012 00:00" not to "July 16, 2012 15:20". Please help.
Thanks! (4 Replies)
I want this:
0.0230769,0.407692,0.307692,0,0.1,1.4,1,0,ADD DATE HERE,
im getting this:
11/02/12
0.00192308,0.0269231,0.0192308,0,0.1,1.4,1,0,
my script:
#!/bin/ksh
DIR=/export/home/yani_m/scripts/scrip_out_put/
DIR2=/export/home/yani_m/scripts/scrip_out_put/calc/
Date=$1... (1 Reply)
I needed some help in adding a duration (in seconds) to a start time (in hhmmss format) and a start date (in mmddyy format) in order to get an end date and end time. The concept of a leap year is also to be considered while incrementing the day. The code/ function that I have formed so far is as... (3 Replies)
Discussion started by: codehelp04
3 Replies
LEARN ABOUT DEBIAN
nomarch
nomarch(1) Archive Extraction nomarch(1)NAME
nomarch - extract `.arc' archives
SYNOPSIS
nomarch [-hlptUv] [archive.arc] [match1 [match2 ... ]]
DESCRIPTION
nomarch lists, extracts, or tests `.arc' archives. (An alternate extension sometimes used was `.ark'; these work too.) This is a very out-
dated file format which should certainly not be used for anything new, but you may still need an extraction utility, and here it is. :-)
The default action is to extract all files in the specified archive; see OPTIONS below for how to do other things instead.
OPTIONS -h give terse usage help.
-l list files in archive. If verbose listings are enabled, it shows the filename, compression method, compressed/uncompressed size,
date/time, and CRC; but by default, it just shows the filename, uncompressed size, and date/time.
-p extract to standard output, rather than to separate files.
-t test files in archive (more precisely, check file CRCs).
-U use uppercase filenames; more precisely, preserve original case from archive.
-v give verbose output (when used with `-l').
archive.arc
the archive to operate on.
match1 etc.
optionally specify which archive members to list/extract/test. Those which match any of these filenames/wildcards are processed.
Wildcard operators supported are shell-like `*' and `?', but don't forget to quote arguments which use these (e.g. `nomarch foo.arc
'*.bar'').
EXTRACTING MULTIPLE ARCHIVES
nomarch follows the `unzip'-like practice of working on only one archive per run, with further `filenames' given on the command-line actu-
ally specifying files to extract (or whatever). The easiest way to work on multiple files with nomarch is simply to run it multiple times
using for; for example:
for i in *.arc; do nomarch $i; done
The above would extract all archives in the current directory.
USING THE PROGRAM FROM EMACS
Emacs's arc-mode facility lets you work with various kinds of archive file directly from the editor. Making it use nomarch for extracting
`.arc' files isn't too hard. Just add the following to your ~/.emacs file:
(setq archive-arc-extract '("nomarch" "-U"))
BUGS
The CRC used by the format is only 16-bit, so `-t' is a less-than-perfect test.
One compression method, obsolete even by `.arc' standards :-), isn't supported yet. This is partly because I've yet to find a single file
which uses it, despite testing an awful lot of files.
Subdirectories in Spark archives are extracted as the `.arc'-format files they really are, which may not be terribly convenient.
SEE ALSO tar(1), gzip(1), bzip2(1), lbrate(1)AUTHOR
Russell Marks (rus@svgalib.org).
Version 1.4 18th June, 2006 nomarch(1)