Search Results

Search: Posts Made By: kmkbuddy_1983
6,249
Posted By kmkbuddy_1983
I want to capture first field in a file and check...
I want to capture first field in a file and check for some conditions. File has got 10 million records.
6,249
Posted By kmkbuddy_1983
awk command with PERL
Hi All,

My Input file looks like below:

Input:
100,200,300

$fw=`head -1 test.csv | awk -F, '{print \$1}'`;
$fw="'$fw"
$fw="$fw'"
print $fw

Output:'100'

I want the first field...
7,080
Posted By kmkbuddy_1983
It worked great. Awsome dude. You are really...
It worked great. Awsome dude. You are really great. hats off to your weighted brain. I am your fan from today. trust me...
7,080
Posted By kmkbuddy_1983
hey dude I appreciate your help. Once you...
hey dude
I appreciate your help. Once you found that Id '254-11' is common in both the files. You need to grep the File A to get ouptut as below. current line and previous line of the match. You...
7,080
Posted By kmkbuddy_1983
yes buddy, i can do that. I have extracted the...
yes buddy, i can do that. I have extracted the field 1 to file C and Field 5 to file D. I used comm command to compare and find the exact match. It just run for few seconds.

The output file is...
7,080
Posted By kmkbuddy_1983
Hi, Thank you for your suggestion. In file...
Hi,

Thank you for your suggestion. In file A, Actual field is second line. Records seperated by ','. The first line is error or message where words are sepearated by space. so i cannot say first...
7,080
Posted By kmkbuddy_1983
Hi Rahul, Thank you for your reply. Command...
Hi Rahul,

Thank you for your reply. Command comm with the above files gives wrong output because i need to compare field 1 of file A and field 5 of file B and output the current and previous line...
7,080
Posted By kmkbuddy_1983
Comparing two huge files
Hi,

I have two files file A and File B. File A is a error file and File B is source file. In the error file. First line is the actual error and second line gives the information about the record...
Showing results 1 to 8 of 8

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