Search Results

Search: Posts Made By: tampatim
2,599
Posted By tampatim
The goal would be that I can load all lines in...
The goal would be that I can load all lines in the file and that each column/field is delimited by a pipe and each row has exactly 70 col/fields. The data has embedded cr/lf/eol in it. It came from...
2,599
Posted By tampatim
added csv file (but its really pipe delimited)
added csv file (but its really pipe delimited)
2,599
Posted By tampatim
Sorry the error was for akshays code. ...
Sorry the error was for akshays code.

Corona688, I tried yours on the sample data and all worked fine. I then tried it on the real file, there are 70 columns/fields in the file. The file has 4688...
2,599
Posted By tampatim
Seems to work but I think I am hitting a buffer...
Seems to work but I think I am hitting a buffer issue with variable. It gets error ^ ran out for this one on a line and does not process further.

Thanks,
Tim
2,599
Posted By tampatim
Thanks! So the end of line char is $ in vi....
Thanks!

So the end of line char is $ in vi. So what I really want is I have a file that has 80 fields. In there is free form text that people have added the <enter> key so they show up as cr or...
2,599
Posted By tampatim
Removing cr,lf till number of fields are full
I have a file
1|2|3|4
a|b|c|d
1|2
3|4
a|
b|
c|
d|

The file should have 4 fields to load into a database. The file may have cr, lf, or end of line characters.

What I want to see as...
Showing results 1 to 6 of 6

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