![]() |
|
|
|
|
|||||||
| 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 |
| need help extracting this part | finalight | Shell Programming and Scripting | 6 | 05-20-2008 03:03 AM |
| extracting from tar.bz2 | Raom | UNIX for Advanced & Expert Users | 1 | 03-07-2006 06:33 AM |
| Cutting the top two lines, and also charachters below. | jalge2 | UNIX for Dummies Questions & Answers | 5 | 08-02-2005 11:59 AM |
| extracting from a string | preetikate | Shell Programming and Scripting | 1 | 03-11-2004 04:08 AM |
| max charachters for usernames | m.szylkarski | UNIX for Dummies Questions & Answers | 1 | 02-01-2002 07:50 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
extracting single charachters
Hello!
brand new to unix (let alone scripting) I have come hit a step I can't seem to get around. in a text file I have information such as :- INFORM_USERS_IB COMPLETED llprod 20011003:100608 What I need to do is extract the 55th and 56t charachter, then insert a : then extract the 57th and 58th.. to give me an end result of:- 10:06 problem is how do I count of extract these charachters as they change frequently but *should* stay in the correct position?? (also does tab count as a single char?) Or is there an easier way to reformat a date and time string? Cheers, James |
| Forum Sponsor | ||
|
|
|
|||
|
there are approximately 20 similar lines for each title
"INFORM_USERS_IB " and the times will update. is it possible to format each line sequentially using the second line of code, that way bypassing the need to define changing lines? thanks . . . |