- ┌───| ~/testar/tmp/ftmp ](me@main)|[17:02][p:4656][bn:50][j:0]► [0] (master *)
- └─$ touch "one two.sh"
- ┌───| ~/testar/tmp/ftmp ](me@main)|[17:02][p:4656][bn:50][j:0]► [0] (master *%)
- └─$ l
- total 8,0K
- -rw-r--r-- 1 me me 0 Apr 8 17:02 one two.sh
- ┌───| ~/testar/tmp/ftmp ](me@main)|[17:02][p:4656][bn:50][j:0]► [0] (master *%)
- └─$ f () { find . -iname "*$1 $2*" ;}
- ┌───| ~/testar/tmp/ftmp ](me@main)|[17:03][p:4656][bn:50][j:0]► [0] (master *%)
- └─$ f one two
- ./one two.sh
- ┌───| ~/testar/tmp/ftmp ](me@main)|[17:03][p:4656][bn:50][j:0]► [0] (master *%)
- └─$ f () { find . -iname "*$@*" ;}
- ┌───| ~/testar/tmp/ftmp ](me@main)|[17:03][p:4656][bn:50][j:0]► [0] (master *%)
- └─$ f one two
- find: paths must precede expression: two*
- Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
- ┌───| ~/testar/tmp/ftmp ](me@main)|[17:09][p:4656][bn:50][j:0]► [1] (master *%)
- └─$ find . -iname "*one two*"
- ./one two.sh
find_wtf
Posted by Anonymous on Fri 8th Apr 2016 14:10
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.