Hi,
I have this problem of separating 10 consecutive lines from a file, say starting from 21 to 30... I have used a filter like this..
head -n 30 myfile | tail -n 10
Is there a simpler way than this? (2 Replies)
I have a few lines like --
feature 1,
subfeat 0,
type 3,
subtype 1,
value 0,
--
feature 1,
subfeat 0,
type 1,
subtype 1,
value 0,
I would like to concatenate the... (1 Reply)
Hi All,
I want to merge two consecutive lines.
Currently the output is :-->
crmplp1 cmis461 No Online
cmis462 No Offline
crmplp2 cmis462 No Online
cmis463 No ... (6 Replies)
How to get (a list of) all the text files in the current directory and subdirectories which has the following two consecutive lines:
ctrl_end_date=2009
ctrl_process=EXPIRED
OR
ctrl_end_date=2010
ctrl_process=EXPIRED
i.e.
(ctrl_end_date=2009 OR ctrl_end_date=2010)
AND
ctrl_process=EXPIRED... (6 Replies)
Hi guys
I am deleting a unique line from the file and also need to remove the line above it which is NOT unique and servers as a record separator. Here is an example:
#
101 803E 823F 8240
#
102 755f 4F2A 4F2B
#
290 747D 0926 0927
#
999 8123 813E ... (5 Replies)
Hello - First post here. I need help combining two lines that are non-consecutive in a file. Using sed, awk or perl preferably. So the file looks as follows. Please note, the "Line#:" is there only for reference. The lines can only be distinguished by whether they have "start" or "done" in... (2 Replies)
Hi Experts
I need to match 2 patterns consecutively and display 25 lines after that.
1st one - Error
2nd one - End string ( comes along with the pattern one)
3rd one - error
Logic
grep "ERROR OCCURRED :" trace.log | awk -v "ES=:" -v "SS=java.lang.NullPointerException" '{
if($NF ~... (8 Replies)
Hi
I need to remove three consecutive lines of code which appear multiple times during a script. Two of the lines also appear in other parts of the scripts and need to stay so I can't strip out the code per se - It needs to be the exact three lines. Hope that makes sense !
Any help much... (5 Replies)
vselect(1Vi)vselect(1Vi)NAME
vselect - select objects from a Vista data file
SYNOPSIS
vselect [-option ...] [infile] [outfile]
DESCRIPTION
vselect copies selected objects from an input file to an output file.
Command line options specify which objects are to be copied. Objects may be selected by type (e.g., all images), by name, by the value of
some attribute, or by position within the input file.
COMMAND LINE OPTIONS
vselect accepts the following options:
-help Prints a message describing options.
-in Specifies a Vista data file from which objects are to be selected.
-out Specifies where to write the selected objects as a Vista data file.
The input and output files can be specified on the command line or allowed to default to the standard input and output streams.
In addition, exactly one of the following options must be used to specify the objects to be selected:
-object i Select the ith object. Objects in the input file are numbered consecutively from 0.
-name name Select any object whose attribute name is name.
-type type Select any object whose type is type.
-attr name value
Select any object having an attribute with the specified name and value.
Finally, any of these selection criteria can be inverted:
-not Reverses the sense of the selection criterion.
EXAMPLES
To select the first object from a file:
vselect -object 0 < infile > outfile
To select the attribute named ``cantaloupe'' from a file:
vselect -name cantaloupe < infile > outfile
To select everything but images from a file:
vselect -type image -not < infile > outfile
To select images with ubyte pixels from a file of images:
vselect -attr nbands ubyte < infile > outfile
AUTHOR
Art Pope <pope@cs.ubc.ca>
Vista Version 1.12 24 April 1993 vselect(1Vi)