Search Results

Search: Posts Made By: dreamsportsteam
5,943
Posted By dreamsportsteam
Thanks for posting, but im having little trouble at execution
when i tried the same in c shell i'm getting the 4 values as out put,
here i have modified the if condition..
if ("$E" ="$D" & "$B" = $"C" )
then
echo Status: Success
exit 0;
else
echo...
5,943
Posted By dreamsportsteam
sorry for not mentioning it before, yes the first...
sorry for not mentioning it before, yes the first column in FILE1.dat should be ignored
5,943
Posted By dreamsportsteam
I have tried like this, but could not able to...
I have tried like this, but could not able to figure out to solve the issue

#!/bin/ksh
set A=`cut -d "|" -f2 /home/user/FILE1.dat`
set E=`$A | awk "{sum +=$1} END { printf "%.2f", sum }"`
set...
5,943
Posted By dreamsportsteam
shell script for comparing two files
Hi,

I have 2 files as below

FILE1.dat

co1|co2|co3
abnd|45.56|AZ
dkny|30.2|PA
sam|.23|VA

FILE.CTL

FILENAME|FILE1.dat
NO OF RECORDS|3
CHECKSUM|75.99

Could you please help me to...
Showing results 1 to 4 of 4

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