Search Results

Search: Posts Made By: Sathyapts
3,874
Posted By Scrutinizer
Try: awk '{for(i=1; i<=NF; i+=2)...
Try:
awk '{for(i=1; i<=NF; i+=2) gsub(/\|/,x,$i)}1' FS=\" OFS=\" file

or

awk 'NR%2{gsub(/\|/,x)}1' RS=\" ORS=\" file
1,436
Posted By Don Cragun
This is a duplicate of the thread: Remove pipe(|)...
This is a duplicate of the thread: Remove pipe(|) symbol in except the ones which are enclosed in double quotes...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy