LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2008, 01:06 PM   #1
deathalele
Member
 
Registered: May 2008
Location: deep dark north wales
Distribution: Zenwalk
Posts: 162

Rep: Reputation: 30
How can i get the ls command to output in the following format


I want the ls -l command to give me the following output

Quote:
drwxr-xr-x 7 iwan users 4096 2008-11-15 10:31 ~/home/me/directory/file.ext
With all colum lengths the same

Is it possible to this with this command or another similar one

Thanks in advance
 
Old 11-16-2008, 01:10 PM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by deathalele View Post
I want the ls -l command to give me the following output


With all colum lengths the same

Is it possible to this with this command or another similar one

Thanks in advance
And what is wrong with present 'ls -l' output ? The fact that you do not have the '~/home/me/directory' part ?

And what is the meaning of '~' that you propose ?

Last edited by Sergei Steshenko; 11-16-2008 at 01:12 PM.
 
Old 11-16-2008, 01:51 PM   #3
deathalele
Member
 
Registered: May 2008
Location: deep dark north wales
Distribution: Zenwalk
Posts: 162

Original Poster
Rep: Reputation: 30
When i do ls -l

The collums are often different lengths
and with the ~/ho... i started off wrtitng ~/ instead ~/home/. just a small typo
 
Old 11-16-2008, 02:07 PM   #4
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by deathalele View Post
When i do ls -l

The collums are often different lengths
and with the ~/ho... i started off wrtitng ~/ instead ~/home/. just a small typo
From 'man ls':

Quote:
-T, --tabsize=COLS
assume tab stops at each COLS instead of 8
- this might your column width problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to redirect the output of exec command output in perl? sudhap85 Linux - Newbie 3 08-28-2009 03:35 PM
Shell Script format question - output command results in quotes Barefootpanda Linux - General 5 10-13-2008 11:40 PM
How do I parse the output of a command that output to standard out? gauol Programming 9 01-17-2008 01:54 PM
last command output format bujecas Linux - General 1 10-12-2006 09:54 AM
how to format the output of a command and save it into a string variable gn00kie Programming 1 07-15-2006 03:04 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration