> 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