Unix Scripting Question

Cupp Michael E Contr AFRL/DIB Michael.Cupp at wpafb.af.mil
Tue May 4 16:08:18 UTC 2004


Outside of the quotes - 

-----Original Message-----
From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com] On Behalf Of Chris Purcell
Sent: Tuesday, May 04, 2004 11:58 AM
To: redhat-list at redhat.com
Cc: Michael.Cupp at wpafb.af.mil
Subject: RE: Unix Scripting Question

> Thanks Robert, but that says 2349 substitutions (# of lines in my file)
> - but I can <ESC> $ and end up 25 or so right spaces to the right of the
> closing quote -
>
>
>
> Breaking this down - it looks like % = entire file, s/ is search/replace
> \ $ means space before end of line //g means replace it with nothing and
> do it for every occurance of that line - seems logical to me - but
> doesn't seem to work.

I thought we were talking about trailing whitespace at the end of the
actual filenames, such as this...

touch "/root/some file with trailing whitespace     "

Is that your problem, or do you have trailing whitespace in your a.lst
file, such as...

"/etc/samba/smb.conf    "



Chris



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list





More information about the redhat-list mailing list