On 5 February 2013 12:50, Kevin Brubeck Unhammer <[email protected]> wrote: > Per Tunedal <[email protected]> > writes: > >> Hi, >> Strange, I cannot get the script working. It has worked in the past. >> >> I get error messages on sed: >> >> fgrep "<e lm=" apertium-sv-da.da.dix | sed "s/.*n=\"// s/\".*//" | > > Either use a line break between the two s commands: > > sed "s/.*n=\"// > s/\".*//" > > or use two -e's if you want them on one line: > > sed -e "s/.*n=\"//" -e "s/\".*//"
Less typing with a semicolon: sed -e "s/.*n=\"//;s/\".*//" and using single quotes allows you to skip the escaping: sed -e 's/.*n="//;s/".*//' -- <Sefam> Are any of the mentors around? <jimregan> yes, they're the ones trolling you ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
