10-29-2019
Welcome!
Thanks for posting back with your positive results.
This User Gave Thanks to Neo For This Post:
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Shell Programming and Scripting
hi All,
cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'
Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies
3. Shell Programming and Scripting
I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y"
#!/bin/bash
du -hs $1
while read SIZE ENTRY
do
if ;
then
find $1 -mtime +$2 -exec rm -f {} \;
echo "Files older than $2 days deleted"
else
echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 Replies
4. Shell Programming and Scripting
Hi all,
can any one suggest me the script to grep multiple strings from ps -ef
pls correct the below script . its not working/
i want to print OK if all the below process are running in my solaris system. else i want to print NOT OK.
bash-3.00$ ps -ef | grep blu
lscpusr 48 42 ... (11 Replies)
Discussion started by: steve2216
11 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. Shell Programming and Scripting
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Discussion started by: timmywong
8 Replies
7. Solaris
The system don't boot.
on the screen appears following:
press enter to maintenance (or type CTRL-D to continue)...I checked with format command.
... the slices "0-root","1-swap","2-backup" exist.
...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies
8. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
9. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT REDHAT
expireover
EXPIREOVER(8) System Manager's Manual EXPIREOVER(8)
NAME
expireover - Expire entries from the news overview database
SYNOPSIS
expireover [ -e ] [ -f file ] [ -k ] [ -N ] [ -p ] [ -q ] [ -s ] [ -w number ] [ -z rmfile ] [ -Z lofile ]
DESCRIPTION
Expireover expires entries from the news overview database. It reads a list of newsgroup list ( <pathdb in inn.conf>/active). (A file
name of ``-'' may be used to specify the standard input.) It then removes any mention of those articles from the appropriate overview
database. If ``groupbaseexpiry'' in inn.conf is ``true'', expireover also expires articles. If it's ``false'', ``-e'', ``-k'', ``-N'',
``-p'', ``-q'', ``-w'' and ``-z'' flags are ignored.
OPTIONS
-e If the ``-e'' flag is used, then as soon as the first cross posting of the article expires, all overview entries relevant to the
article are removed. Note that you cannot use both ``-e'' and ``-k'' flag at the same time.
-f When the ``-f'' flag is used, then expireover will use it as newsgroup list instead of <pathdb in inn.conf>/active file. A name of
``-'' is taken to mean the standard input.
-k When the ``-k'' flag is used, then articles are removed when they have been expired from all the groups they appear in. Note that
you cannot use both ``-e'' and ``-k'' flag at the same time.
-N If the storing method has self expire functionality, then the control file is ignored for that article by default. If the ``-N''
flag is used, expireover purges articles and overview entries with the control file.
-p Expireover makes its decisions on the time the article arrived by default. This means articles are often kept a little longer than
with other expiration programs that base their decisions on the article's posting date. To use the article's posting date, use the
``-p'' flag.
-q Expireover normally prints statistics at the end of process. To suppress this action, use the ``-q'' flag.
-s Expireover normally checks the existense of articles only if ``EXPENSIVESTAT'' of its storage method is set to ``FALSE''. To do
stat all articles regardless of ``EXPENSIVESTAT'', use the ``-s'' flag. See storage.conf(5) for ``EXPENSIVESTAT''.
-w Use the ``-w'' flag to ``warp'' time so that expireover thinks it is running at some time other then the current time. The value
should be a signed floating point number of the number of days to use as the offset.
-z If the ``-z'' flag is used, then articles are not removed, but their toknes are appended to the specified file. See the description
of delayrm in news.daily(8).
-Z If the ``-Z'' flag is used, then the lowest article numbers for each newsgroup after expiry are written to the specified lofile with
newsgroup name. This flag can be used when doing ``ctlinnd lomark lofile''.
HISTORY
Written by Rob Robertson <rob@violet.berkeley.edu> and Rich $alz <rsalz@uunet.uu.net> (with help from Dave Lawrence <tale@uunet.uu.net>)
for InterNetNews. This is revision 1.9.2.3, dated 2002/04/14.
SEE ALSO
active(5), ctlinnd(8). inn.conf(5), news.daily(8).
EXPIREOVER(8)