![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to delete a file with special characters | yveslagace | UNIX for Dummies Questions & Answers | 5 | 08-22-2007 08:42 AM |
| Special character in my file | Ryan2786 | UNIX for Dummies Questions & Answers | 3 | 07-05-2007 08:35 PM |
| delete a special character in file | srivsn | Shell Programming and Scripting | 1 | 03-15-2006 02:45 AM |
| Problem deleting file with special character | hart1165 | UNIX for Dummies Questions & Answers | 2 | 12-07-2005 07:29 AM |
| Mount a character special file | MuellerUrs | SUN Solaris | 1 | 07-15-2005 09:36 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
delete a special character in file
hi
i want to delete a particular character in file. example file name:abcsample abc=bbbqw3/ hidh=ajjqiwio4/ xyx=hakjp/ ........../ ......./ i want to delete that special character (/) in abcsample file.please give the required commands for my requirement. thank you |
| Forum Sponsor | ||
|
|
|
|||
|
You can open the file in VI and from the command mode type %s/\///g and enter. The special character will be replaced by null char.
The trick is to escape the special character (here done by typing a leading back slash before the special char). |
|||
| Google UNIX.COM |