Can some body tell me how to print number of line from a particular file, with sed. ?
Input file format
AAAA
BBBB
CCCC
SDFFF
DDDD
DDDD
Command to print line 2 and 3 ?
BBBB
CCCC
And also please tell me how to assign column sum to variable.
I user the following command it... (1 Reply)
Hi experts,
You cool guys already given me the awk script below-
awk '/9366109380/,printed==5 { ++printed; print; }' 2008-09-14.0.log
Morever, i have one more things-
when i awk 9366109380, i can also see the Upper 3 lines as well as below 5 lines of that string.
Line 1.... (3 Replies)
Hi,
I need help in printing out the dates with the largest value in front of it using awk.
436 28/Feb/2008
436 27/Feb/2008
436 20/Feb/2008
422 13/Feb/2008
420 23/Feb/2008
409 21/Feb/2008
402 26/Feb/2008
381 22/Feb/2008
374 24/Feb/2008
360... (7 Replies)
hi
My problem now is that if shipping options as -o length = 88
it says the following:
# lp -o length=88 -dhp4015 /etc/hosts
UX:lp: ERROR: The following options can't be handled:
-o length=
TO FIX: The printer(s) that otherwise qualify
for printing your request can't handle
one or more of... (2 Replies)
Hello all,
How can I find the lowest number every 10 lines? For example i have a list
name1
-0.1
name2
2
name3
3
name4
-3
name5
1
name6
2
name7
34
name8
34 (6 Replies)
Hi,
Anyone help me to print the lines from the flat file between 879th line number and 1424th line number.
The 879 and 1424 should be passed as input to the shell script(It should be dynamic).
Can any one give me using sed or awk?
I tried using read, and print the lines..Its taking too... (3 Replies)
Hi,
I have a file like below.
1,2,3,4,5,6,7,8,9I would like to print or copied to a file based of line count in perl
If I gave a condition 1 to 3 then it should iterate over above file and print 1 to 3 and then again 1 to 3 etc.
output should be
1,2,3
4,5,6
7,8,9 (10 Replies)
Hi ,
My record file , need to print up to above (DATA array)(there may be n no lines ) , grep "myvalue" row now .....suggest me some options
--- DATA Array---
record type xxxxx
sequence type yyyyy
2
3---> data1
/dev/
--- DEVICE ---
MAXIMUM_People=
data_blocks=
MY_value=2
xyz
abc ... (0 Replies)
Hi,
I have attached an output file which is some kind of database file mapping. It is basically like an allocation mapping of a tablespace and its datafile/s.
The output is generated by the SQL script that I found from 401 Authorization Required
Excerpts of the file are as below:
... (2 Replies)
I have a directory of files, I can show the number of lines in each file and order them from lowest to highest with:
wc -l *|sort
15263 Image.txt
16401 reference.txt
40459 richtexteditor.txt
How can I also print the number of unique lines in each file?
15263 1401 Image.txt
16401... (15 Replies)
Discussion started by: spacegoose
15 Replies
LEARN ABOUT DEBIAN
nprint
NPRINT(1) nprint NPRINT(1)NAME
nprint - NetWare print client
SYNOPSIS
nprint [ -S server ] [ -h ] [ -U username | -n ] [ -C ] [ -q queuename ] [ -d job-description ] [ -p pathname-in-banner ] [ -B username-in-
banner ] [ -s ] [ -f filename-in-banner ] [ -l lines ] [ -r rows ] [ -c copies ] [ -t tab size ] [ -T ] [ -N ] [ -F form-number ] filename
DESCRIPTION
With nprint, you can print files on print queues of a NetWare file server.
There are a lot of options, so you should probably wrap some default configurations into some shell scripts.
nprint looks up the file $HOME/.nwclient to find a file server, a user name and possibly a password. See nwclient(5) for more information.
Please note that the access permissions of .nwclient MUST be 600, for security reasons.
OPTIONS
filename
filename is the name of the file you want to print. If file is '-', or no filename is given, standard input is used.
-h
-h is used to print out a short help text.
-S server
server is the name of the server you want to use.
-U username
username is the user name to use for the print request at the server.
-P password
password is the password to use for the print request at the server. If neither -n nor -P are given, and the user has no open connec-
tion to the server, nprint prompts for a password.
-n
-n should be given if no password is required for the print request.
-C
By default, passwords are converted to uppercase before they are sent to the server, because most servers require this. You can turn off
this conversion by -C.
-q queuename
queuename is the name of the print queue to use at the print server. At present, you must specify it in upper case characters.
-d job-description
job-description is the string that appears in pconsole when you list the jobs for the print queue. It will also appear in the "Descrip-
tion" field on the banner page.
-p pathname-in-banner
pathname-in-banner is the string (up to 79 characters) you want to be printed in the "Directory" field on the banner page.
-B username-in-banner
username-in-banner is the string (up to 12 characters) you want to appear on the lower part of the banner page. It will also appear in
the "User name" field.
-s
Supress printing of banner page
-f filename-in-banner
filename-in-banner is the string (up to 12 characters) you want to appear in large letters on the lower part of the banner page.
Default: the name of the file that is printed, or 'stdin'.
-l lines
lines is the number of lines to put on one page. Default: 66.
-r rows
rows is the number of rows to put on one page. Default: 80.
-c copies
copies tells the print server to the specified number of copies. Default: 1.
-t tabs
tabs is the number of spaces to print for a Tab-Character. Default: 8.
-T
tells the print server to expand Tab-Character and use 8 spaces
-N
tells the print server not to use Form Feeds
-F form-number
form-number is the the number of the form to be put into the printer. If it's different from the one currently in the printer, your job
is only printed if a printer operator has put in the correct form.
NOTES
The '-B' option was formerly '-b'. But it conflicted with 'bindery only' login option.
SEE ALSO nwclient(5), slist(1), pqlist(1), ncpmount(8), ncpumount(8)CREDITS
nprint was written by Volker Lendecke (lendecke@math.uni-goettingen.de)
nprint 12/27/1995 NPRINT(1)