4 ms·
> combine with bash alias ... or you know, you could put the jq script in an executable file and add a shebang like #!/usr/bin/jq -jf or #!/usr/bin/jq -
by jolmg 7y ago
> combine with bash alias
... or you know, you could put the jq script in an executable file and add a shebang like
#!/usr/bin/jq -jf
or
#!/usr/bin/jq -rf
In my opinion, aliases should mostly be used to add default options only. Not really to insert whole scripts into them.
- Splognosticus 7y agoI've always been of the mind that aliases should be "whatever the user finds convenient." I don't think I've ever seen code that depends on them.