![]() |
|
|
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. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Ok, but do you understand how the given code works? I should read some books or Google for some tutorials.
Anyway, to answer your question, some things to unravel: Code:
echo ${string:10}
Code:
echo $string | awk '{print substr($0,10)}'
Code:
echo $string | sed 's/\.*(.\{10\}\)/\1/'
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|