i have a file in unix in which datas are like this
07 01 abc data entry Z3 data entry ASSISTANT Z3 39
08 01 POD peadiatrist Z4 POD PeDIATRY Z4 67
01 operator specialist 00 operator UNSPECIFIED A0 00
... (12 Replies)
the data in my file is has no delimiters. it looks like this:
H52082320024740010PH333200612290000930 0.0020080131
D5208232002474000120070306200703060580T1502 TT 1.00
H52082320029180003PH333200702150001 30 100.0020080205
D5208232002918000120070726200707260580T1502 ... (3 Replies)
I'm trying to extract all the lines between 2 strings (including the lines containing the strings)
To make the strings unique I need to include white space if possible. I'm not certain how to do that.
sed -n '/ string1 /,/string2/p' infile > outfile & (4 Replies)
I have a file with the contents below
jan_t=jan;feb_t=feb;mar_t=mar;year=2010
jan_t=null;feb_t=feb;mar_t=mar;year=2010
jan_t=jan;feb_t=feb;mar_t=mar;year=2010
I want to extract out all the fields values ending with "_t" , however, i want to exclude feb_t and mar_t from the results
In... (6 Replies)
I need to extract all text delimited from <name> and </name> tags from an xml file, but not only first occurence. I need to extract all occurences.
I've tried with this command:
awk -F"<name>|</name>" 'NF>2{print $2}'
but it give only first occurence. How can i modify it? (18 Replies)
I have a file which looks like this:
73450 articles and news developmental psychology 2006-03-30 16:22:40 1 http://www.usnews.com
73450 articles and news developmental psychology 2006-03-30 16:22:40 2 http://www.apa.org
73450 articles and news developmental psychology 2006-03-30... (1 Reply)
Hi,
In my file (which is "," delimited and text qualifier is "), I have to extract a particualr field.
file1:
1,"aa,b",4
expected is the 2nd field:
aa,b
I tried the basic cut -d "," -f 2 file 1, this gave me
aa alone instead aa,b.
A small hint ot help on this will be very... (5 Replies)
Hi All,
I am writing a shell script to extract oracle table into a pipe dilemited flat file. Below is my code and I have attached two files that I have abled to generate so far.
1. Table.txt ==> database extract file
2. flat.txt ==> pipe delimited after some manipulation of the original db... (5 Replies)
I need to list and delete all files in current older which are olderthan 7 days. But my file names have white spaces. Before deleting I want to list all the files, so that I can verify.find . -type f -mtime +7 | xargs ls -l {}
But the ls command is the working on the files which have white... (16 Replies)
Hi All,
we have a requirement to split a content in a text file every 5 rows and write in a new file .
conditions:
if 5th line falls between center of the statement . it should look upto after ";"
files are below format:
1 UPDATE TABLE TEST1 SET VALUE ='AFDASDFAS'
2 WHERE... (3 Replies)
Discussion started by: KK230689
3 Replies
LEARN ABOUT CENTOS
pbm2ppa
pnm2ppa(5 Feb 2000) pnm2ppa(5 Feb 2000)
NAME
pbm2ppa - convert portable bitmap (PBM) to HP's Printing Performance Architecture (PPA) file format
SYNOPSIS
pbm2ppa [options] [ <infile] > [ <outfile]> ] ]
DESCRIPTION
Reads portable bitmap (PBM) format as input. Outputs a stream suitable for processing by Hewlett-Packard's range of Printing Performance
Architecture (PPA) printers. pnm2ppa supports the HP 710c, 712c, 720c, 722c, 820c, and 1000c series printers.
(Portable bitmap (PBM) format output can be produced from PostScript(tm) input by the GhostScript driver "pbmraw".)
OPTIONS
infile Input file infile is either a path to a file or device, or '-' to indicate stdin (defaults to stdin)
outfile
Output file outfile is either a path to a file or device, or '-' to indicate stdout (defaults to stdout)
-b bottommargin
Sets the bottom margin bottommargin in units of 1/600 inches (e.g., -b 150 = 0.25")
-d Displays the current configuration
-f configfile
Overrides reading the configuration from /etc/pnm2ppa.conf, and uses configfile instead.
-h Displays program usage
-l leftmargin
Sets the left margin leftmargin in units of 1/600 inches (e.g., -l 150 = 0.25")
-r rightmargin
Sets the right margin rightmargin in units of 1/600 inches (e.g., -r 150 = 0.25")
-s papersize
Sets the paper size. Possible values for papersize are a4 (A4), letter or us (US Letter, 8.5"x11"), and legal (US Legal, 8.5"x14").
The default is US Letter.
-t topmargin
Sets the top margin topmargin in units of 1/600 inches (ie -t 150 = 0.25")
-v printertype
Selects the printer model. Possible values of printertype are: 710, 712, 720, 722, 820 and 1000. The default is the HP DeskJet 7X0
Series (710, 712, 720, 722).
-x xoffset
Sets the x-offset xoffset from the left of the page. Units are 1/600 inches
-y yoffset
Sets the y-offset yoffset from the top of the page. Units are 1/600 inches
NOTES
The configuration file is read in first. Command line arguments then modify the resulting definitions.
The -x and -y options accumulate. The -v option resets all definitions back to an inbuilt default for that printer and should be used
before subsequent -b -l -r, -t, -x, and -y arguments.
SEE ALSO pbm(5)FILES
/etc/pbm2ppa.conf
Default configuration file
AUTHOR
This code is licensed under the GNU Public License version 2. See LICENSE for details.
(c) 1998 Tim Norman
HISTORY
This program was written by Tim Norman. It originally supported black and white output on the 820 series. This program is almost obsolete;
its successor pnm2ppa will support color printing.
BUGS
This is a stable driver, but does not support color printing.
pnm2ppa(5 Feb 2000)