04-29-2009
Please don't up bump up the posts - it's against the
rules.
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 OSX
uri::url5.12
URI::URL(3) User Contributed Perl Documentation URI::URL(3)
NAME
URI::URL - Uniform Resource Locators
SYNOPSIS
$u1 = URI::URL->new($str, $base);
$u2 = $u1->abs;
DESCRIPTION
This module is provided for backwards compatibility with modules that depend on the interface provided by the "URI::URL" class that used to
be distributed with the libwww-perl library.
The following differences exist compared to the "URI" class interface:
o The URI::URL module exports the url() function as an alternate constructor interface.
o The constructor takes an optional $base argument. The "URI::URL" class is a subclass of "URI::WithBase".
o The URI::URL->newlocal class method is the same as URI::file->new_abs.
o URI::URL::strict(1)
o $url->print_on method
o $url->crack method
o $url->full_path: same as ($uri->abs_path || "/")
o $url->netloc: same as $uri->authority
o $url->epath, $url->equery: same as $uri->path, $uri->query
o $url->path and $url->query pass unescaped strings.
o $url->path_components: same as $uri->path_segments (if you don't consider path segment parameters)
o $url->params and $url->eparams methods
o $url->base method. See URI::WithBase.
o $url->abs and $url->rel have an optional $base argument. See URI::WithBase.
o $url->frag: same as $uri->fragment
o $url->keywords: same as $uri->query_keywords
o $url->localpath and friends map to $uri->file.
o $url->address and $url->encoded822addr: same as $uri->to for mailto URI
o $url->groupart method for news URI
o $url->article: same as $uri->message
SEE ALSO
URI, URI::WithBase
COPYRIGHT
Copyright 1998-2000 Gisle Aas.
perl v5.12.5 2011-08-13 URI::URL(3)