🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.os.linux.newbie
Article #138705

Proszę o pomoc - sformułowanie wyrażenia powłoki

#138705
From: yendy
Date: Sat, 11 Sep 2010 22:27
11 lines
1462 bytes
Po komendzie:
$ echo $STY
dostaję:
5105.tty2.MyComputer

(ogólnie: 5105.tty<N>.MyComputer ) - pytanie: jak sformułować
wyrażenie powłoki aby wyodrębnić numer terminala <N> mając zmienną
$STY ?

Pewnie trzeba użyć jakiegoś parsera typu 'gawk'... oraz regular
expression... proszę o pomoc!
Technical Details
Message-ID: <524e4f5c-7fb7-4504-8baf-5d9a253433bb@g10g2000vbc.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!g10g2000vbc.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!g10g2000vbc.googlegroups.com!not-for-mail
From: yendy <yendy.szczyrkovsky@gmail.com>
Newsgroups: alt.pl.comp.os.linux.newbie
Subject: Proszę o pomoc -
 sformułowanie wyrażenia powłoki
Date: Sat, 11 Sep 2010 15:27:32 -0700 (PDT)
Organization: http://groups.google.com
Lines: 13
Message-ID: <524e4f5c-7fb7-4504-8baf-5d9a253433bb@g10g2000vbc.googlegroups.com>
NNTP-Posting-Host: 87.206.112.88
Mime-Version: 1.0
X-Trace: posting.google.com 1284244052 28166 127.0.0.1 (11 Sep 2010 22:27:32 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 11 Sep 2010 22:27:32 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: g10g2000vbc.googlegroups.com; posting-host=87.206.112.88; posting-account=7BGxJgoAAAAjIJFNDdDdmu31hZEtdb3W
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4,gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit