linux - Bash separation of line with newlines instead of spaces -
I have made two of the following commands:
In the past, I listed the contents of the directory and It was stored in it variable The second shows the contents of a variable
I have now decided That I want to separate listings, not with spaces, but with Newline, I do the following:
Why do I get a mess?
It is worth noting that when I changed the command, I did the work:
Can anyone please explain, why 0x20 or 32 (I also tried this number) in this case Bash is not treated as space ?
tr
simply does not recognize hex but octal will work: < / P>
tr '\ 040' '\ n'
and an easy way to show your files
shop-to Nologlob ## Optional Printf '% s \ n' * *
Comments
Post a Comment