![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
|
|||||
|
It is called "Parameter Expansion". Maybe this helps you
Shell Parameter Expansion |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|