LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to set bash (env. variable) file first before directory (https://www.linuxquestions.org/questions/programming-9/how-to-set-bash-env-variable-file-first-before-directory-4175724517/)

BudiKusasi 04-27-2023 09:30 AM

How to set bash (env. variable) file first before directory
 
How to set bash shell behavior to always behave retrieving file first before directory ?

michaelk 04-27-2023 10:01 AM

Can you elaborate on what you mean by file first before directory?

NevemTeve 04-27-2023 10:47 AM

Maybe you mean the result of `echo *` or `ls *`?

michaelk 04-27-2023 11:23 AM

I was assuming it was but just in case clarification might help. This might be close to what you desire and you could create an alias.
Code:

ls -r --group-directories-first  | tac

dugan 04-27-2023 12:15 PM

Are you asking about this?

https://unix.stackexchange.com/quest...ment-variables

dugan 04-27-2023 04:34 PM

I'm pretty sure BudiKusasi is a program that generates nonsense threads. Check its posting history; it almost never posts in the same thread twice.


All times are GMT -5. The time now is 06:50 AM.