all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joe Corneli <jcorneli@math.utexas.edu>
Subject: Re: How do I get global-grep-and-replace to work?
Date: Sat, 27 Sep 2003 12:54:01 -0500	[thread overview]
Message-ID: <E1A3JGb-0006L7-00@linux183.ma.utexas.edu> (raw)

#!/bin/bash

# ;)

# Examples:    

# jed "I have some bad news." "So, how's the weather out there?" *.txt
# jed Cornelli Corneli that_letter.txt

REENTER=`echo "$@"|  sed -e "s/$1 $2 //"`

for FILE in $REENTER
do
  cat $FILE | sed -e "s/$1/$2/g" > p_jed.out
  mv p_jed.out $FILE
done;

             reply	other threads:[~2003-09-27 17:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-27 17:54 Joe Corneli [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-09-26 10:51 How do I get global-grep-and-replace to work? Cinnamon
2003-09-26 13:07 ` Klaus Berndl
2003-09-27  1:17   ` Cinnamon
2003-09-29  9:54 ` Jens Schmidt

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=E1A3JGb-0006L7-00@linux183.ma.utexas.edu \
    --to=jcorneli@math.utexas.edu \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.