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)
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)
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)
i want to ask how can i read a variable?
like
for i in 1 2 3
do
cat file${1} | while read something
do
if
echo " file name: file${i}" >>temp
else
echo ", file${i}" >>temp
done
done
it is not working, can i do something like that?
actually i want the output below
file name:... (4 Replies)
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)
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)
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)
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)
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)
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)