ITMan Documents

This Weblog Just Created For Document Sysadmin Challenges

backtick and $()

`cat /etc/passwd`
$(cat /etc/passwd)
###TIP###
#Do not using nested backtick and $()
#Using backtick inside `` and visaversa
$(docker logs `cat /etc/dockers.txt`)
###Example###
#!/bin/bash
echo "The start time is `date`"
sleep 5
echo "The end time is $(date)"
Last updated on 26 Oct 2020
Published on 23 Nov 2018