LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-06-2009, 04:11 AM   #1
grahamtysall
LQ Newbie
 
Registered: Jul 2007
Location: Cornwall, UK
Distribution: openSUSE 10.2
Posts: 4

Rep: Reputation: 0
Angry Changing the Column separator for ls command in Suse11.0


Stupid question but, how can I change the column separator for the Suse 11.0 ls command for space(s) to tab?

This driving me mad and up to now I am stumped!
 
Old 05-06-2009, 04:37 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
something like this ?
ls -l | tr -s ' ' '\t'
but not possible directly from ls
may be you can write an alias to ls as this ?
 
Old 05-08-2009, 06:53 AM   #3
grahamtysall
LQ Newbie
 
Registered: Jul 2007
Location: Cornwall, UK
Distribution: openSUSE 10.2
Posts: 4

Original Poster
Rep: Reputation: 0
Smile Solution using sed

Hi all,
I managed to produce a solution using sed that solved my problem:

ls -l $* | sed 's/ +/\t/g'
 
  


Reply

Tags
command, ls, suse


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nautilus: changing the appearance of the 'date modified' column? apeekaboo Linux - Software 1 09-23-2011 03:36 AM
cut command - how to find separator? tikit Linux - Newbie 7 09-25-2008 11:28 AM
Bash command separator/arguments separator reverse Programming 11 12-02-2007 09:21 PM
Vi command: howto insert '\n' at column 80? jhwilliams Linux - Software 5 08-15-2007 02:07 PM
sql command to copy column from a table tooparam Programming 1 06-19-2007 05:21 AM


All times are GMT -5. The time now is 05:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration