g - значит во всей строке On Thursday 03 May 2007, Ilya Petrov wrote: > В Пнд, 30/04/2007 в 10:46 +0400, Attid пишет: > > 29.04.07, 16:20, Alexander Kraev : > > >cat autoserial.conf | grep "16950/954" | sed 's/115200/460800/g' > > > > > autoserial.conf.tmp > > > > >mv autoserial.conf.tmp autoserial.conf > > > > > >должно сработать, не проверял. > > > > ну почти только остальные строчки мне надо оставить =) > > курить доку по sed. делается одной командой: > sed 's%что%на что%g' -i /файл.где-заменять. > вместо % может быть любой знак. g - значит по всему файлу.
---------------------------------------------------------------------- This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Five 9, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. ---------------------------------------------------------------------- -- ubuntu-ru mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru
