|
lug-bg: Little help about sed editor
- Subject: lug-bg: Little help about sed editor
- From: ntk@xxxxxxxxxx (Nikolay Kabaivanov)
- Date: Mon, 05 Jun 2000 12:12:00 +0300
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
|
|
|