![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Small question regarding SSH | Legend986 | UNIX for Dummies Questions & Answers | 2 | 12-17-2007 02:25 AM |
| A small minix question | sasa | Shell Programming and Scripting | 2 | 05-21-2007 02:20 PM |
| How to use awk substr ? | sabercats | Shell Programming and Scripting | 1 | 02-10-2006 04:01 PM |
| small question of echo | grep command | kfad | Shell Programming and Scripting | 5 | 05-02-2005 08:12 AM |
| small question | janr | Shell Programming and Scripting | 9 | 09-19-2002 11:50 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
small question regarding substr()
Hello..
I am doing some awk-ing and among all I use substr inside it.. I have: ....substr($0,60,37) meaning as U all know take from 37 char. from point 60.. can I put it like this substr($0,60,end of line) meaning take it from point 60 and take all characketrs in that line until line is over.. stupit q?? but is there good answer on it?? cheers, |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Skipping 3rd argument will give you the desired result, means you could try substr($0,37) it'll give you from position 37 till eol.
|
|
#3
|
|||
|
|||
|
that works fine...thanks a lot..
|
|||
| Google The UNIX and Linux Forums |