Friendly command script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Friendly command script
# 1  
Old 03-09-2006
Friendly command script

Hi,

I need a unix script to help my students using unix and will make it more friedly with them.

The script will do something like that, when a user writes a letter, then it will be apeared to the screen the available commands or files that fit to the spesific letter that the user gives.

For a example,

when you write the letter `m`, the result will apear to the screen is all the commands that start with letter m. make makdir,mv and etc. Or the files in the spesific folder that start with letter īmī.

If you have anything that will help with this tell me pls.

Thank you
# 2  
Old 03-09-2006
HP-UX has keysh. From the man page...
Quote:
NAME
keysh - context-sensitive softkey shell

SYNOPSIS
keysh

DESCRIPTION
keysh is an extension of the standard Korn-shell

keysh uses hierarchical softkey menus and context-sensitive help to aid users in building command-lines, combining the power of the Korn-shell with the ease-of-use of a menu system.

COMMAND ENTRY
keysh continually parses the command-line and always presents the user with an appropriate set of current choices on the softkey labels.

The user can select these softkeys to create readable softkey commands on the command-line. keysh automatically translates these softkey commands into equivalent HP-UX commands prior to executing them.

Alternatively, the user can ignore the softkeys altogether in favor of entering the traditional HP-UX commands directly, as when using the Korn-shell
# 3  
Old 03-10-2006
tcsh also has stuff like this. You need to do:
set autolist
for all of it to work. Let's say that "make" is the only command on my path that starts with "ma". I could type "ma" <tab> and I would see "make" on my screen. If I had "make" and "mail" as the only two commands that start with "ma", I could type "ma" ^D and I would see those two programs. This assumes that control-D is my EOF character. There is more info on the tcsh man page.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

Mobile Friendly Version of UNIX.COM

Hello, I have noticed some problems with Google complaining our site is not "https://search.google.com/www.usearch-console/mobile-friendly" using only Tapatalk. So, after a lot of work, I have re-enabled our legacy mobile style and make some improvements and Google has declared us "mobile... (2 Replies)
Discussion started by: Neo
2 Replies

2. Red Hat

Mulitpath user-friendly name is correct

We have device mapper multipath configured. multipath -ll is showing things correctly. But when ever we are executing lvm related command, say pvs, it is showing /dev/mpath/<wwid> number instead of expected /dev/mpath/mpathX as follows - /dev/mpath/360060e801603c800000103c800002b22 Here,... (0 Replies)
Discussion started by: atanubanerji
0 Replies

3. Filesystems, Disks and Memory

Help finding a Unix friendly RAID 1 backup

First time poster and a very new Unix user, so I'll just pre-apologize for stupid questions now. Does anybody know of a good RAID 1 hard drive backup that is Unix friendly? I want to avoid any hardcore programming. Can you recommend both NAS and non-NAS options? I need to do nightly backups... (31 Replies)
Discussion started by: c.wakeman
31 Replies

4. Programming

How to Write Linux Friendly Async Socket I/O

I am presently refactoring a windows deamon with an eye towards porting it to linux someday. Presently the application uses a single background thread and asynchronous socket I/O to implement FTP and HTTP clients in a single switch statement (2000 lines and 100 cases just for the switch... (3 Replies)
Discussion started by: siegfried
3 Replies

5. Shell Programming and Scripting

User friendly

Hello, As a newbie: I know that ls -l list files in a directory.Can i get a Bash script that prints the same information as ls -l but ib a user friendly way? Thank you. (3 Replies)
Discussion started by: debut
3 Replies

6. UNIX for Dummies Questions & Answers

Friendly hello

To all whom belong to the UNIX forums - I just came across your web-site from a google search, wanted to say that I am looking forward to posting with you all and trying to learn as much as I can about Unix. I currently run a small version of linux on an obsolete laptop, I have been using... (0 Replies)
Discussion started by: Cheesedinverts
0 Replies

7. UNIX for Dummies Questions & Answers

Most Neewbie friendly distribution

Hi! I guess the title says it all. I'm thinking about installing unix on a computer because that's the system they use in school so I'm just wondering which distribution I should download, which is most suitable for me. I have use a unix computer 3 times in school. I have had Windows for quite... (8 Replies)
Discussion started by: Rayben
8 Replies
Login or Register to Ask a Question