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
pp0 IP configuration.
Setup multiple ethernet interfaces on Redhat to support Oracle RAC
Guide to install OS in newly Hard Drive
How do I allow only a certain ip adress to access my website?
Cross Domain Exchange Mailbox Access
Unable to deploy a clickonce application on some clients!
excel vba to save worksheet as mht file
.NET Trust Issue
How do I transfer an existing Clipper data base running in dos on a XP PC?
Cant move or purge mailbox