🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.programowanie
Article #60190

Re: grep

#60190
From: Jarosław Siebert
Date: Mon, 24 Oct 2005 16:39
25 lines
1621 bytes
On Mon, Oct 24, 2005 at 06:32:04PM +0200, vertigo wrote:
> 
> Czesc
> 
> Potrzebuje w skrypcie basha sprawdzic czy z zmiennej A znajduje sie zmienna B 
> na przyklad:
> A=12345TAJNE777
> B=TAJNE
> 
> wtedy B zawiera sie w A.
> 
> Czy da sie cos takiego zrobic grepem (z mojej dokumentacji wynika ze raczej 
> nie),
> czy ktos moze pomoc ? (alternatywne rozwiazanie) ?
nie wiem, jak nie znajdziesz (a pewnie jest alternatywne rozwiązanie) możesz
przekierowac zawartość A do pliku, przegrepować i odebrać wynik.

pozdrawiam
	iu1j4

-- 
               .:  DLJ PROJECT  :.
             .: Jarosław  Siebert :. 
    ........: jsiebert@poczta.wp.pl :.........
  .: Lru: 255615 | tel: 603877428 | Gg: 560046:. 
Technical Details
Message-ID: <20051024183828.GB827@siebert.dljproject.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <op.sy5r7qbxzn8jyu@highland>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Jarosław Siebert <jsiebert@poczta.wp.pl>
Newsgroups: pl.comp.os.linux.programowanie
Subject: Re: grep
Date: Mon, 24 Oct 2005 16:39:07 +0000 (UTC)
Organization: tp.internet - http://www.tpi.pl/
Lines: 25
Message-ID: <20051024183828.GB827@siebert.dljproject.pl>
References: <op.sy5r7qbxzn8jyu@highland>
NNTP-Posting-Host: awr154.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: nemesis.news.tpi.pl 1130171947 14402 83.18.69.154 (24 Oct 2005 16:39:07 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Mon, 24 Oct 2005 16:39:07 +0000 (UTC)
In-Reply-To: <op.sy5r7qbxzn8jyu@highland>
User-Agent: mutt-ng/devel-r529 (NetBSD)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit