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
What does src="#" mean when used in a bgsound attribute and is it needed?
Run the first php script in background - When done - run the next script ...
threads in mfc
Help to decipher/reset BIOS settings on a Gigabyte MB!!!
Best way to find out what a user has access to on a file server
IPSEC access into ASA via second Internet connection
dateDiff - combining a date selection and a time selection
Airport Code with reverse geo coding with google maps api
Error installing sql express upgrade
Cannot access Windows 2008 DFS links from Windows 2003