[LUGOS] Bash skripta
David Ipavec
david.ipavec at amis.net
Tue Nov 27 21:06:57 CET 2001
On Tue, Nov 27, 2001 at 06:55:55PM +0100, Igor linux wrote:
> 1.rezanje teksta iz datoteke test.txt(vsebuje recimo 1000 vrstic)
> a) od vrstice 100 do 200
sed -e '100,200!d'
> b) od iskalnega niza1 do niza2
sed -e '/niz1/,/niz2/!d'
> Oznacen tekst bi potem zapisal v datoteko
> 2.preverjanje enakosti odrezanega teksta v datoteki z drugo podobno datoteko
diff
cmp
--
David Ipavec <david.ipavec at amis.net>
PGP/GnuPG Public Key available at keyserver
Fingerprint: 621C 1C52 417D 2EFA 3D00 A4CF 9958 F779 61EC 9D5E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://liste2.lugos.si/pipermail/lugos-list/attachments/20011127/231abb29/attachment-0001.pgp
More information about the lugos-list
mailing list