I have an input file which is tab delimited.In my unix script I have search for a particular pattern.If it is NOT present then I have to write in an output file.
Eg.Input file is :
And the search string is "123 hello hi".If all these are present in the particular line then the line should not be written to the output file.All other lines should be written.The output file will look like:
The fields are present at fixed position of the tab-delimited line.In the above ex 1,2 and 4.
Plz help
Thanks
Hi,
I need help with using an awk or sed filter on the below line
ALTER TABLE "ACCOUNT" ADD CONSTRAINT "ACCOUNT_PK" PRIMARY KEY ("ACCT_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "WMC_DATA" LOGGING ENABLE
Look for... (2 Replies)
Hi, As I am new to filtering section of Unix I am facing a problem
I have following lines in text file :
Created RELEASE in dist/Apple_release_1_0_.zip
Created RELEASE in dist/Banana_release_1_0_.zip
Created RELEASE in dist/Mango_release_1_0_.zip
Created RELEASE in... (2 Replies)
I have a .kml file. So I want filter the .kml to get only the tags that have this numeric codes that they are in a text file
11951
11952
74014
11964
11965
11969
11970
11971
11972
60149
74018
74023
86378
11976
11980
11983
11984
11987 (5 Replies)
I am trying to search a file for a patterns ERR- in a file and return a count for each of the error reported
Input file is a free flowing file without any format
example of output
ERR-00001=5
....
ERR-01010=10
.....
ERR-99999=10 (4 Replies)
Hello ,
Below is the command
srvctl config database -d cmdbut -s boms10.world
Below is the output. Now in the command instead of cmdbut it will be a variable like $database which would be called in the script as below:
srvctl config database -d $database -s $service
Now,as shown in... (6 Replies)
Hi Folks,
I have a text file with lots of rows with duplicates in the first column, i want to filter out records based on filter columns in a different filter text file.
bash scripting is what i need.
Data.txt
Name OrderID Quantity
Sam 123 300
Jay 342 498
Kev 78 2500
Sam 420 50
Vic 10... (3 Replies)
Hi
I need to do a patten match between files .
I am new to shell scripting and have come up with this so far. It take 50 seconds to process files of 2mb size . I need to tune this code as file size will be around 50mb and need to save time.
Main issue is that I need to search the pattern from... (2 Replies)
Not sure if this is the correct forum for this question. I have two files. file1.zip, file2
Input:
file1.zip
col1, col2 , col3
a , b , 0:0:0:0:0:c436:9346:d40b
x, y, 0:0:0:0:0:880:39f9:c9a7
m, n , 0:0:0:0:0:80c7:9161:fe00
file2.txt
col1
c4:36:93:46:d4:0b... (1 Reply)
Hi,
I am having a file like below
hello how are you
hello... (5 Replies)
Discussion started by: rohit_shinez
5 Replies
LEARN ABOUT ULTRIX
pnmsplit
pnmsplit(1) General Commands Manual pnmsplit(1)NAME
pnmsplit - split a multi-image portable anymap into multiple single-image files
SYNOPSIS
pnmsplit [pnmfile[ output_file_pattern]]
DESCRIPTION
Reads a Netpbm file as input. Copies each image in the input into a separate file, in the same format.
pnmfile is the file specification of the input file, or - to indicate Standard Input. The default is Standard Input.
output_file_pattern tells how to name the output files. It is the file specification of the output file, except that the first occurence
of "%d" in it is replaced by the image sequence number in unpadded ASCII decimal, with the sequence starting at 0. If there is no "%d" in
the pattern, pnmsplit fails.
The default output file pattern is "image%d".
Note that to do the reverse operation (combining multiple single-image PNM files into a multi-image one), there is no special Netpbm pro-
gram. Just use cat.
SEE ALSO pnm(5), cat(1)AUTHOR
Written by Bryan Henderson
19 June 2000 pnmsplit(1)