Search Results

Search: Posts Made By: ezhil01
1,281
Posted By ezhil01
Search duplicate field and replace one of them with new value
Dear All,

I have file with 4 columns:

1 AA 0 21
2 BB 0 31
3 AA 0 21
4 CC 0 41

I would like to find the duplicate record based on column 2 and replace the 4th column of the duplicate by a...
7,800
Posted By ezhil01
It works. Thanks.
Hi,

Thanks a lot.

Cheers,
Ezhil
7,800
Posted By ezhil01
Store values from a file into an array variable in Shell
Dear All,

I have been trying to do a simple task of extracting 2 fields from the file (3 rows) and store it in an array variable. I tried with:
#! /bin/bash
ch=`cut -f10 tmp.txt`
counter=0
...
2,555
Posted By ezhil01
Passing variable as an input file to AWK comand
Hi,

I would like to compare 2 files using awk, which I can do by using:
awk 'NR==FNR{a[$1];next} (NR > 32 && $2 in a) {print $0}' File1 and File2.

If the name of the File1 is in another file...
9,448
Posted By ezhil01
Thank a lot, Franklin. It works fine. Thanks...
Thank a lot, Franklin. It works fine.

Thanks again,
Ezhil
9,448
Posted By ezhil01
gawk - reading two files & re arrange the columns
Hi,

I am trying to read 2 files and writing to the 3rd file if I find the same elements in 2 files. my first file is

1 0 kb12124819 766409 1.586e-01
1 0 ...
5,347
Posted By ezhil01
gawk - multiple sorting within a file
Hi,

I am new shell programming and trying work on the follwoing file:

1 rs1
1 rs12
1 rs3
1 rs8
2 rs2
2 rs15
2 rs3
3 rs5
3 rs9
3 rs4

I would like to sort my 2nd column within 1, 2,...
Showing results 1 to 7 of 7

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