Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 05-06-2009, 05:11 AM   #1
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, 05:37 AM   #2
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, 07:53 AM   #3
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'


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 04:36 AM
cut command - how to find separator? tikit Linux - Newbie 7 09-25-2008 12:28 PM
Bash command separator/arguments separator reverse Programming 11 12-02-2007 10:21 PM
Vi command: howto insert '\n' at column 80? jhwilliams Linux - Software 5 08-15-2007 03:07 PM
sql command to copy column from a table tooparam Programming 1 06-19-2007 06:21 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:11 PM.

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