![]() |
|
|
|
|
|||||||
| 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 |
| sed string manipulation | speedieB | Shell Programming and Scripting | 4 | 1 Week Ago 05:27 PM |
| string manipulation | james6 | UNIX for Dummies Questions & Answers | 5 | 06-03-2008 07:05 AM |
| string manipulation | Cactus Jack | Shell Programming and Scripting | 9 | 02-14-2008 10:14 AM |
| shell program to reverse the string | saikiran | Filesystems, Disks and Memory | 1 | 08-29-2006 04:57 AM |
| string in reverse | malaymaru | Shell Programming and Scripting | 4 | 10-18-2005 08:32 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
reverse string manipulation
How to get the reverse parsing work.
I have a strings like aqw-wef-324-err.log wefd-324r-err.log efrt-4rfr.log . . i want to have string upto last hypen. aqw-wef-324 wefd-324r efrt |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
$ string=wefd-324r-err.log
$ string2=${string%-*} $ echo $string2 wefd-324r |
||||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|