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
MacBook Stuck on Shut-Down
Fully Automatic dental milling machines
Error: "The site <sitename> could not be found in the Web application SPWebApplication Name=MOSS Parent=SPWebService"
Windows XP computer keeps locking up
Configure TFS 2010 with Sharepoint 2010
Public Desktop Icons not showing in RDP sessions
Convert C#? to VB / vb.script
Windows firewall will not start
NAT setting and vmware
Video Conference w/ webcam