Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want to insert quotations using awk or sed how to do? 2

Status
Not open for further replies.

CALYAN

Programmer
Apr 23, 2001
39
US
ABE, ABI, ABQ, ACT, ALB, AMA,
ANC, ARB, ATL, ATW, AUS, AVL, AVP, AYE, BBX,BDL, BFL,BHM,BIL,BIS,BLV,BMI,BNA, BOI, BOS,
BPT, BTR, BTV, BUF, BWI, BZN, CAE, CAK, CCR, CDW, CGX, CHA, CHS, CID, CLE, CLL, CLT, CXL, CMH, COS, CRP, CRW, CVG, CWA, CYS, DAY, DAB, DEN, DFW, DLH, DSM, DTT,DTX,EAT,ELP


Hi i am having the data file like this. I want to
insert qutotations like this The data file is very big

"ABE", "ABI", "ABQ", "ACT", "ALB", "AMA",
"ANC", "ARB", "ATL", "ATW", "AUS", "AVL", "AVP", "AYE",

The data file is very big

How to do it? with awk or sed
 
Try...

sed 's/\([^,][^,]*\)/"\1"/g' file1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top