I'd recommend looking at the bottom of this thread for More UNIX and Linux Forum Topics You Might Find Helpful threads.
Also look a simple menu building script as a sample of using select and case:
These 2 Users Gave Thanks to vgersh99 For This Post:
Hi there, just wondered if somebody could help me with a problem I have
I have a program that when run from the command line will output a list of objects
# list_servers
server1
server5
server7
server8
#
I just wanted to know, in perl, how can i make each line of output from... (4 Replies)
Hi,
I would like to write a for loop that does the following:
I have a file called X.txt and other files called 1.txt,2.txt, .....,1000.txt.
I want to substitute the 6th column of the file X.txt with 1.txt and store the output as X.1. Then I want to do the same with X.txt and 2.txt and store... (0 Replies)
Hi,
I have some hundreds/thousands of files named logX.dat, where X can be any integer, and they are sequential, X ranges between 1 and any number:
log1.dat log2.dat log3.dat log6.dat log10.dat ... log6000.dat
I would like to rename them to
scatter_params_0001.dat... (6 Replies)
Hi,
I've a list of files
ac_info.tps, subscription_array.tps, .......and many other files
one of the file, bin_range_list.tps has the following content
CREATE OR REPLACE TYPE "BIN_RANGE_LIST" AS TABLE OF BIN_RANGE_ELEM;
/
grant execute on... (4 Replies)
I copied the below program to play around with displaying a list of items using the select command in ksh. When I put all items in the same line, it works fine. I am trying to use multiple lines instead of a single row...my list is too large for a single line. How do I get the line continuation... (3 Replies)
I have about 6000 files of the following format (three simplified examples shown; actual files have variable numbers of columns, but the same number of lines). I would like to concatenate the ID (*Loc*) and data lines, but not the others, as shown below. The result would be one large file (or... (3 Replies)
I have a text file in this format
Some lines....
Question no: 1
The question?
A. Answer 1
B. Answer 2
C. Answer 3
D. Answer 4
Answer:B
Some lines....
Question no: 2
The question? (choose 2) (10 Replies)
Hi,
I am trying to script the below, but I am not very good at it :(
Your help would be greatly appreciated.
1. read all files in the directory in strings
strings *.*
2. in each file, for each line that contains "ABCD", store characters located at position 521 and 522 of this line... (9 Replies)
Hello All,
just wanted to export multiple tables from oracle sql using unix shell script to csv file and the below code is exporting only the first table.
Can you please suggest why? or any better idea?
export FILE="/abc/autom/file/geo_JOB.csv"
Export= `sqlplus -s dev01/password@dEV3... (16 Replies)
Discussion started by: Hope
16 Replies
LEARN ABOUT DEBIAN
vselect
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)