Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • I tred for example to sort with GNU tools by name, this is the input : -VirtualBox:~$ LC_ALL=C find . -regextype posix-extended -name '.?*' -prune -o \ > -regex '.*/test[0-9]+' -type f -print0 | > sort -z | > xargs -r0 grep -le hello -- But I get no output. What went wrong? Commented Nov 3, 2021 at 8:57
  • Also the first command you mentioned gives the output : bash: .: filename argument required .: usage: . filename [arguments] bash: -/dev/fd/62: No such file or directory bash: .: filename argument required And when I try to write the lines you say to write if an arguments error comes up, the output is "autoload: command not found" Commented Nov 3, 2021 at 8:58
  • @DirichletIsaPartyPooper as the answer says: you need to use zsh, not bash. Commented Nov 3, 2021 at 10:24
  • @DirichletIsaPartyPooper, do you have a file that is named like test<digits> and contains hello in or below the current working directory? Commented Nov 3, 2021 at 10:39
  • @StéphaneChazelas both in and below Commented Nov 3, 2021 at 10:41