Hello all,
I've a CSV file and need to replace 5th field if its value is "X".
The exact requirement is to replace 5th field (column) with "Y" if
a. it's value is "X" AND
b. the line must start with ABC string
i guess this can be done with awk. Pl help.
For security reasons, the... (2 Replies)
I have a csv file which has three columns
mem no. name surname
1234 John Smith
12345 John Doe
I want to change the mem no. to add TF to the mem no. field i.e.
mem no. name surname
1234TF John Smith
12345TF John Doe
How do you do this for all records in the file? (3 Replies)
Hi
I have a job status csv file. I want to update the status of the job in the file.
Below is the csv file
1,jobname1,in_progress,starttime,somthing,somthing
2,jobname2,completed,starttime,somthing,somthing
3,jobname3,failed,starttime,somthing,somthing... (8 Replies)
I have a .CSV file (file.csv) whose data are all enclosed in double quotes. Sample format of the file is as below:
column1,column2,column3,column4,column5,column6, column7, Column8, Column9, Column10
"12","B000QRIGJ4","4432","string with quotes, and with a comma, and colon: in... (3 Replies)
Hi,
I have a file of csv data, which looks like this:
file1:
1AA,LGV_PONCEY_LES_ATHEE,1,\N,1,00020460E1,0,\N,\N,\N,\N,2,00.22335321,0.00466628
2BB,LES_POUGES_ASF,\N,200,200,00006298G1,0,\N,\N,\N,\N,1,00.30887539,0.00050312... (10 Replies)
hi gurus,
I would like to be able to use awk to process 1 file as such:
abc 1 2 3 4 5 6 7 8 9 10
flags 1 2 4
flags 1 2 5
abc 2 3 4 5 6 7 8 9 10 11
flags 1 2 3
abc 4 5 6 7 8 9 6 7 78 89
flags 1 2 3
flags 1 2 4
flags 1 2 3 4
I would like to be able to print field 1 and 5 when the... (4 Replies)
Hi, all
I need your help and suggestions.
I want to print particular strings in a field of a csv file and show them in terminal. Here is an example of the csv file.
SourceFile,Airspeed,GPSLatitude,GPSLongitude,Temperature,Pressure,Altitude,Roll,Pitch,Yaw... (7 Replies)
What I need is to remove the text from Location_file.txt from each line matching all entries from Remove_location.txt
Location_file.txt
FlowPrePaid, h3nmg1cm2,Jamaica_MTAImageFileFlowPrePaid,h0nmg1cm1, Flow_BeatTest,FlowRockTest
FlowNewTest,FlowNewTest,h0nmg1cm1
PartiallySubscribed,... (3 Replies)
Discussion started by: ketanraut
3 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)