rated 0 times [ 7] [ 0] / answers: 1 / hits: 897 / 1 Year ago, wed, june 15, 2022, 5:11:37
I answered this question but realize that it could be better.
How can I convert:
$ which gjslint
$ cat /usr/local/bin/gjslint
Into something like this:
$ cat < which gjslint
-bash: which: No such file or directory
..so that the output path+filename from
which is passed onto
cat which then does it's thing (i.e. printing the contents of the filename to the screen).
More From » command-line