Search Results

Search: Posts Made By: Sangtha
8,943
Posted By Sangtha
Compare Fields from two text files using key columns
Hi All,

I have two files to compare. Each has 10 columns with first 4 columns being key index together. The rest of the columns have monetary values.

Using Perl, I want to read one file into...
12,933
Posted By Sangtha
Yes, thats right. It does display 5 decimal...
Yes, thats right. It does display 5 decimal places after, but for some reason, it replaces it with zeros.
12,933
Posted By Sangtha
I also tried %.f and it didnot work. ...
I also tried %.f and it didnot work.

Thanks.
12,933
Posted By Sangtha
Convert exponential value to decimal
Hi,

Here is my script to read a file into array:
awk -F '[ \t$]+' '
# load first file into array indexed by fields 1 and 2
NR == FNR {
file1nr = FNR
...
10,315
Posted By Sangtha
AWK in Putty
I am a beginner with shell script and AWK. I use PUTTY to write shell script.
Can I create new AWK script using vi command? I tried sample.awk. But everytime I open this file, the file does not...
4,178
Posted By Sangtha
The text file is tab delimited. Here is the...
The text file is tab delimited.
Here is the sample file:
File A:
Row1: 6666; D000; $12.00405; $234.08976; $212.09876; the number goes on for another 9 columns
Row2: 6666; D015; $12.56745;...
2,731
Posted By Sangtha
Trim pathname of the file
I am capturing the files in a directory to an array. I have 2 arrays with list of files in two different directories. Both the directories are supposed to have the same number of files and filenames....
4,178
Posted By Sangtha
AWK to compare two files for each field value
I have "n" files in directory A and "n" files in directory B. The files are expected to be the same with same data. Each file has 14 columns and "x" rows. Of the 14 column, 2 columns are to be...
8,183
Posted By Sangtha
Thanks much! This works fine. But the result...
Thanks much! This works fine.

But the result shows 1 count more than the actual. If I navigate to that directory and use "ls" command, it gives 1556, but find gives 1557.

any idea?

Thanks...
8,183
Posted By Sangtha
I tried that, but got an error "argument list too...
I tried that, but got an error "argument list too long".
any other option?
8,183
Posted By Sangtha
Thanks danmero! But the directory path that...
Thanks danmero!

But the directory path that I want to list is in the root.
I am currently in /home/aaa
the files that want to list is in /aa/bb/cc/dd/ee/ff/gg....
any help?
Thanks!
8,183
Posted By Sangtha
I will enter the directory path and capture it in...
I will enter the directory path and capture it in a variable. When I execute this command, i get the message " ls $dir_name out_* | wc -l" command not found.

Thanks1
8,183
Posted By Sangtha
Using variable in ls command
I am in /home/aaa path and trying to list all the files in different directory - the path to this directory is lengthy. For example: aa/bb/cc/dd/ee/ff/gg/hh/ii/jj... and also the path will change...
2,583
Posted By Sangtha
Compare values between files
I have two files with same name residing in different directory. Each file has 14 columns. I want to compare column by column for each row.

Also, have to take two columns as key identifier;pick...
3,848
Posted By Sangtha
Thanks Kshji! Each file has 14 columns and...
Thanks Kshji!

Each file has 14 columns and expected to have around 500 rows. Taking two column values as key identifier, need to compare the values in each cell.
3,848
Posted By Sangtha
Thanks Sandholm! that works I have another...
Thanks Sandholm! that works

I have another question:
1. Directory "A" has files like
out_cpty_123; out_cpty_456; out_cpty_789....upto 1800 files
out_pstn_123; out_pstn_456;...
3,848
Posted By Sangtha
Count the number of files with only the partial file name
I have 1800 files in a directory. The file name is like out_cpty_XXXX. The "XXXX" vaires from file to file. I want to get the count of files with file name out_cpty_XXXX. How to get the count with...
4,736
Posted By Sangtha
Thanks for the immediate response. Here are the...
Thanks for the immediate response. Here are the details.

The File name would be the same in both the directories and both the files are expected to carry the same no of records with same value....
4,736
Posted By Sangtha
Bash scripting to compare N number of files located in two directories
I want to compare "N" (around 2000+) number of huge files located in a directory A against "N" files located in a different directory using Bash scripting.

Please help me with any scripts...
Showing results 1 to 19 of 19

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