Microsoft
Software
Hardware
Network
Question : need last three characters of the string
I need last three chaarcters of string . I have series of of file names
somefilename1.xyz112
somefilename2.abc121
...
I need to get last three characters(112 or 121 or 131 etc which are version numbers which I reuse later)
thanks in advance
Answer : need last three characters of the string
Sorry.. You misplaced the brackets and $ from my original comment.. If you do so, it won't work.
1: 2:
export version=`echo $file_name | sed 's/.*\(...\)$/\1/'` echo $version
Random Solutions
How to stablish a proper setup in MS Outlook 2003 encrypting mails
Roaming Profile
Gridview RowSelected - Controlling state of other rows
bulk collect - amount of return
SSIS reuse the object variable
How to update Hyperlinks in Excel 2003?
How to copy folders/files between computers and preserve modified date ?
jQuery or JS - Checkbox set/unset in an array?
Trend Micro Officescan 10.0 on Citrix XenApp Presentation Server 4.5 or 5.0
Logging computer off network