Re: [Flex-help] Please help me about linguistic typology
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Will E. <wes...@gm...> - 2013-06-16 20:38:06
|
On Sunday, 16 June 2013, 8:53 pm +0100, Hugh Sasse <hg...@dm...> wrote: > > On Sun, 16 Jun 2013, Daniel Janzon wrote: > > > _______________________________________ > > From: Hugh Sasse [hg...@dm...] > > > > >> sed -i 's/\(.*[^ \t]\)[ \t]*$/\1/'' your-file.lex # Remove whitespace at end of line > > > > > >It is the -e option to take an expression. See tutorials here: > > >http://www.dblab.ece.ntua.gr/~george/sed/ > > > > The -i option edits the file in-place, no stdout output. Hence the backup... The original > > poster mentioned ubuntu and -i works for gnu sed. In FreeBSD -i takes an argument, > > but works similarly. > > > Sorry for that, then. I'd missed that, and now I see where > Perl, et al, get -i from. Thank you. > Oddly, the -i option is newish in GNU sed. It's an instance of sed borrowing from perl. > Hugh > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Flex-help mailing list > Fle...@li... > https://lists.sourceforge.net/lists/listinfo/flex-help -- Will Estes (wl...@us...) Flex Project Maintainer http://flex.sourceforge.net/ |