Search Results

Search: Posts Made By: garpal
1,926
Posted By garpal
Yes switching to nawk solved the problem... ...
Yes switching to nawk solved the problem...

Here is the test code used...


AML_SER=$1
FILE_LIST=$2
TEMP_FILE=$3

nawk -F, -v var="$AML_SER" '{if (var == $1 ) print $2}' "$FILE_LIST" >...
1,926
Posted By garpal
Thats a very good question, I have no idea what...
Thats a very good question, I have no idea what version of awk I have...

I have access to nawk but not the other two. And I do have access to Perl but know nothing about it.


This ended up...
1,926
Posted By garpal
Rubin... I am getting an error on the code given....
Rubin... I am getting an error on the code given. I hardcoded some test data and tried to run.


awk -F, -v var="1" '{if (var == $1 ) print $2}' GO_FILE_LIST.dat

awk: syntax error near...
1,926
Posted By garpal
Delimited File Help
Hey guys I am new to unix programming and need some help with a task.

I have a file that is comma delimited with values like this

1,NEW.txt
1,OLD.txt
2,MONKEY.txt
3,FUN.txt
100,MONEY.txt
...
Showing results 1 to 4 of 4

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