SARY(1) Sary SARY(1)NAME
sary - manual page for sary 1.0.2
SYNOPSIS
sary [OPTION]... PATTERN FILE
DESCRIPTION -c, --count
only print a count of occurrences
-i, --ignore-case
ignore case distinctions
-l, --lexicographical
sort in lexicographical order
-A, --after-context=NUM
print NUM lines of trailing context
-B, --before-context=NUM
print NUM lines of leading context
-C, --context=[NUM],
print NUM (default 2) lines of output context
-s, --start=TAG,
print tagged region. set start tag to TAG
-e, --end=TAG,
print tagged region. set end tag to TAG
-h, --help
display this help and exit
COPYRIGHT
Copyright (C) 2000 Satoru Takabayashi All rights reserved.
This is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
sary 1.0.2 December 2000 SARY(1)
Check Out this Related Man Page
MKSARY(1) Sary MKSARY(1)NAME
mksary - manual page for mksary 1.0.2
SYNOPSIS
mksary [OPTION]... FILE
DESCRIPTION -a, --array=ARRAY
set the array file name to ARRAY
-b, --block=[SIZE]
do block sorting with SIZE [1024] KB block
-s, --sort
sort the array file
-l, --line
index every line
-w, --word
index every word delimited by white spaces
-c, --codeset=CODESET, handle CODESET for indexing
[bytestream], ASCII, ISO-8859, EUC-JP, Shift_JIS, UTF-8
-L, --locale
enable locale support (employ mblen for indexing)
-q, --quiet
suppress all normal output
-v, --version
print version information and exit
-h, --help
display this help and exit
COPYRIGHT
Copyright (C) 2000 Satoru Takabayashi All rights reserved.
This is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
mksary 1.0.2 December 2000 MKSARY(1)
How can i have a VB program use Unix technology to print to a Dazzle print server? In other words I have text files that I want to use a VB program I'm writing thats on our windows 2000 nt side print and move text to our Unix server to a Unix Dazzle print server? Also do I need to download any... (13 Replies)
Hi,
If I want to have a look at few lines of the file, how do I, what command to use.
Eg: If I have a file having length 2000 lines and I want to have a look at the content between 1400 and 1600, How do I look at it ?
Also, If I want to have a look at function alone in a file, how do I go... (4 Replies)
Hi All,
I am a newbie.I hope I will learn lot here.
Thanks for buliding such a resourceful forum.
My question :
I want to print just the 35th line in a file ,
how can I do it , any smallest possible script please? (9 Replies)
dear all,
i want to count the lines of a flat(text) file using awk.i have tried with {print NR}
but its taking lot of time for a big file like 2GB file size.
so i want better efficiency...so can any body please help me with some other and better awk code?
Regards,
Pankaj (15 Replies)
Hi All,
I have the below file:
sample.cfg
----------
SYS_TEST TEST1 TEST2
and I have set the blow:
NUM=1
I am running the command:
awk -v numb=`expr $NUM + 1` '/SYS_TEST/ {print \$numb}' sample.cfg
The output is TEST2 as expected. BUt I am unable to assign this output to a... (4 Replies)
Dear all, will appreciate your help with this (supposedly simple) thing.
How to use sed to replace a part of string like this:
(TAGthenwhatever:
into (TAG:
meaning that '(TAG' (known, can be specified to sed and is marked with the '(' at the beginning) will stay and the 'thenwhatever'... (9 Replies)
Hi,
I want to count the no. of lines in a text file and print only the count(without file name) in another file with the prefix 'Count:'.
I'm able to count the no. of lines present in the file using wc -l <filename> but i have to subtract one from the count and print as i dont need to... (8 Replies)
Hello,
I got a Qstion. Im posting to a phpbb forum with bash and curl.. i have a text file with the following tags that i post to the forum:
$var1
$var2
$var3
How can i with sed or awk put var content from shell script between the ... in the... (7 Replies)
Hi,
echo $i
until ||
do
read NUM
if && ; then
printf "$FBOLD\nInvalid number, please enter valid backup number: $FREG"
fi
done
Getting below error :
./import_location.sh: line 234: [: : integer expression expected
./import_location.sh: line 234: [: :... (5 Replies)
If i have a macro called NUM which is "8" (string) for example
How do I make it into say "7", well i just want to lower it by one, also there will never be the case where its "0" and i have to decrease it.
there is no guarantee how many digits NUM could have, but will always be an integer.
How... (6 Replies)
Hello all,
I need to print all the lines before a specific string and print a custom message 2 lines after that.
So far I have managed to print everything up the string, inclusively, but I can't figure out how to print the 2 lines after that and the custom message.
My code thus far is:... (4 Replies)
Hi Folks,
Need help in fetching a group of lines with a start and end strings. Example is shown below.
start#morning
tea
jog
breakfast
end
start#afternoon
lunch
work
chat
end
start#evening
snacks
tea
chat (6 Replies)
Hi,
I have a variable say NUM="9.126.145.110"
I need to get the output as 9,126,145,110
I tried with sed command as sed s/\./,/ $NUM
But it didnt work
Please help..:confused: (6 Replies)
Hi, I need to print lines which are matching with start pattern "SELECT" and END PATTERN ";" and only select the last "select" statement including the ";" .
I have attached sample input file and the desired input should be as:
INPUT FORMAT:
SELECT
ABCD,
DEFGH,
DFGHJ,
JKLMN,
AXCVB,... (5 Replies)