1 |
Hello Renat, |
2 |
|
3 |
Friday, October 15, 2004, 11:21:22 AM, you wrote: |
4 |
|
5 |
> On Fri, 15 Oct 2004 11:08:17 +0200 Christian <MainNewz@×××.net> wrote: |
6 |
>> eine Frage hab ich allerdings noch.... |
7 |
>> wieso funktioniert bei mir das shellscript-zeug nicht... |
8 |
>> ich bekomm bei meinem beispielprogramm folgende ausgabe: |
9 |
>> |
10 |
>> ---PRG--- |
11 |
>> #!/bin/bash |
12 |
>> |
13 |
>> for name in 'cut -d":" -f1 /etc/passwd' |
14 |
|
15 |
> Das sollen Bakcticks sein und keine Apostrophe, also |
16 |
> `cut -d":" -f1 /etc/passwd` oder $(cut -d":" -f1 /etc/passwd) |
17 |
|
18 |
>> do |
19 |
>> echo $name |
20 |
>> done |
21 |
>> ---PRG--- |
22 |
>> |
23 |
>> ---AUSGABE--- |
24 |
>> # sh shelltest.sh |
25 |
>> cut -d":" -f1 /etc/passwd |
26 |
>> # |
27 |
>> ---AUSGABE--- |
28 |
>> |
29 |
>> wieso schreibt er nicht die ganzen usernamen hin? irgend wie |
30 |
>> funktioniert meine for-schleife nicht... |
31 |
|
32 |
|
33 |
> Gruß, |
34 |
> Renat |
35 |
|
36 |
DANKE, das war's :) |
37 |
|
38 |
|
39 |
-- |
40 |
gentoo-user-de@g.o mailing list |