![]() |
|
|
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 |
| doubt in /etc/inittab script | esham | Shell Programming and Scripting | 3 | 04-17-2009 01:38 PM |
| colors in BASH, doubt with script | jaduks | Shell Programming and Scripting | 4 | 11-19-2007 05:21 AM |
| Shell scripting basic doubt | sendhilmani123 | Shell Programming and Scripting | 3 | 08-04-2006 07:07 AM |
| shell / awk doubt | krishna | UNIX for Advanced & Expert Users | 7 | 01-25-2002 01:09 PM |
| Unix + oracle doubt....involving shell script | mexx_freedom | UNIX for Dummies Questions & Answers | 2 | 08-02-2001 10:48 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
shell script doubt
Hi,
While reading a shell script ,i have come accross the following statements. script_name_full=$0 ***script_name=${script_name_full##*\} ***script_name_noexst=${script_name%%\.ksh} host_name=`hostname` ***host_name_short=${host_name%%\.*} can anybody tell me what is the purpose of marked statements(2,3,5). cheers RRK |
|
||||
|
No,The are not comments .I put them foe identification.
Here is the actual script. script_name_full=$0 script_name=${script_name_full##*\} script_name_noexst=${script_name%%\.ksh} host_name=`hostname` host_name_short=${host_name%%\.*} cheers RRK |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|