Sponsored Content
Full Discussion: help one liner...
Top Forums Shell Programming and Scripting help one liner... Post 302529291 by vidyadhar85 on Thursday 9th of June 2011 02:37:52 AM
Old 06-09-2011
This will print all the lines where there is a lonley number which is greater than 2000

Code:
 
awk 'chunk=$0{gsub(/[^0-9]/,"");{if($0> 2000){print chunk}}}'  filename

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

1 liner question

This works: nslookup `uname -n`|tail -2|awk -F: '{print $2}' This does not aa=`nslookup `uname -n`|tail -2|awk -F: '{print $2}'` Why??? Solaris v10 Thanks Brandt (6 Replies)
Discussion started by: beppler
6 Replies

2. Shell Programming and Scripting

awk one liner

input a 100 200 300 b 400 10 output a 100 a 200 a 300 b 400 b 10 Thanx (6 Replies)
Discussion started by: repinementer
6 Replies

3. UNIX for Dummies Questions & Answers

awk one liner

I need a one liner to" find /pattern/ print from x lines before "pattern" to y lines after "pattern" (3 Replies)
Discussion started by: kenneth.mcbride
3 Replies

4. UNIX for Dummies Questions & Answers

one-liner for my script

Hi all, Happy weekend. I have the following sample.txt file which contains the students name and their marks of different subjects. kamaraj@kamaraj-laptop:~/Desktop/testing$ cat sample.txt kamaraj 34 kamaraj 35 kamaraj 56 raj 32 raj 324 raj 93 raj 93 test 1 test 1 test 1 test... (5 Replies)
Discussion started by: itkamaraj
5 Replies

5. UNIX for Dummies Questions & Answers

need an awk one liner

example input file: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 (3 Replies)
Discussion started by: kenneth.mcbride
3 Replies

6. Shell Programming and Scripting

Need a one liner

abc/abc1/abc2/abc3/abc4 i need a script to pick this above path when ever any patterns like the below will be found. abc/abc1 abc/abc1/abc2 abc1/abc2/abc3 abc2/abc3/abc4 abc2/abc3/ etc .... etc..... not only the above 5 but like these one.. any one liner will be of great... (1 Reply)
Discussion started by: debu182
1 Replies

7. Shell Programming and Scripting

Search & Replace regex Perl one liner to AWK one liner

Thanks for giving your time and effort to answer questions and helping newbies like me understand awk. I have a huge file, millions of lines, so perl takes quite a bit of time, I'd like to convert these perl one liners to awk. Basically I'd like all lines with ISA sandwiched between... (9 Replies)
Discussion started by: verge
9 Replies

8. UNIX for Advanced & Expert Users

Curl one liner

Hi I am trying to write a curl one-liner that will help me to input the password after intiating the upload. Also this curl job needs to run on the background and transfer the verbose output to a file. So we can tail the file and check the status if required. This is curl command that I am... (1 Reply)
Discussion started by: cutechaps
1 Replies

9. Shell Programming and Scripting

PERL one liner

hi, I am using PERL one liner for oracle database connection as : $PERL -e "use DBI; DBI->connect(qw(DBI:Oracle:SID user passwd));" is there a way to append select statement to this connection ? i.e. DB connection and select stmt in one line ? how to do sysdba connection using one lines... (1 Reply)
Discussion started by: talashil
1 Replies

10. Shell Programming and Scripting

Shell one liner help

Hello, I am trying to sort/get some specific output from a ls command but however I am having no luck. The command I am using is 'ls -al /nim/dr/mksysb/\*'|grep -e _dr -e .tgz|cut -c37-90|cut -d" " -f2-8|cut -d_ -f1 the error is bash: ls -al /nim/dr/mksysb/\*: No such file or directory ... (1 Reply)
Discussion started by: hasn318
1 Replies
DJVUMAKE(1)							   DjVuLibre-3.5						       DJVUMAKE(1)

