![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Linux Shell Question: how to print the shell script name ? | meili100 | UNIX for Dummies Questions & Answers | 3 | 07-01-2008 02:55 PM |
| #!/bin/sh shell question | GCTEII | Shell Programming and Scripting | 0 | 02-23-2006 03:08 AM |
| AWK question in the KORN shell | penfold | Shell Programming and Scripting | 11 | 02-09-2005 09:14 AM |
| Question about Korn Shell | Latha Nair | Shell Programming and Scripting | 13 | 11-05-2003 07:30 AM |
| Shell question | anjanb2 | UNIX for Dummies Questions & Answers | 5 | 07-03-2002 01:00 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
shell question
Can someone please explain the PS1="${x##*/}\$ " ??
how does that lop off leading components? I don't understand it.. thanks cd ( ) { command cd "$@" Actually change directory x=$(pwd) Get current directory name into variable x PS1="${x##*/}\$ " Lop off leading components, assign to PS1 } |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|