Input file: ankit.txt with header date and trailer count
H2014-12-02
12ASDF23 FGHJ HJKL
123ASD23 FGHJ HJKL
123ASD23 FGHJ HJKL
123ASD23 FGHJ HJKL
T000004
<
Using
echo `command`
is not only wasteful, it will also perform whitespace splitting and glob expansion on the output from command
before passing it to echo
. Usually you simply want
command
or if you insist on doing a process substitution, and expect its output to be preserved, put it in double quotes:
echo "$(command)"
(Notice also the switch to the modern, recommended syntax for process substitution.)
But really, why would you want that? If you really do, would it not be better still to have
echo "$(echo "$(echo "$(echo "$(echo ...