linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jose Celestino <japc@co.sapo.pt>
To: "Mário Gamito" <gamito@gmail.com>
Cc: linux-admin@vger.kernel.org
Subject: Re: Help on cleaning strings
Date: Wed, 22 Aug 2007 20:18:21 +0100	[thread overview]
Message-ID: <20070822191820.GA3081@co.sapo.pt> (raw)
In-Reply-To: <46CC898C.9030600@gmail.com>

Words by Mário Gamito [Wed, Aug 22, 2007 at 08:07:56PM +0100]:
>  Hi,
> 
>  Sorry for the newbie question, but I've searche over the web and couldn' find an answer to what I need.
> 

Not nearly hard enough.

>  I need to clean all the ocorrences of the "##Z/" string (without the quotes), from a series of .html files located in a single directory.
> 
>  Can someone help me, please ?
> 

Yes.

cd dir
for i in *.html;do vi +%s,##Z/,,g +x $i; done

-- 
Jose Celestino
----------------------------------------------------------------
http://www.msversus.org/     ; http://techp.org/petition/show/1
http://www.vinc17.org/noswpat.en.html
----------------------------------------------------------------
"And on the trillionth day, Man created Gods." -- Thomas D. Pate
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2007-08-22 19:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-22 19:07 Help on cleaning strings Mário Gamito
2007-08-22 19:18 ` Jose Celestino [this message]
2007-08-23  8:05   ` terry white
2007-08-22 19:42 ` Anup Purushu
2007-08-22 19:51 ` Jose Celestino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070822191820.GA3081@co.sapo.pt \
    --to=japc@co.sapo.pt \
    --cc=gamito@gmail.com \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).