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
VPN problems: SonicWall TZ 180 to TZ 210
Accessing GPT drive on windows 7 from Windows XP
UC540 newbie here cannot get UC540 to answer
Internet problems after Domain Controller Upgrade 2008 Server R2 x64
Training Path
Create a list of users in Active Directory whose account has been locked out for 90 days
Iseries OSV5R4 PM eserver iSeries telephone number
How to access a Watchguard Firebox X750e Core
Group policy updates causes screen to flicker
Update Java - no admin privleges