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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Monitoring SCP for completion thumper UNIX for Dummies Questions & Answers 2 03-29-2008 03:38 AM
Tab completion in csh James McMurray Shell Programming and Scripting 3 12-12-2007 10:31 AM
line completion in vim lakshmananindia UNIX for Advanced & Expert Users 2 09-06-2007 07:35 AM
Job Completion Information? davidfrank UNIX for Dummies Questions & Answers 3 08-02-2007 06:08 PM
Tab completion gubbins GNUless UNIX for Dummies Questions & Answers 2 08-15-2006 12:40 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-24-2009
dagigg dagigg is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 14
hp unix doesn't have tab completion

hi guys,
i am new to HP unix , i am doing Solaris , i am just asking is there any thing like "bash" in hp unix including tab completion?
  #2 (permalink)  
Old 08-24-2009
Leppie's Avatar
Leppie Leppie is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 71
HPUX should have the posix shell with double esc working like tab in the bash shell.
but if you want to use bash, you could put it in your PATH so that it's available after login by giving the command 'bash'.
  #3 (permalink)  
Old 08-25-2009
dagigg dagigg is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 14
but the PATH contain the directories for you command, and i searched in my box i couldn't find any package or file with bash, do i need to download any files ?
  #4 (permalink)  
Old 08-25-2009
dennysv dennysv is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 23
Check if you have bash installed on server, if yes either set your default shell to bash or add bash command in .profile file in your home directory.
Another option is to use ksh shell with vi. This is not as easy as bash but vi commands can be used to complere,search previous commands, etc.
in your .profile or command prompt

Code:
ksh -o vi
ESC  |  will help complete the file names but will not do listing
Esc k   diskplay last command
/"command"  search ofr last execution of command, 'n' for next

You have to be familiar with vi commands, and vi commands can be used to modify commands in line.
  #5 (permalink)  
Old 08-25-2009
dagigg dagigg is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 14
how to check if bash installed? and how to install it ? from where ?

check:
# bash
ksh: bash: not found
  #6 (permalink)  
Old 08-25-2009
Leppie's Avatar
Leppie Leppie is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 71
how about:

Code:
which bash

  #7 (permalink)  
Old 08-25-2009
dagigg dagigg is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 14
# which bash
no bash in /opt/nokiaoss/platform/common/bin /opt/nokiaoss/irp/bin /opt/nokianms/bin /usr/sbin /usr/bin /usr/ccs/bin /usr/contrib/bin /opt/hparray/bin /opt/nettladm/bin /opt/upgrade/bin /opt/fcms/bin /opt/pd/bin /opt/resmon/bin /usr/bin/X11 /usr/contrib/bin/X11 /opt/graphics/common/bin /opt/perl/bin /opt/mx/bin /opt/hpnpl//bin /opt/perf/bin /opt/ignite/bin /opt/ldapux/bin /var/opt/netscape/servers/shared/bin /var/opt/netscape/servers/bin/slapd/server /var/opt/netscape/servers/bin /usr/sbin/diag/contrib /opt/ots/bin /opt/ots/lbin /usr/local/bin /opt/gnome/bin /opt/mozilla /sbin /usr/sbin /opt/oracle/product/9i/bin
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0