Tuesday, April 26, 2016

Unix, use output of the previous command

Not a direct solution but it suits my need.
Use !! to expand the previous command and evaluate it with $() or ``
For example;

$ which pinata  
/usr/local/bin/pinata 
$ ls -lh `!!`
... 
Credit: http://stackoverflow.com/a/5955674/1032449 

No comments:

Clojure has lesser typing error problems than the others well-known dynamic typing languages

Give these snippets a try. // JS function foo () {   bar(1) } # Ruby def foo   bar(1) end ; Clojure (defn foo []    (bar 1)) As yo...