What I want
Simplified command: echo "helloworld" | echo $1
- I know, this would be possible with
cat, but what if a command likeechodoes not take a file as input?
My actual command: ls -li init.vim | cut -d " " -f 1 | find / -inum $1
- I know it does not work with
$1like that, this is only an example and$1is only a placeholder.
Command Substitutionsubstitution: find / -inum $(ls -li init.vim | cut -d " " -f 1)
- This works fine, but I don't want it with command substitution.
Questions
- Does this work without any workarounds or command substitution?
- If it does not, what are the best ways to do this?
Thank you for your help :)