Search Results

Search: Posts Made By: anduzzi
4,272
Posted By Yoda
Based on some assumptions: awk -F, -v C=6 ' ...
Based on some assumptions:
awk -F, -v C=6 '
NR == 1 {
for ( i = 1; i <= NF; i++ )
{
if ( i <= C )
...
4,272
Posted By Corona688
There's a reason I used % as a delimiter in my...
There's a reason I used % as a delimiter in my list file; some of those items have spaces in them, $2 won't be the entire type.
4,272
Posted By Yoda
Oh ok. I got it. Create a comma separated...
Oh ok. I got it.

Create a comma separated list file instead:
$ cat listfile
ID,string
Key,string
KeyCreateDate,date("YYYY-MM-DD")
EmailAddress,string
DepDate,date("YYYY-MM-DD")...
4,272
Posted By Yoda
Here is what I get by adding a testfield in the...
Here is what I get by adding a testfield in the input file:
$ ./anduzzi.awk
record
string(',') ID;
string(',') Key;
date("YYYY-MM-DD")(',') KeyCreateDate;
string(',') EmailAddress;...
4,272
Posted By Yoda
Here is another approach: Input file with...
Here is another approach:

Input file with list of datatype:
$ cat listfile
ID string
Key string
KeyCreateDate date("YYYY-MM-DD")
EmailAddress string
DepDate ...
4,272
Posted By Corona688
Least complex to you, because you know the rules...
Least complex to you, because you know the rules and I don't... "mostly" decimal is guaranteed to guess wrong if I guess all decimal.

Does it go by name? I hope it goes by name. You can make a...
3,385
Posted By Scrutinizer
Do you mean like this: grep...
Do you mean like this:
grep "'"'"${ETL_VW_SCHEMA}"'"'\.PROJ$" infile
it is a bit of a puzzle :). Perhaps you rather just do this:
grep '${ETL_VW_SCHEMA}.*\.PROJ$' infile
Showing results 1 to 7 of 7

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