Gentoo Archives: gentoo-user-pl

From: Dawid Chemloul <zgredek@××××××××××××××××××.org>
To: gentoo-user-pl@l.g.o
Subject: Re: [gentoo-user-pl] Witam.
Date: Mon, 16 Aug 2004 07:11:53
Message-Id: 1495.165.213.1.1.1092640311.squirrel@165.213.1.1
In Reply to: Re: [gentoo-user-pl] Witam. by "Grzegorz Dzięgielewski"
1 To ja siê te¿ przywitam :)
2
3 Siedzê teraz w Korei ale jestem z Warszawy :)
4
5 i mam te¿ pytanko
6
7 czy macie pomys³ jak lepiej napisaæ poni¿szy skrypt
8
9 > #!/bin/bash
10 > echo \#\!/bin/bash > /var/tmp/tmpstatscr
11 > find /etc/init.d/ -not -name "*.sh" -not -regex "/etc/init.d/$" | sed -e
12 "s/\/etc\/init\.d\/\(.*\)/printf \"\\\033[01;36m\1\\\033[00m\" ;
13 \/etc\/init\.d\/\1 status/" >>/var/tmp/tmpstatscr
14 > chmod +x /var/tmp/tmpstatscr
15 > printf "\033[01;34m************************\n* started services
16 *\n************************\n\n\033[00m"
17 > /var/tmp/tmpstatscr | grep started
18 > printf "\033[01;34m\n\n************************\n* not started services
19 *\n************************\n\n\033[00m"
20 > /var/tmp/tmpstatscr | grep -v started
21 > rm /var/tmp/tmpstatscr
22
23 kazd± now± liniêzacz±³em od '>' ¿eby by³o ³atwiej je znale¼æ
24
25 wiem ¿e powinienem jeszcze uzale¿niæ u¿ycie kolorów od typu terminala (ale
26 narazie nie wiem jak)
27
28 Pozdrawiam
29
30 --
31 zGrEDek
32 (Dawid Chemloul)
33
34
35 --
36 gentoo-user-pl@g.o mailing list

Replies

Subject Author
[gentoo-user-pl] Dalsze pytanka :) Dawid Chemloul <zgredek@××××××××××××××××××.org>