![]() |
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 |
| to separate values from a string | ssuresh1999 | UNIX for Dummies Questions & Answers | 3 | 10-07-2008 12:23 PM |
| How to delete a particular string from different locations ? | nani_ynm | Shell Programming and Scripting | 4 | 08-06-2008 02:49 AM |
| Catching ctrl-C or ctrl-D | sendhilmani123 | Shell Programming and Scripting | 2 | 05-02-2006 05:02 PM |
| Disable ctrl-c,ctrl-d,ctrl-d in ksh script | wtofu | AIX | 6 | 06-29-2005 04:41 PM |
| Using sed to delete a string? | HowardIsHigh | UNIX for Dummies Questions & Answers | 1 | 06-19-2003 09:19 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to delete ctrl key values in a given string?
Hi all,
My query is... in the runtime, you are getting any input string. Unfortunately, you have pressed some ctrl keys or esc keys or arrow keys while typing input string. You can get the input value like that... input string as welcome^[[DtoB [angalore[B[A[B[D[D[C[C[C So ,I want to remove those unwanted keys value...like that Welcome to Bangalore could you suggest me guys which unix commands I can use? Thanx Balan ![]() |
|
||||
|
Hi,
echo $input_string | sed 's/[^a-zA-Z]//g' if I use abu cmd... can get the following output only. Welcome Dto BangaloreBABDDCCC this removes only ^ [ ] that chars. i need exact string like Welcome to Bangalore I tried already that cmd....thats y i confused please clear my query yaar! |
![]() |
| Bookmarks |
| Tags |
| unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|