How to cut/hide the first 4 columns of a "ls -l" output?
How can I cut/hide the first 4 columns of an "ls -l" output?
Ok, owner and group can be hidden by -g and -G but the others? Maybe as additional questions: How to hide the 5th (=file size) column as well? The solution should work WITHOUT awk (if possible). Peter |
What is your actual question? ie. what data do you want and what do you want to do with it?
|
grail's asking because 0) 'ls' output isn't stable (8th field will either be year or time), 1) it's not advisable to use 'ls' output anyway and 2) 'stat -c' and 'find -printf' provide more fine-grained control over what output should contain.
|
Quote:
ad 1) This was not the question ad 2) This sounds good. Will try it. As fas as I can see yet it is NOT possible with printf to print out just 2 digits for the "Seconds" part without the fraction part. Or do you know one? Thank you Peter |
And yet still have not explained what it is you are trying to get / do?
|
Quote:
Quote:
|
All times are GMT -5. The time now is 04:50 PM. |