RE: Unix Scripting Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Outside of the quotes - 

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Chris Purcell
Sent: Tuesday, May 04, 2004 11:58 AM
To: redhat-list@xxxxxxxxxx
Cc: Michael.Cupp@xxxxxxxxxxxx
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@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux