Is it possible to name a part of a command to reuse it in the same command later on?
If I want to move a file called longfile from /longpath/ to /longpath/morepath/ can I do something like
If I want to move a file called longfile from /longpath/ to /longpath/morepath/ can I do something like
I know that to capture a pipeline’s contents at an intermediate stage of processing, we use tee as ls /bin /usr/bin | sort | uniq | tee abc.txt | grep out , but what if i don’t want to redirect the contents after uniq to abc.txt but to screen(through stdout, ofcourse) so that as an end result , i’ll have on screen, the intermediate contents after uniq as well as the contents after grep.
In response to a comment of mine to this question on SF the OP asserts that the
I use :
Is there a command like
I want to try simple script
I have a custom PS1 colour where I have the actual shell commands in a distinct colour, just so I can quickly see what commands I typed and separate it from the command output itself.
Can I use read to capture the n 12 or newline character?