Search Results

Search: Posts Made By: bstamper
7,299
Posted By bstamper
This places extra record separators where there...
This places extra record separators where there should be only field separators.

I'm going with my workaround solution, placing each column to be processed at the end of the list.

Thanks,
...
7,299
Posted By bstamper
I get the same error with both: $ echo "a"|...
I get the same error with both:

$ echo "a"| awk { print $0 | "cat 1>&2" }
-bash: cat 1>&2: command not found
awk: cmd. line:1: {
awk: cmd. line:1: ^ unexpected newline or end of string
$ echo...
7,299
Posted By bstamper
Sample input: 50`Byrd Polar Research...
Sample input:
50`Byrd Polar Research Center``<p>Named in honor of one of America's most famous explorers, the Byrd Polar Research Center of The Ohio State University is recognized internationally as...
7,299
Posted By bstamper
It is a little odd, but I said "CSV-like" - I...
It is a little odd, but I said "CSV-like" - I know that I am using "`" for a FS and "|" for a RS, but this is not the source of my problem.
7,299
Posted By bstamper
Thank you for the reply. I tried this awk...
Thank you for the reply.

I tried this
awk 'BEGIN{FS="`";RS="|";OFS="`";ORS="|"}{print $1,$2,$3,$4"|tidy -config tidy.cfg",$5"|tidy -config tidy.cfg",$6,$7}' infile.csv > outfile.csv

and this...
7,299
Posted By bstamper
awk modify multiple columns with pipes
Hello,

I have a CSV-like dataset where some of the columns contain HTML snippets which I need to convert to XHTML. For any given snippet, I have a functioning config for the text processor 'tidy'...
Showing results 1 to 6 of 6

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