Skip to content
Advertisement

Tag: tabs

Creating Linux Alias to list only Directories

I’m wanting to create an alias called dir for KSH that will show only the sub-directories in a cluttered directory with many files and directories. I can output a single-column list of the directories, but I am having a problem converting the single-column list into a multi-column. I want it to automatically determine the number of columns to use based

how to auto complete files names on bash script?

I have a bash shell script that cd to directory according to a variable. After that I press Tab and files don’t appear like in terminal. Ex: on read code ups, the files don’t appear when I press tab. Answer The read command requires the -e flag in order to use the readline library to edit the command line (including

Advertisement