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
CRC Code namrata5 High Level Programming 3 10-08-2007 11:01 AM
how i prepare a c++ code(c code) for implementing my own protocol format amitpansuria High Level Programming 1 09-07-2007 12:09 AM
SSH key code versus server key code Texan Security 1 04-12-2006 12:57 PM
Return code from PL/SQL Code Shaz UNIX for Advanced & Expert Users 7 06-03-2003 11:56 AM
code help bb00y High Level Programming 3 10-12-2002 09:45 AM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-12-2008
stonemonolith stonemonolith is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 19
code fragment

Hi

I'm looking at some old unix code and, need some help figuring out some of the commands. Here is the line that I'm having trouble with:

echo "$(date) ${0##*/} started" >> $summary.log

I know the first statement prints out the date but, I don't understand the second command on the line ${0##*/} - what is this doing? I know $0 is the script name but, I don't know what the rest of the command should print out. I know this is very old code -- does anyone know what the command ${0##*/} is supposed to echo out?

tia
 

Bookmarks

Tags
unix commands

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:02 AM.


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