Skip to main content
mainly formatting
Source Link
phk
  • 6.1k
  • 7
  • 44
  • 76

Try this :

find . -type f -print0 | xargs -0 -r grep -Z -L -U '[^ -~]' | xargs -0 -r flip -u 

Where the argument of grep '[^ -~]'grep '[^ -~]' is '[^<tab><space>-~]''[^<tab><space>-~]'.

If you type it on a shell command line, type <ctrl+v>Ctrl+V before <tab>Tab. In an editor, there should be no problem.

  • '[^<tab><space>-~]''[^<tab><space>-~]' will match any character which is not asciiASCII text (carry reutrncarriage returns are ignore by grepgrep).
  • -L-L will print only the filename of files who does not match
  • -Z-Z will output filenames separated with a null character (for xargs -0xargs -0)

Try this :

find . -type f -print0 | xargs -0 -r grep -Z -L -U '[^ -~]' | xargs -0 -r flip -u 

Where the argument of grep '[^ -~]' is '[^<tab><space>-~]'.

If you type it on a shell command line, type <ctrl+v> before <tab>. In an editor, there should be no problem.

  • '[^<tab><space>-~]' will match any character which is not ascii text (carry reutrn are ignore by grep).
  • -L will print only the filename of files who does not match
  • -Z will output filenames separated with a null character (for xargs -0)

Try this :

find . -type f -print0 | xargs -0 -r grep -Z -L -U '[^ -~]' | xargs -0 -r flip -u 

Where the argument of grep '[^ -~]' is '[^<tab><space>-~]'.

If you type it on a shell command line, type Ctrl+V before Tab. In an editor, there should be no problem.

  • '[^<tab><space>-~]' will match any character which is not ASCII text (carriage returns are ignore by grep).
  • -L will print only the filename of files who does not match
  • -Z will output filenames separated with a null character (for xargs -0)
added 3 characters in body
Source Link
Vouze
  • 879
  • 5
  • 8

Try this :

find . -type f -print0 | xargs -0 -r grep -Z -L -U '[^ -~]' | xargs -0 -r flip -u 

Where the argument of grep '[^ -~]' is '[^<tab><space>-~]'.

If you type it on a shell command line, type <ctrl+v> before <tab>. In an editor, there should be no problem.

  • '[^<tab><space>-~]' will match any character which is not ascii text (carry reutrn are ignore by grep).
  • -L will print only the filename of files who does not match
  • -Z will output filenames separated with a null character (for xargs -0)

Try this :

find . -type f -print0 | xargs -0 -r grep -Z -L -U '[^ -~]' | xargs -0 -r flip -u 

Where the argument of grep '[^ -~]' is '[^<tab><space>-~]'.

If you type it on a shell command line, type <ctrl+v> before . In an editor, there should be no problem.

  • '[^<tab><space>-~]' will match any character which is not ascii text (carry reutrn are ignore by grep).
  • -L will print only the filename of files who does not match
  • -Z will output filenames separated with a null character (for xargs -0)

Try this :

find . -type f -print0 | xargs -0 -r grep -Z -L -U '[^ -~]' | xargs -0 -r flip -u 

Where the argument of grep '[^ -~]' is '[^<tab><space>-~]'.

If you type it on a shell command line, type <ctrl+v> before <tab>. In an editor, there should be no problem.

  • '[^<tab><space>-~]' will match any character which is not ascii text (carry reutrn are ignore by grep).
  • -L will print only the filename of files who does not match
  • -Z will output filenames separated with a null character (for xargs -0)
Source Link
Vouze
  • 879
  • 5
  • 8

Try this :

find . -type f -print0 | xargs -0 -r grep -Z -L -U '[^ -~]' | xargs -0 -r flip -u 

Where the argument of grep '[^ -~]' is '[^<tab><space>-~]'.

If you type it on a shell command line, type <ctrl+v> before . In an editor, there should be no problem.

  • '[^<tab><space>-~]' will match any character which is not ascii text (carry reutrn are ignore by grep).
  • -L will print only the filename of files who does not match
  • -Z will output filenames separated with a null character (for xargs -0)