nuzvid_mamidikaya Posted November 10, 2017 Report Posted November 10, 2017 requirement enti ante oka file lo 3 columns unnai delimited by ;. I have to replace them with | . problem enti ante data lo kuda ; undi example : a;"b;c;d";e ani data undi naku after a and before e unna semicolon needs to be replaced with pipe. quotes lo unna data lo ; replace kakudadhu. any suggestions? Quote
nuzvid_mamidikaya Posted November 10, 2017 Author Report Posted November 10, 2017 Just now, Idassamed said: Sed try chesava ? yep sed lo ee filter ela evvalo ardam kavatla Quote
Sreeven Posted November 10, 2017 Report Posted November 10, 2017 2 minutes ago, nuzvid_mamidikaya said: requirement enti ante oka file lo 3 columns unnai delimited by ;. I have to replace them with | . problem enti ante data lo kuda ; undi example : a;"b;c;d";e ani data undi naku after a and before e unna semicolon needs to be replaced with pipe. quotes lo unna data lo ; replace kakudadhu. any suggestions? Sed command vadi cheyavachu but i never tried your requirement. I had a different req Quote
nken9354 Posted November 10, 2017 Report Posted November 10, 2017 sed 's/\,/\t/g' file >outfile try like this Quote
Suhaas Posted November 10, 2017 Report Posted November 10, 2017 Replace comma with semi-colon in the below link https://www.unix.com/shell-programming-and-scripting/216195-sed-replace-comma-pipe-but-ignore-qoutes.html 1 Quote
nuzvid_mamidikaya Posted November 10, 2017 Author Report Posted November 10, 2017 1 hour ago, Suhaas said: Replace comma with semi-colon in the below link https://www.unix.com/shell-programming-and-scripting/216195-sed-replace-comma-pipe-but-ignore-qoutes.html excellent excellent I say Quote
nuzvid_mamidikaya Posted November 10, 2017 Author Report Posted November 10, 2017 1 hour ago, Suhaas said: Replace comma with semi-colon in the below link https://www.unix.com/shell-programming-and-scripting/216195-sed-replace-comma-pipe-but-ignore-qoutes.html ninna ye oka post vesa em use DB valla ani malli prove ayyindi db is very helpful ani Quote
Bhai Posted November 10, 2017 Report Posted November 10, 2017 1 hour ago, Idassamed said: Sed try chesava ? k Quote
Idassamed Posted November 10, 2017 Report Posted November 10, 2017 Just now, Bhai said: k Kkkkk Quote
Bhai Posted November 10, 2017 Report Posted November 10, 2017 1 minute ago, Idassamed said: Kkkkk lite Quote
Idassamed Posted November 10, 2017 Report Posted November 10, 2017 10 minutes ago, Bhai said: lite Cool Quote
Bhai Posted November 10, 2017 Report Posted November 10, 2017 10 minutes ago, Idassamed said: Cool Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.