This is the old SliTaz forum - Please use the main

grep invalid option -- 'x'
  • ms3811ms3811 November 2010
    I keep getting this error when running scripts. grep does not appear to have this option, so why is it being used? Is there a different version of grep available, and if so where would I get that. Alternatively, is there a different option that can replace 'x'? Sorry for the barrage of questions, been trying to google this without much luck. Thanks for your time.
  • erniaernia November 2010
    slitaz's grep is provided by busybox, which seems to lack the -x option and the ability to match only whole lines with the pattern you are searching for:
    try grep --help to see the options available in busybox's grep.
    so you could modify scripts or if the script really needs matching a whole line you could install the real grep, but i think that in 3.0 it's not provided by any package, so you should use a debian or arch package or build it yourself.
  • ms3811ms3811 November 2010
    I I'll try Debian. Thanks.
  • LineaLinea November 2010
    Hi ms3811

    GNU grep now in repos:

  • ms3811ms3811 November 2010
    Thanks Linea.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social