var=$(find /etc/*)
tput smso
ls -l | echo $var >> log
i am losing at the formatting when i append it to the log
is another way of doing it
var=$(find /etc/*)
tput smso
ls -l | echo $var >> log
i am losing at the formatting when i append it to the log
is another way of doing it
You could try this:
find /etc/ >> log
If you do it your original way, you need to add quotes so all the files get assigned to the variable:
var="$(find /etc/)"
Also, I don't think there is anything to be achieved by piping anything into the echo command.