The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Please explain this appsdba.nitin UNIX for Dummies Questions & Answers 2 09-24-2008 11:54 AM
can anyone explain this? honeym210 AIX 2 08-07-2008 12:46 PM
explain plz avikal Shell Programming and Scripting 2 04-03-2008 11:11 AM
Explain awk hitmansilentass Shell Programming and Scripting 4 09-27-2006 02:14 PM
counter / increment problem within echo stmt blaze UNIX for Dummies Questions & Answers 2 02-08-2001 11:59 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-09-2009
srilaxmi srilaxmi is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 21
Please explain the stmt

hi,

Please explain the below stmt.

P=1234
var1=:/a/b/c/file.dat

printf "%s %s\n" "$" "${var1#?}"


Output is:
1234 /a/b/c/file.dat

What is #? in printf stmt? by using that the first character( : ) of "var1" variable is not displayed in output. How is that? please explain..


Thanks,
Sri
  #2 (permalink)  
Old 03-09-2009
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,257
It is called "Parameter Expansion". Maybe this helps you
Shell Parameter Expansion
Sponsored Links
Closed Thread

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 10:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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