Re: [Flex-help] Please help me about linguistic typology
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Hugh S. <hg...@dm...> - 2013-06-16 19:53:12
|
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. Hugh |