![]() |
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 |
| Need Help with Perl Scripting Issue. | manik112 | Shell Programming and Scripting | 23 | 12-13-2008 12:52 PM |
| Perl Script Issue - Please Help * Thanks!!! | jroberson | Shell Programming and Scripting | 8 | 11-03-2008 03:47 AM |
| perl issue .. | zedex | Shell Programming and Scripting | 3 | 09-13-2008 11:22 PM |
| issue with if loop in perl | amitrajvarma | Shell Programming and Scripting | 4 | 01-09-2008 12:02 AM |
| Perl problem (compiling issue) | 01000101 | Shell Programming and Scripting | 3 | 05-24-2006 10:15 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Hi,
I am amazed !!! It works. You people are really expert. Thanks. Using the above command, I was able to remove quotes within the field. But I can see that there are some newline/breakline characters within the field, which makes a single line breaks into multiple line. Is is possible to remove the these character as well? Once again Thanks You. |
|
||||
|
Thanks it is working.
But I am seeing that it is removing the blank field completely, so field values are not matching up with headers. This is happening in both the cases: (tr/"//d,$_) and (tr/"\n\r//d,$_ ) Previous: "INTERNAL","Elsey Marilyn R","","CH "," ENTERPRISE" After: "INTERNAL","Elsey Marilyn R","CH "," ENTERPRISE" Is there any way not to remove blank field completely? I really appreciate your efforts. |
|
||||
|
You are Genius !!! It is working. Thanks.
I hope this is the last question: What if I dont want to remove the quotes, but add another quotes to quotes, I mean escaping the quotes with quotes.. Something like this: Previous: "Internal","1234","HCM","John D","JOHN D","rocks" 12","seigo" Expected: "Internal","1234","HCM","John D","JOHN D","rocks"" 12","seigo" Note: Quotes can occur multiple times within a field. |
|
||||
|
I tried at first, but it is not working.
Even this is not working: tr/\n\r//d,s/"/""/g,1 |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| perl, perl shift, shift, shift perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|