LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2008, 01:49 AM   #1
eelco
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
ascii sequence linux differrent to windows?


Hi,

New to Linux, I´ve tried to organize my files using _ or ` in the beginning of a directory-name. In windows using ¨___Private¨, this would result in this directory being sorted on top of all other directories.

In Lunux it will sort still op the P not on the _ (using Konqueror). If creating directories using only ` ~ _ - * or other symbols, they will rise to the top of a list of directories. But... when I use a a/z of 0/9 after these symbols in a name, sorting wil again change to 0/9 of a/z and the _ - ~ ` symbols seem to be ignored.

How can I change this?

I want to sort directories according to importance, using _____ or __

Thanks
Eelco
 
Old 11-26-2008, 10:52 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
This doesn't really have anything to do with ASCII vs. <any other encoding system>.

The responsible for ordering the information is the application that you use to see the file names. So depending on the program that you use to list them they might be ordered in a slightly different way. If you use, let's say "ls" to list your files, you should look into the ls man and/or info pages and search for the keyword "sort". However, I don't know if you will be able to find such fine grained degree of control on how ls will display your files. The same goes for any other program.

There're specific tools to sort stuff, for example, the "sort" command. You might be able to achieve a greater degree of control if you pipe the output of ls into sort,

Code:
ls | sort <whatever params you need>
I don't know of any easy and automatic way to do this globally.
 
Old 11-26-2008, 10:54 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
welcome to LQ!!

I think what you are seeing is a function of the particular tool. Ascii is ascii---it is an international standard and does vary between systems.

Which sorting tools are you using? (If konqueror, you could also try some other file managers like--eg--Thunar.
 
Old 11-26-2008, 10:55 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You can of course write a script with any sorting rules you want....
 
Old 11-27-2008, 05:33 AM   #5
eelco
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks everyone for the answers. I'll try to find a application that works for me.
 
  


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
Linux boot sequence greplinux Linux - Newbie 4 08-10-2008 11:44 PM
Windows recovery console broke my boot sequence rbees Linux - General 5 01-28-2008 12:02 PM
How can i change boot sequence to Windows 2000 manmohanmalhotr Linux - General 1 09-18-2005 01:02 PM
Windows Alt-ascii number functionality in linux mangolicious Linux - Software 7 06-16-2005 02:32 PM
Printing a linux ASCII file in windows ChimpFace9000 Linux - General 2 05-05-2002 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:14 AM.

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