1837390 Members
3428 Online
110116 Solutions
New Discussion

the output in not tidy

 
SOLVED
Go to solution
peterchu
Super Advisor

the output in not tidy

today when I use the command "ls" on the shell , the output is not tidy like below

#ls aa.txt
aa bb cc
11 22 33

but previously , it is normal.

#ls aa.txt
aa bb cc
11 22 33

could suggest what is the problem is my system ? thx

6 REPLIES 6
peterchu
Super Advisor

Re: the output in not tidy

in my previous post , i can't show the real output, my current output should be :

#ls aa.txt
aa
bb cc
11
22 33

the normal output should be

#ls aa.txt
aa bb cc
11 22 33
Muthukumar_5
Honored Contributor
Solution

Re: the output in not tidy

When you try to list file only and getting some more files there??

what are you getting for,
$file aa.txt
$file *

$what ls
what is your system informations ( $uname -a )

what are you getting for command $alias

$find . -name "aa.txt"

It will be good to do more analyse if you give ALL above.
Easy to suggest when don't know about the problem!
Michael Schulte zur Sur
Honored Contributor

Re: the output in not tidy

Hi,

you may want to look for unprintable characters in file names with ls -b

greetings,

Michael
Bharat Katkar
Honored Contributor

Re: the output in not tidy

Hi,
Could u check the "NewLine Character" in your file.
Open it in VI and at every line check end of line by typing $.
Regards,
You need to know a lot to actually know how little you know
Rick Garland
Honored Contributor

Re: the output in not tidy

Do 'ls -qa' to see if any unprintable characters
Rodney Hills
Honored Contributor

Re: the output in not tidy

Is aa.txt a directory?

If it is a file, the only output you should be getting from "ls aa.txt" is-
aa.txt

If aa.txt is a directory, then maybe the tab settings on your display are gunged. "ls" uses tab when displaying multiple filenames across.

HTH

-- Rod Hills
There be dragons...