I would like to prompt for input and then use it as a variable in a script.
Something like this.
#!/bin/ksh
echo "What is your name?: \c"
read response
echo "Your name is $reply" >file.txt
done
exit 0
What am I missing?
Thanks, (7 Replies)
Hi,
Here is the output of lpstat. I would like to read value of Queue which is(abxxxxb1)and status that is DOWN in first line. i dont care what is in second line. any one can help me.thanks
Queue Dev Status Job Files User PP % Blks Cp Rnk
------- ----- ---------... (5 Replies)
Hi,
I am reading a file line by line using read line function of while loop. Each line contains 4 fields. I want to take these 4 values in 4 variables in each iteration so that i can use them in my script. The issue here is that my awk command is returning awkward results -
Here is a sample line... (8 Replies)
I have 'n' number of files in a folder .each file in the folder "myfolder" is having the content like.
COLNAME
------------
AAAAAA
BBBBBB
CCCCCC
DDDDDD
...
...
...
ZZZZZZ
26 recrod(s) selected.
My request is by reading each file in "myfolder" and format each file such a way... (18 Replies)
Hi Guys,
I have a file. Each record needs to inserted into a table. The table also have other columns which needs to be inserted with Shell variables.
The following is the file.
Error code None.
Error Code 1
The shell script is having these variables.
Name=Magesh
Dep=Coding
... (1 Reply)
I have a file details.csv and I need to create 5 files in same folder named as details1.csv,details2.csv,details3.csv,details4.csv,details5.csv along with contents of details.csv
Thanks in Advance. (9 Replies)
Hi ,
i have a parameter which has path of a file. Now i need to have another parameter with the content of that file. I tried the belwo script , can any one please help.
I dont want to use cat command to read. Can we do it with out using cat command.
while read line
do... (9 Replies)
Dear Gurus
I am stuck with the peice of work and do not know from where to start.
I get a machine generated file which is binary file contain binary data, i want to read binary data as it is without converting into any other format.
i want to read byte by byte.
Please let me know what... (24 Replies)
is there any unix tools that can read the text files like through SQL queries? (ie in Hadoop, Impala DB support flat file query) (1 Reply)
Discussion started by: omykarshan
1 Replies
LEARN ABOUT CENTOS
tapelist
TAPELIST(5) File formats and conventions TAPELIST(5)NAME
tapelist - The list of Amanda volumes in use
DESCRIPTION
The tapelist file contains the list of tapes in active use. This file is not ordinarily ordinarily edited or examined manually. Its format
may change, or it may be removed altogether, in future versions of Amanda. It contains lines of the form:
YYYYMMDD label flags [BARCODE:barcode] [META:meta] [BLOCKSIZE:blocksize] [#comment]
Where YYYYMMDD is the date the tape was written, label is a label for the tape as written by amlabel and flags is one of "reuse" or
"no-reuse" and tells Amanda whether the tape may be reused. A non-reusable tape will not be overwritten, even if it is older than dumpcycle
dumps. See the reuse options of amadmin(8). The optional barcode is prefixed with 'BARCODE' if the volume have a barcode. The optional meta
label is prefixed with 'META' if the volume is on a meta volume. The optional blocksize is prefixed with 'BLOCKSIZE'. The optional comment
is prefixed with a '#' and continues to the end of the line. Amanda will maintain this comment until the tape is overwritten. Note that
comments are not allowed on blank lines.
The file is sorted such that the most-recently used tape appears on the first line, and the oldest tape appears on the last line.
Amdump and amflush will by default refuse to write to an unlabeled tape, or to a labeled tape that is considered active or marked
"no-reuse". There must be more tapes in active rotation (see the tapecycle option) than there are runs in the backup cycle (see the
dumpcycle option) to prevent overwriting a backup image that would be needed to do a full recovery.
SEE ALSO amanda(8), amanda.conf(5)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHORS
James da Silva <jds@amanda.org>
Stefan G. Weichinger <sgw@amanda.org>
Dustin J. Mitchell <dustin@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Amanda 3.3.3 01/10/2013 TAPELIST(5)