Ralf Wildenhues wrote:
> Tyler MacDonald writes:
> >     OK, so I might need something more portable than cpio... but the
> >"\s.*" part does serve a purpose; the MANIFEST file format allows for a
> >description of the file after whitespace. I guess I could do "[ \t]" or
> >something else instead of the \s.
> 
> Ah, I didn't think of that.  You cannot use \t either, but using a literal
> TAB inside the brackets works portably AFAIK. 

If you consider POSIX systems as being portable enough then using
the [:space:] character class should work pretty well.

  s,[[:space:]].*,,

Bob


Reply via email to