Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: Little help about sed editor


  • Subject: Re: lug-bg: Little help about sed editor
  • From: pope@xxxxxxxxxx (Alex Pope)
  • Date: Mon, 5 Jun 2000 15:16:48 +0300 (EEST)



On Mon, 5 Jun 2000, Nikolay Kabaivanov wrote:

> Zdrawejte 
> Imam problem s towa da nakaram redaktora sed da mi podmeni string ot
> wida   "www.company.com/directory" sus stringa "site.company.com"
> problemi suzdawa naklonenata cherta "/"  probwah i niakolko warianata s
> kawicki no nesto ne stana :-(
> Niakoj ima li ideia kak da se kaze na sed che towa e edin cial string ?
> Po princip mezdu chertite triabwa da e "regexp".
> eto kak probwam az :
> -----------------------
> /bin/sed s/www.company.com/support/support.company.com/ some_file
> >another_file
> -----------------------

ed s/www.company.com\\/support/support.company.com/g some_file
>another_file

ili

ed s%www.company.com/support%support.company.com%g some_file
>another_file

% moje da se zamesti s proizvolen single character.

> Ima il niakakuw nachin da se izbegne prenasochwaneto kum drug fajl, t.e.
> promenite da stawat naprawo w osnownia fajla. 

cat some_file | sed s/... > some_file

> Blagodaria predwaritelno.
> -- 
> ----------------------------------
> Nikolay Kabaivanov, ntk@xxxxxxxxxx
> University of Rousse, Bulgaria

HTH
pope

==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.