Sponsored Content
Top Forums Shell Programming and Scripting Batch file to remove double quotes from a file Post 302386005 by akashtcs on Monday 11th of January 2010 04:12:34 AM
Old 01-11-2010
No dont have perl in the system,
Also cant do it by transferring the file to unix and doing it...Smilie
There must be something simple in windows to read file line by line and replace a character.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Remove double quotes

A Triva question. What is the easy way to remove the double quotes in the file in the following format. "asdfa","fdgh","qwer" tr -d '\"' <filename >newfilename mv newfilename oldfilename This need to be handled in a script. Any better way to do this. Will sed be more effecient? One... (3 Replies)
Discussion started by: deepakwins
3 Replies

2. UNIX for Advanced & Expert Users

How to remove a character which is enclosed in Double quotes

I want to remove the comma which is present within the double quoted string. All other commas which is present outside double quotes should be present. Input : a,b,"cc,dd,ee",f,ii,"jj,kk",mmm output : a,b,"ccddee",f,ii,"jjkk",mmm (3 Replies)
Discussion started by: mohan_tuty
3 Replies

3. UNIX for Dummies Questions & Answers

Removing double quotes in a file

Hi All, I have a tab delimited file where each of the strings have double quotes. The problem is that I have records which are in the following format: "TEXAS" ""HOUSTON"" "123" "" "2625-39-39" ""MAINE"" "" "456" "I" "3737-39-82" I would have to output... (3 Replies)
Discussion started by: kingofprussia
3 Replies

4. Shell Programming and Scripting

File with double quotes

I have one file a.txt as below. a.txt "aaas","111111","ewwee32e","deee333", "aaas","111111","ewwee32e","deee333", "aaas","111111","ewwee32e","deee333", "aaas","111111","ewwee32e","deee333", I want to write a script to process a.txt and want the output as below in different file as below -... (2 Replies)
Discussion started by: ravigupta2u
2 Replies

5. Shell Programming and Scripting

How to remove extra double quotes from string in a delimited file??

Hi Unix Gurus.. I am new to Unix. Please help me. The file I am getting is as follows: Input File "2011-07-06 03:53:23","0","I","NOT SET ",,,,"123985","SAW CUT CONCRETE SLAB 20"THICK",,"98.57","","EACH","N" "2011-07-06 03:53:23","0","I","NOT SET ",,,,"204312","ARMAFLEX-1 3/8 X... (2 Replies)
Discussion started by: BICC
2 Replies

6. Shell Programming and Scripting

Trying to remove double quotes

Hi, I am little new to forum and new on unix side. I have a small issue below: I am reading a file that has 5 columns something like below. col1,col2,col3,col4,col5 Some records are having double quoted values something like below: "value1","value2","value3","value4","value5" I need... (8 Replies)
Discussion started by: Saanvi1
8 Replies

7. Shell Programming and Scripting

Shell script that should remove unnecessary commas between double quotes in CSV file

i have data as below 123,"paul phiri",paul@yahoo.com,"po.box 23, BT","Eco Bank,Blantyre,Malawi" i need an output to be 123,"paul phiri",paul@yahoo.com,"po.box 23 BT","Eco Bank Blantyre Malawi" (5 Replies)
Discussion started by: mathias23
5 Replies

8. Shell Programming and Scripting

Replace Double quotes within double quotes in a column with space while loading a CSV file

Hi All, I'm unable to load the data using sql loader where there are double quotes within the double quotes As these are optionally enclosed by double quotes. Sample Data : "221100",138.00,"D","0019/1477","44012075","49938","49938/15043000","Television - 22" Refurbished - Airwave","Supply... (6 Replies)
Discussion started by: mlavanya
6 Replies

9. Shell Programming and Scripting

Remove pipe(|) symbol ina file, except the ones which are enclosed in double quotes

I have file with are delimited by pipe(|) symbol, I wanted those to be removed except the ones which are enclosed in double quotes. If your quote file is: |Life is |Beautiful"|"Indeed life |is beautiful too|"|"But unix is fun| is not"|" It should return: Life is Beautiful"|"Indeed life is... (1 Reply)
Discussion started by: Sathyapts
1 Replies

10. Shell Programming and Scripting

awk -File contain double quotes

Hi ALL, file data like : test.csv a,b,"c,d" my awk version is 4.0.2 ,if i am using the below code is working fine. awk -vFPAT='(*)|("+")' -vOFS="," '{print $3}' test.csv if the awk version is 3.1.7 is not working . Could you please help me on this one. output should be : "c,d" (6 Replies)
Discussion started by: bmk123
6 Replies
NKF(3)							User Contributed Perl Documentation						    NKF(3)

NAME
NKF - Perl extension for Network Kanji Filter SYNOPSIS
use NKF; $output = nkf("-s",$input); DESCRIPTION
This is a Perl Extension version of nkf (Netowrk Kanji Filter ) 1.7. It converts the last argument and return converted result. Conversion details are specified by flags before the last argument. Flags: "b,u Output is bufferred (DEFAULT),Output is unbufferred" "j,s,e Outout code is JIS 7 bit (DEFAULT), Shift JIS, AT&T JIS (EUC)" "J,S,E Input assumption is JIS 7 bit , Shift JIS, AT&T JIS (EUC)" "t no conversion" "i_ Output sequence to designate JIS-kanji (DEFAULT B)" "o_ Output sequence to designate ASCII (DEFAULT B)" "r {de/en}crypt ROT13/47" "m[BQ] MIME decode [B:base64 stream,Q:quoted stream]" "l ISO8859-1 (Latin-1) support" "f Folding: "-f60" or "-f"" "Z[0-2] Convert X0208 alphabet to ASCII 1: Kankaku to space,2: 2 spaces" "X,x Assume X0201 kana in MS-Kanji, "-x" preserves X0201" "B[0-2] Broken input 0: missing ESC,1: any X on ESC-[($]-X,2: ASCII on NL" "d,c Delete in line feed, Add in line feed" "m0 No MIME decode." "M MIME encode. Header style. All ASCII code and control characters are intact." "MB MIME encode. Base64 stream. Kanji conversion is performed before encoding, so this cannot be used as a picture encoder." "l Input and output code is ISO8859-1 (Latin-1) and ISO-2022-JP." "L[wmu] new line mode" " -Lu unix (LF) " " -Lw windows (CRLF) " " -Lm mac (CR) " " --fj,--unix,--mac,--msdos, --windows convert for these system" " --jis,--euc,--sjis,--mime,--base64 convert for named code" " --jis-input,--euc-input,--sjis-input,--mime-input,--base64-input assume input system" " -- ignore rest of -option" " --help" " --version" AUTHOR
Network Kanji Filter Version 1.9 (2/0002/Shinji Kono) Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa),1998 S. Kono, COW SEE ALSO
perl(1). nkf(1) perl v5.12.1 2005-04-09 NKF(3)
All times are GMT -4. The time now is 05:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy