keskiviikko 13. helmikuuta 2013

I gotta find(1) a new hobby ...

[wat@were ~]$ find ./test -exec echo a*b;c {} ;
find: -exec: no terminating ";" or "+"
-bash: c: command not found
[wat@were ~]$ find ./test -exec "echo a*b;c {} ;"
find: -exec: no terminating ";" or "+"
[wat@were ~]$ find ./test -exec "echo a*b;c {}" ";"
find: echo a*b;c ./test: No such file or directory
find: echo a*b;c ./test/name with spaces: No such file or directory
find: echo a*b;c ./test/name with even more spaces: No such file or
directory
find: echo a*b;c ./test/just-a-name: No such file or directory
find: echo a*b;c ./test/another-name: No such file or directory
[wat@were ~]$ find ./test -exec "echo" "a*b;c {}" ";"
a*b;c ./test
a*b;c ./test/name with spaces
a*b;c ./test/name with even more spaces
a*b;c ./test/just-a-name
a*b;c ./test/another-name
[wat@were ~]$
... before I get addicted to shellgarbling and become a masochist ~:)

1 kommentti:

  1. -.- Microsoft Powershell is so much better than any of these Unix shellgarblers.

    VastaaPoista