| |
You are here: Experts > Computing/Technology > Focus on Unix > Unix/Linux OS > echo command
Expert: Suchitra Joshi - 10/26/2009
Question Hi! If i want to output information about a file in this format:
-rw------- 1 lczegel users 270 Jan 28 2007 f2.c
how do i do it using echo. i did echo $file and it gives me but in this format:
-rw-------
1
lczegel
users
270
Jan
28
2007
f2.c
so how do i get to give me like the first format?
Thank You
Answer Hi Ryan,
I am not sure what is stored in $file. But you can try one of the following and check whether it works
1) echo "$file"
or
2) echo -n $file
Since I do not have Unix setup, I cannot try from my end. If this doesn't work, give me all the details about what is exactly required to be done.
Hope this helps.
Regards
Suchitra
Add to this Answer Ask a Question
|
|