Re: Compiling apache from a script file.

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

 



On 17:29 07 Nov 2003, Stuart Stephen <stuart.stephen@xxxxxxxxxxx> wrote:
| Fixed it, it was a stupid space after one of the '\' characters.
| 
| You would have thought that they'd be able to strip whitespaces off the end
| of lines in this day and age.
| 
| *sigh*

That's a job for you or your editor.
What if I wanted to grep out all lines with no spaces?

	grep -v \ 

Yes, there's a trailing space there. I'm using "\ " instead of "' '".
Perfectly legitimate. And yeah I really do that sometimes:-)

BTW, I have this keymap to hand in vi, via my .exrc:

	map ,w :%!cleanwhite
^

which pipes the file through cleanwhite:

	http://www.cskk.ezoshosting.com/cs/scripts/cleanwhite

That ^M is a literal control-m. The second ^ is just a circumflex.

That's mostly for cleaning up cut/paste from curses displays (vi, mutt
etc) and does a detab you may not want (the sed is what you could have
used). But it's handy.

Cheers,
--
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

My computer always does exactly what I tell it to do but sometimes I have
trouble finding out what it was that I told it to do.
        - Dick Wexelblat <rlw@xxxxxxx>


-- 
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