![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading variable from file variable values | sagii | Shell Programming and Scripting | 5 | 06-27-2009 01:06 PM |
| calculate number of strings in a variable | felixmat1 | Shell Programming and Scripting | 9 | 01-02-2009 12:13 AM |
| How to check if two variable are empty strings at once? (bash) | ph0enix | Shell Programming and Scripting | 4 | 10-24-2008 02:18 PM |
| appending strings to variable | finalight | Shell Programming and Scripting | 1 | 05-20-2008 03:50 AM |
| Help deciphering script | bbbngowc | Shell Programming and Scripting | 3 | 01-16-2008 01:57 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Deciphering strings or variable values
Hi,
I have a script at the moment of which reads in simply what the latest version is within a folder i.e. v001, v002, v003 etc and then stores this latest version in a variable i.e. $LATEST would echo v003. I have then cut this string so that I only consider the 003 part. I would then like to increment this to 004 and then put the v back in front of it again i.e. v004. What is the easiest way of doing this? Cheers CF |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|