NAME
djvumake - Assemble DjVu image files. SYNOPSIS
djvumake djvufile [chkid=argument]... DESCRIPTION
Program djvumake assembles a single-page DjVu file djvufile by copying or creating chunks according to the provided arguments. Supported arguments are as follows: INFO=w,h,dpi Create the initial information chunk. Arguments w, h, and dpi describe the width, height and resolution of the image. All argu- ments may be omitted. The default resolution is 300 dpi. The default width and height will be retrieved from the first mask chunk specified in the command line options. Sjbz=jb2file Create a JB2 foreground mask chunk. File jb2file may contain raw JB2 data, or be a DjVu file containing JB2 data such as those pro- duced by program cjb2. Smmr=mmrfile Create a MMR/G4 foreground mask chunk. File mmrfile may contain raw MMR data or be a DjVu file containing MMR data. BG44=iw44file[:n] Create one or more IW44 background chunks. File iw44file must contain IW44 data. Such files can be obtained by compressing the background image with program c44 and extracting the raw IW44 data using program djvuextract. The optional argument n indicates the number of chunks to copy from the IW44 file. Omitting the number of chunks copies all available chunks. BGjp=jpegfile Create a JPEG encoded background chunk. File jpegfile must contain JPEG encoded data. BG2k=jpegfile Create a JPEG-2000 background chunk. File jpegfile must contain JPEG-2000 encoded data. The DjVu decoder does not yet display files containing JPEG-2000 data. FGbz=(filename|{#color[:x,y,w,h]}) Create a foreground color chunk describing one solid color for each JB2 encoded mark. The argument can be the name filename of a file containing the raw data. Such files are best created using program djvuextract(1). Alternatively the argument could describe a sequence of color zones. Each color zone specifies a color name color, and optionally the coordinates x,y,w,h of a rectangle. Each mark receives the color of the last color zone whose rectangle intersects the bounding box of the mark. The mark is painted black if its bounding box does not intersect one of the zones. The rectangle coordinates are expressed in pixels with the origin at the bottom left corner of the page. The full page is assumed when no rectangle coordinates are specified. Color names can be spec- ified with exactly six hexadecimal digits, e.g. FGbz=#FF8080, or by one of the following sixteen HTML color names defined by the W3C, e.g. FGbz=#red. +----------------------------------+ |aqua black blue fuchsia | |gray green lime maroon | |navy olive purple red | |silver teal white yellow | +----------------------------------+ FG44=iw44file Create a IW44 foreground color chunk. File iw44file must contain IW44 data. Such files can be obtained by compressing the back- ground image with command c44 and extracting the raw IW44 data using program djvuextract. Only the first chunk is copied. FGjp=jpegfile Create a JPEG foreground color chunk. FG2k=jpegfile Create a JPEG-2000 foreground color chunk. The DjVu decoder does not yet display files containing JPEG-2000 data. INCL=fileid Create a DjVu3 include chunk pointing to the component file named fileid. The resulting file should then be included into a multi- page document using command djvm. Djbz=jb2file Create a JB2 shape dictionary. File jb2file must contain raw JB2 data describing a JB2 dictionary. PPM=ppmfile Create a IW44 background chunk and a IW44 foreground color chunk by masking and subsampling the PPM file ppmfile. Assume, for instance, that we have a PPM image myimage.ppm and an identically sized PBM bitonal image mymask.pbm whose black pixels indicate which pixels belong to the foreground. Such a bitonal file might have been obtained by thresholding or color-keying the PPM image. We can then produce a DjVuDocument image using the following two commands: cjb2 mymask.pbm mymask.djvu djvumake my.djvu Sjbz=mymask.djvu PPM=myimage.ppm The DjVu specification documents in the directory doc of the DjVuLibre distribution provide the authoritative information about the compo- sition of a legal DjVu image file. CREDITS
This program was written by Leon Bottou <leonb@users.sourceforge.net> and was then improved by Andrei Erofeev <andrew_erofeev@yahoo.com>, Bill Riemers <docbill@sourceforge.net> and many others. SEE ALSO
djvu(1), djvuextract(1), cjb2(1), c44(1) DjVuLibre-3.5 10/11/2001 DJVUMAKE(1)
All times are GMT -4. The time now is 07:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy