output command line linux code example Example: how to print output of a command linux Click to copyprintf "$dir1 $dir2 $(tail -n -1 pes.log) \n" >> ../opt_done.txt