Gentoo Archives: gentoo-user

From: Jonathan Wright <mail@×××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] Bash scripting
Date: Fri, 11 Nov 2005 14:36:54
Message-Id: 4374A823.7070107@djnauk.co.uk
In Reply to: [gentoo-user] [OT] Bash scripting by Peper
1 Peper wrote:
2 > Hello,
3 > I have a var $blah=' `pwd`/blah ' (extra spaces for clearer reading), how can
4 > i change it to 'output of pwd/blah' ?
5
6 What do you mean - are you looking for the actual phrase 'output of
7 /path/to/blah', i.e.
8
9 $blah='output of $(pwd)/blah'
10
11 are are you looking for program output:
12
13 $blah=$(./blah)
14
15 or
16
17 $blah=$($(pwd)/blah))
18
19 or are you looking for directory listings?:
20
21 $blah=$(ls $(pwd)/blah))
22
23 ??
24
25 --
26 Jonathan Wright
27 ~ mail@×××××××××.uk
28 ~ www.djnauk.co.uk
29 --
30 2.6.13-gentoo-r3-djnauk-b2 AMD Athlon(tm) XP 2100+
31 up 4 days, 14:09, 1 user, load average: 0.80, 0.72, 0.56
32 --
33 cat /dev/random (because u never know, u may see something u like)
34 --
35 "Girls who put out are tramps. Girls who don't are ladies. This is,
36 however, a rather archaic usage of the word. Should one of you boys
37 happen upon a girl who doesn't put out, do not jump to the
38 conclusion that you have found a lady. What you have probably found
39 is a Lesbian."
40
41 ~ Fran Lebowitz
42 --
43 gentoo-user@g.o mailing list