The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
The friendly interactive shell 1.23.0 (Default branch) iBot Software Releases - RSS News 0 01-13-2008 03:20 AM
Sun to make Solaris more friendly - PC Pro iBot UNIX and Linux RSS News 0 07-09-2007 06:20 PM
User friendly debut Shell Programming and Scripting 3 11-09-2005 03:13 PM
Friendly hello Cheesedinverts UNIX for Dummies Questions & Answers 0 08-08-2005 04:57 AM
Most Neewbie friendly distribution Rayben UNIX for Dummies Questions & Answers 8 09-06-2003 07:48 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-09-2006
Registered User
 

Join Date: Mar 2006
Posts: 4
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-09-2006
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,226
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
Reply With Quote
  #3 (permalink)  
Old 03-09-2006
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,356
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.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0