|
Re: lug-bg: Little help about sed editor
- Subject: Re: lug-bg: Little help about sed editor
- From: v_valchev@xxxxxxxxxx (Valentin Pavlov)
- Date: Mon, 5 Jun 2000 15:19:56 +0300
fileserver:~$ cat ss
www.aa.com/support
fileserver:~$ sed -e "s/www.aa.com\/support/support.aa.com/" ss
support.aa.com
fileserver:~$
----- Original Message -----
From: "Nikolay Kabaivanov" <ntk@xxxxxxxxxx>
To: "Linux User Group - BG" <lug-bg@xxxxxxxxxxxxxxxxxx>
Sent: Monday, June 05, 2000 12:12 PM
Subject: lug-bg: Little help about sed editor
> 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
> -----------------------
> Ima il niakakuw nachin da se izbegne prenasochwaneto kum drug fajl, t.e.
> promenite da stawat naprawo w osnownia fajla.
> Blagodaria predwaritelno.
> --
> ----------------------------------
> Nikolay Kabaivanov, ntk@xxxxxxxxxx
> University of Rousse, Bulgaria
> ==================================================================
> 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
>
==================================================================
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
|
|
|