On Fri, 13 Jun 2008, Jaroslav Votruba wrote: > mohli by jste mi prosim vysvetlit, jak napsat prikaz pomoci tr a nahradit > jedno slovo druhym? > pokud dam tr "pokus" "rum" < aa > vysledek je rummm, tj 4 a 5 znak jsou nahrazeny poslednim znakem slova > rum.Vim, ze to jde sedem, ale rad bych to rozlousknul.
man tr --- cut --- SYNOPSIS tr [-Ccsu] string1 string2 tr [-Ccu] -d string1 tr [-Ccu] -s string1 tr [-Ccu] -ds string1 string2 DESCRIPTION The tr utility copies the standard input to the standard output with sub-stitution or deletion of selected characters. ... In the first synopsis form, the characters in string1 are translated into the characters in string2 where the first character in string1 is trans-lated into the first character in string2 and so on. If string1 is longer than string2, the last character found in string2 is duplicated until string1 is exhausted. --- cut --- Vlasta -- FreeBSD mailing list (users-l@freebsd.cz) http://www.freebsd.cz/listserv/listinfo/users-l