04-29-2009
can anyone please help me with the question?
Thank you
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
My problem is :
echo Division
read vDivision
variable1=`cut -c **something****'
echo Do you want to proceed ?
read ans
I cant seem to read in ans on the first try and have to repeatedly enter the return key. If i remove the ` ` statement its ok but i need that line for... (1 Reply)
Discussion started by: normie
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
My problem is :
echo Division
read vDivision
variable1=`cut -c **something****'
echo Do you want to proceed ?
read ans
I cant seem to read in ans on the first try and have to repeatedly enter the return key. If i remove the ` ` statement its ok but i need that line for... (1 Reply)
Discussion started by: normie
1 Replies
3. Shell Programming and Scripting
I'll be reading user name and password from the person while running a shell
script so that he is authenticated.
The challenge here is to read the password variable without displaying on screen. Is there a way?
I presently do it displaying it on the screen as
echo " please enter your... (9 Replies)
Discussion started by: dayanandra
9 Replies
4. Shell Programming and Scripting
Can I use the read command to read the contents of a variable? I'm trying by using the following code and getting nothing back. I'm in a Linux environment.
#!/bin/ksh
IFS=~
VAR1=1~2~3~4
echo $VAR1 | read a b c d
print "$a $b $c $d" (9 Replies)
Discussion started by: nmalencia
9 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I have a ini-file containing comma-separated e-mail addresses, an bash-script sending a mail. Mail-addresses and the mail-script are separated, so I need not to change the important mail script.
But how can I read out the file into a variable? It is possible to handover the mail... (7 Replies)
Discussion started by: ABE2202
7 Replies
6. Shell Programming and Scripting
Hi,
i have one file which has list of data like this
xemp 42
yeet 87
wax 223
dyne 442
i want to read each of in for loop from the script
can you give me syntax
Use code tags, ty. (2 Replies)
Discussion started by: mail2sant
2 Replies
7. Shell Programming and Scripting
Hi,
i want to create an user-friendly script where you are asked for two numbers. i would like that these two number to be separated with "--" for example, but i can't figure out how to do this.
for example
read -p "Insert lowest and highest value: " min ; echo -n "-- "; read max
so... (3 Replies)
Discussion started by: ezitoc
3 Replies
8. Shell Programming and Scripting
Allright so a quick question.
I'm building a script that will eventually do a full IP subnet scan.
It starts off by first entering an IP address, (capturing host and net ID comes after that) and I want it to use the current IP address if no input is given.
Is there a quick way to define the... (1 Reply)
Discussion started by: BisMarc
1 Replies
9. Linux
Hi all,
I used to set variable by read from keyboard
read -p 'Input new value for variable :' var
Now I want to pipe from ls and set to var
a.txt b.txt c.txt
ls | grep a.txt | read var
why this cannot set the $var.
What is the different between them....:wall: (4 Replies)
Discussion started by: mainsun
4 Replies
10. Shell Programming and Scripting
Hi All,
How I can read on variable with cycle for in bash script e.g.#!/bin/bash
VAR1=`command1 sentence list`
for i in $(cat $VAR1);
do
VAR2=`command2 $i`
echo $VAR2
doneSo read VAR1 execute command over this and load in VAR2 then print VAR2,
Thanks you,
Please wrap... (1 Reply)
Discussion started by: aav1307
1 Replies
LEARN ABOUT DEBIAN
hamexam
HAMEXAM(1) General Commands Manual HAMEXAM(1)
NAME hamexam - Study guide for USA FCC amateur radio (ham radio) license examinations.
SYNOPSIS
hamexam [option]
DESCRIPTION
hamexam presents questions in random order from the selected question pool, and terminates when all questions have been answered correctly.
The session may be interrupted with ^C, and resumed later.
Some questions refer to diagrams. The diagrams for the selected question pool are displayed in a separate window using eog(1).
Licenses are issued by the Federal Communications Commission (FCC), but examinations are administered by Volunteer Examiners.
OPTIONS
If no pool is specified, usage, version, and help information is displayed.
In normal usage, one of the following options should be specified:
t Element 2, the Technician Class pool. This is the entry-level license.
g Element 3, the General Class pool (element 2 is also required).
e Element 4, the Extra Class pool (elements 2 and 3 are also required).
q The question pool is selected interactively.
FILES
A directory ~/.hamexam is created to hold the names of the questions which remain to be answered correctly.
SEE ALSO
For more information regarding licensing, ref. http://www.arrl.org/licensing-preparation-exams
For information regarding the question pools, ref. http://www.ncvec.org/
COPYRIGHT
hamexam is Copyright (c) 2011-2012 John Nogatch <jnogatch@yahoo.com>.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
BUGS
The question pools are normally good for 4 years, but are sometimes modified; ref. http://www.ncvec.org/
hamexam does not automatically update the question pools from the VEC Web site.
HAMEXAM(1)