Search Results

Search: Posts Made By: jerome Sukumar
4,439
Posted By jerome Sukumar
file Lookup using awk
Duplicated the question
4,439
Posted By jerome Sukumar
file Lookup using awk
Hi All,

I have two files file1 and file2(lookup file).I need to map more than one keyfields of file1 with file2.how can we achieve it using awk.

file1(max 2.2 million records)...
1,188
Posted By jerome Sukumar
Is it possible?
Hi gurus,

Can i use regular expressions to ftp files like this

ftp -v -n -i << EOF > FTPERRLOG2.log
open <<host>>
user <<username>> <<passwd>>
prompt off
ls test[0-9]{2}*...
4,439
Posted By jerome Sukumar
Join Command Help
Hi,

I am trying to use join command for two files of size greater than 1 GB.
join -t , -1 2 -2 1 -o...
2,123
Posted By jerome Sukumar
Thank you very much
Hi vish_indian,

Many Thanks,for clearing my doubt.

Regards,
Sukumar.
2,123
Posted By jerome Sukumar
Hi vish_indian, Thanks.But can we specify...
Hi vish_indian,

Thanks.But can we specify the field numbers to sort inside the awk like what we have specified in basic sort command.


Regards,
Sukumar.
2,123
Posted By jerome Sukumar
Question in awk
Dear All,

How can we sort using awk?Is there anything by default

Please help me.

Regards,
Sukumar
12,911
Posted By jerome Sukumar
This is not just a comparison
Hi ghostdog,

This is not just a comparison,I am trying to achieve deletion and moving of files after text processing.

The below example is a simple try for unix commands inside awk.




...
12,911
Posted By jerome Sukumar
Inside the awk.
echo $h|awk '{
"if [ "'$h'" -eq "hi" ]
then
echo "Success"
else
echo "Failure"
fi"
}'

I dont know where iam right or not.please help me
12,911
Posted By jerome Sukumar
How to use unix commands in awk
Hi All,
I try to use the unix commands inside awk and couldnt succeed .
Please help me how to achieve it.







Regards,
Sukumar.
8,287
Posted By jerome Sukumar
For finding duplicates not only by size by file naming convention too
Hi All,
sorry for rephrasing.
while finding duplicates I will use file naming convention(substring of files 1,4) and file size too.
8,287
Posted By jerome Sukumar
finding duplicate files by size and finding pattern matching and its count
Hi,

I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one...
12,206
Posted By jerome Sukumar
Help plz
hi ygor,

I have understood the script,but one more issue is that the script is taking more time if my file 1 and file2 exceeds more than 5000 records,

As we are taking file2 in array,what will...
12,206
Posted By jerome Sukumar
Can u explain
Thanks a lot ygor
great script.works fine
As iam new bie to awk,can u explain me ygor.

Thanks and Regards,
sukumar
12,206
Posted By jerome Sukumar
comparing two files using awk.
Hi All,

a new bie to awk,

How to compare substring of col1,file 1 with
col2file2 and get file1contents+col3file2 as output.

file1
-----
kumarfghh,23,12000,5000
rajakumar,24,14000,2500...
11,332
Posted By jerome Sukumar
hi blowtorch, Iam also getting the same...
hi blowtorch,

Iam also getting the same problem,can u tell us the limit of ls command.
till how many file will it work.
5,688
Posted By jerome Sukumar
Hi, As i have said its a one-one mapping,but...
Hi,

As i have said its a one-one mapping,but the columns can be dynamic.
It can be col X(file1)-col 1(file2) ,colX,colY(file1)-col1col2(file2).Is it possible with the current script.
5,688
Posted By jerome Sukumar
Yah.... Its a one to one mapping between the...
Yah....
Its a one to one mapping between the files..

file1
-------
a;a;c;
d;f;g;
3;7;8;

file2
------
4;7;8;
3;4;7
a;a;c;
d;f;g;

success file1
-----------
a;a;c;
d;f;g;
5,688
Posted By jerome Sukumar
Hi Grial, Again thanx for ur kind repsonse,Let...
Hi Grial,
Again thanx for ur kind repsonse,Let me explain clearly.
I have compared col3 of file1 and col3 of file2.
I got duplicates of file1 with the latest script send by you.
And one more...
5,688
Posted By jerome Sukumar
Problem.
Hi Grial,
Thanks for your prompt and quick response.

The script works for comparing two cols i.e., col 3 and col4 of two files.

If i try to try to compare only col3 of two files,
I am getting...
5,688
Posted By jerome Sukumar
rephrase
Sorry girish,

I have given the column info wrongly,
Its col3 and col4 of file1 to col3 and col4 of file2 comparison.
5,688
Posted By jerome Sukumar
Comparison of two files in awk
Hi,
I have two files file1 and file2 delimited by semicolon,
And I want to compare column 2 and column3 of file1 to column3 and column 4 in file2.

file1
--------
abc;cef;155.67;143_34;...
Showing results 1 to 22 of 22

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