Hi,
I am trying to modify a script which accepts date in format dd/mm/yy. I am trying to modify the script so that it retrieves the date that was 15 days earlier from today as start date. Eg.if today is 05/09/2006, the script should retrieve 21/08/2006 as start date. Is there any script/code to... (2 Replies)
I need to increment a date value through shell script.
Input value consist of start date and end date in DATE format of unix.
For eg.
I need increment a date value of 1/1/09 to 31/12/09 i.e for a whole yr.
The output must look like
1/1/09
2/2/09
.
.
.
31/1/09
.
.
1/2/09
.
28/2/09... (1 Reply)
Dear All,
we have a command output which looks like :
Total 200 queues in 30000 Kbytes
and we're going to get "200" and "30000" for further process. currently, i'm using :
numA=echo $OUTPUT | awk '{print $2}'
numB=echo $OUTPUT | awk '{print $5}'
my question is : can I use just one... (4 Replies)
Hi,
I want to compare today's date(DDMMYYYY) with yesterday(DDMMYYYY) from system date,if (today month = yesterday month) then execute alter query else do nothing.
The above requirement i want in Shell script(KSH)...
Can any one please help me?
Double post, continued here. (0 Replies)
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
diff=$1$2.diff
id=$2 new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk... (2 Replies)
Hi ,
How would i write a shell script to run the code from one date to another date EXample 2014-01-01 to 2014-02-28, can i any provide some clue on this (4 Replies)
hi all,
How to compare two files whether they are same are not...? like i had my input files as 20141201_file.txt and 20141130_file2.txt
how to compare the above files based on date .. like todays file and yesterdays file...? (4 Replies)
Hi,
I am trying to Zip a folder inside a shell script like below. It successfully taring but it only returns Null inside the variables. Searched a lot but no clue to finding the root cause.
testno=1;
date=20171128;
DIR=/root/ sh -c 'cd $DIR; tar cvf "AWS.${testno.${date}.tar" "./AWS"'
... (5 Replies)
Hi Community!
Following on from this code in another thread:
#!/bin/bash
file_string=`/bin/cat date.txt | /usr/bin/awk '{print $5,$4,$7,$6,$8}'`
file_date=`/bin/date -d "$file_string"`
file_epoch=`/bin/date -d "$file_string" +%s`
now_epoch=`/bin/date +%s`
if
then
#let... (2 Replies)
Discussion started by: Greenage
2 Replies
LEARN ABOUT DEBIAN
statnews
STATNEWS(1) Debian GNU/Linux Manual STATNEWS(1)NAME
statnews - generate some useful statistics out of a newsgroup
SYNOPSIS
statnews [OPTIONS] NEWSGROUP
DESCRIPTION
The statnews command get some useful statistics out of a newsgroup. It displays things like how many articles each author posted, how many
characters was written, how many lines were quoted, how many articles belong to each thread, the number of messages/characters per day, the
average message length, and so on.
OPTIONS
--capitalize(*)
Whether to capitalize the name of both the sender and the receiver of each message (default is "--capitalize": yes). This option is
useful to collect "AUTHOR" together with "author", "Author", and "AuThor".
--dotted(*)
Whether to translate "." to "/" in NEWSGROUP (default is "--nodotted": does translate). This option may be useful if your system
stores each newsgroup in a dedicate directory (e.g., news.useless.group) instead that by hierarchy (e.g., news/useless/group), or if
your system has a news archive stored this way.
--from=DATE
Set the date statistics start from (DATE format is "dd/mm/yyyy", GMT).
--help
Display the help summary.
--spooldir=SPOOLDIR
Search NEWSGROUP in SPOOLDIR (default is /var/spool/news/articles/).
--to=DATE
Set the date statistics end by (DATE format is "dd/mm/yyyy", GMT).
--width=WIDTH
Set the terminal width to WIDTH columns (default is 80, with a minimum of 70).
Options may be conveniently abbreviated and prefixed by "-" instead of "--"; the "=" may be omitted or substituted with one or more blanks.
Options listed with (*) may be negated by adding the prefix "no" in front of them (e.g., "--dotted" => "--nodotted").
RETURN VALUE
The statnews command returns 0 on success and a positive integer on errors.
ENVIRONMENT
The environment variable STATNEWS can hold a set of default options for statnews.
These options are interpreted first by the program and can be overridden by explicit command line parameters. For example:
sh: "STATNEWS="--nocapital --width=132"; export STATNEWS"
csh:
"setenv STATNEWS "--nocapital --width=132""
FILES
The default spool directory is /var/spool/news/articles/.
SEE ALSO rn(1), readnews(1).
BUGS
There are no known bugs.
UNRESTRICTIONS
This program is copylefted. Refer to the GNU General Public License for conditions of use.
AUTHOR
This program has been written and is actively maintained by Davide Giovanni Maria Salvetti <salve@debian.org>.
HISTORY
This program was originally aimed for use with FidoNet style echo areas under Debian GNU/Linux. It can be successfully used with Usenet
newsgroups as well. More precisely, it can be used with every message base that stores one message per file in some directory in
traditional mbox format.
Debian Project 2011-12-25 STATNEWS(1)