From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 28 Jun 2005 14:27:01 +0400 From: "Dmitry V. Levin" To: ALT Linux Sisyphus mailing list Subject: Re: [sisyphus] to cat or not to cat Message-ID: <20050628102701.GB25903@basalt.office.altlinux.org> Mail-Followup-To: ALT Linux Sisyphus mailing list References: <20050626090644.GB31585@solemn.turbinal.org> <200506271303.25973.serpiph@nikiet.ru> <20050628092906.GE20476@basalt.office.altlinux.org> <200506281417.26941.serpiph@nikiet.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H+4ONPRPur6+Ovig" Content-Disposition: inline In-Reply-To: <200506281417.26941.serpiph@nikiet.ru> X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 Cc: X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2005 10:27:03 -0000 Archived-At: List-Archive: --H+4ONPRPur6+Ovig Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 28, 2005 at 02:17:26PM +0400, Epiphanov Sergei wrote: > =F7 =D3=CF=CF=C2=DD=C5=CE=C9=C9 =CF=D4 28 =E9=C0=CE=D8 2005 13:29 Dmitry = V. Levin =CE=C1=D0=C9=D3=C1=CC: > > > [...] =F7=D9, > > > =CB=CF=C7=C4=C1 =D0=C9=DB=C9=D4=C5 '/bin/cat "file"', =CE=C5 =D0=D2= =CF=D7=C5=D2=D1=C5=D4=C5 file =CE=C1 "=D7=DB=C9=D7=CF=D3=D4=D8". =E8=CF=D4= =D1 > > > =DA=CE=C1=C5=D4=C5, =DE=D4=CF =CE=C5=D4=C5=CB=D3=D4=CF=D7=D9=CA =C6= =C1=CA=CC =CD=CF=D6=C5=D4 =D0=D2=C9=D7=C5=D3=D4=C9 =CB =D3=C2=CF=C0 =DB=D2= =C9=C6=D4=CF=D7 =CB=CF=CE=D3=CF=CC=C9. > > > [...] > > > > =FC=D4=CF =D7=D9 =CE=C5 =D0=D2=CF=D7=C5=D2=D1=C5=D4=C5. =9A=E1 =D7=CF= =D4 =D1, =CE=C1=D0=D2=C9=CD=C5=D2, =D0=D2=CF=D7=C5=D2=D1=C0. =9A=E9 =DA=CE= =C1=C0 =C5=DD=A3 =CE=C5=D3=CB=CF=CC=D8=CB=CF > > =DE=C5=CC=CF=D7=C5=CB, =CB=CF=D4=CF=D2=D9=C5 =D7 =D4=C1=CB=CF=CA =D3=C9= =D4=D5=C1=C3=C9=C9 =D0=D2=C5=C4=D0=CF=DE=C9=D4=C1=C0=D4 "less -L". >=20 > =E4=C1? =E9 =CE=C1 =CB=C1=D6=C4=D9=CA =CE=C1=C2=CF=D2 _=D2=D5=CB=C1=CD=C9= _ less -L ... =F7=D9 =D7=D7=CF=C4=C9=D4=C5 =DE=D4=CF-=D4=CF =D7=D2=CF=C4=C5 >=20 > $ newf=3D`echo "filename" | /bin/sed '...'`; tf=3D`/bin/file "$newf"|head= -n 2`;=20 > case ... esac; if ... ; then less -L newf; fi =EE=C5=D4, "cat" =D7=CE=D5=D4=D2=C9 =C3=C9=CB=CC=C1, =C1 "less -L" - =D0=CF= =D3=CC=C5 =CE=C5=C7=CF. =F5 =CD=C5=CE=D1 =C5=D3=D4=D8 =D0=D2=C9=D7=D9=DE=CB=C1 =D7=D9=D7=CF=C4=C9= =D4=D8 =CE=C1 =DC=CB=D2=C1=CE =DE=C5=D2=C5=DA less. =EB =D4=CF=CD=D5 =D6=C5 $ cat ~/bin/L #!/bin/sh exec less -L "$@" =F7=D0=D2=CF=DE=C5=CD, =DC=D4=CF =D5=D6=C5 =D3=CF=D7=D3=C5=CD =CE=C5 =D0=D2= =CF perl. --=20 ldv --H+4ONPRPur6+Ovig Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD4DBQFCwSX19viEa8HiNCkRAg8/AJjo6buDFXNsihd/ZPiS54vBhVUJAJ9R253T +h9v/jBCSThfg3YVo5EkGg== =QlQL -----END PGP SIGNATURE----- --H+4ONPRPur6+Ovig--