![]() |
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 |
| Trouble cutting characters into a string. | Makaer | Shell Programming and Scripting | 0 | 07-31-2009 07:07 AM |
| Cutting last few characters of file name | anushree.a | Shell Programming and Scripting | 7 | 09-30-2008 08:05 AM |
| To get the characters from a variable | ithirak17 | UNIX for Dummies Questions & Answers | 6 | 03-06-2008 02:34 AM |
| CUT command - cutting characters from end of string | JWilliams | AIX | 2 | 01-28-2008 09:12 AM |
| awk substr and variable for next n characters? | smacleod | UNIX for Dummies Questions & Answers | 1 | 04-16-2002 02:05 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Cutting characters in a variable
I have a variable var which contains "ABCDEFDH"
Now I have to remove the first 4 characters that is "ABCD" so my variable should contain only "DEFH" plzz tell me how to do that . i am using bash shell |
|
||||
|
Homework ?..
anyway , something like this : Code:
echo "ABCDEFDH" | cut -c5-8 |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|