Issue
echo 20220506 | cut -c5-6
gives the output as
05
I want add a '/' at the end of the output(05/). Can someone kindly help?
Solution
Instead of using a pipe |
character, you could use backticks to evaluate your command inside another command.
echo `echo 20220506 | cut -c5-6`/
> 05/
Answered By - Chris Heithoff Answer Checked By - Mary Flores (WPSolving Volunteer)