Skip to Content.
Sympa Menu

baslinux - Re: [BL] bash help; changing case of file names, hyperlinks

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: sindi keesan <keesan AT sdf.lonestar.org>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] bash help; changing case of file names, hyperlinks
  • Date: Sun, 25 Feb 2007 05:00:15 +0000 (UTC)

On Sun, 25 Feb 2007 3aoo-cvfd AT dea.spamcon.org wrote:

sindi keesan wrote:

I was told to use $USER as the replacement login in \
.procmailrc. It is already defined for each user.

$USER is automatically defined in BL3 too. So is $HOME.

Cheers,
Steven


It works.
ls /$USER lists the contents of /root
cd $HOME takes me to /root

But I can't get sed to actually substitute strings.


I made a testfile containing hello.



cat testfile | sed -eq "/hello/bye/" > testfile2
I get the same file copied, with hello not bye.

I tried with and without -e and " "


cat testfile | sed /hello/goodbye/ > testfile3
sed: Unsupported command o
I get an empty file.

cat testfile | sed /hello/gbye > testfile4
sed: Can't find label for jump to `ye'


Where did I go wrong?


Sindi




Archive powered by MHonArc 2.6.24.

Top of Page