Search Results

Search: Posts Made By: Matrix2682
5,384
Posted By Matrix2682
KSH - mailx - Redirect the undelivered mail
Hi,

I need to create one KSH which will send mail to set of recipients using "mailx" command like below.

mailx -s "Test mail" "test@yahoo.com, test@gmail.com" <$output.txt
The recipients are...
4,727
Posted By Matrix2682
The code gives me max marks and its corresponding...
The code gives me max marks and its corresponding student#. But I am not sure on how to get the second highest mark, if there are more than 3 students in a class...



sort -t',' -k2 File1.csv -o...
4,727
Posted By Matrix2682
The following code gives the max marks... I need...
The following code gives the max marks... I need to know on how to get second highest...



sort -t',' -k2 File1.csv -o File1.csv

sort -t',' -k1 File2.csv |\
join -t',' -e 'ZZZZ' -1 2 -2 1 -o...
4,727
Posted By Matrix2682
AWK or KSH : Sort, Group and extract from 3 files
Hi,
I've the following two CSV files:

File1.csv File2.csv

Class,Student# Student#,Marks
1001,6001 ...
2,169
Posted By Matrix2682
malcomex999, thanks for the code... it works......
malcomex999, thanks for the code... it works... but if a same employee belongs to 2 departments, that record is not coming in output.
awk 'NR>2 && NR==FNR{arr[$2]=$1}NR>2 && NR!=FNR {for(i in...
2,169
Posted By Matrix2682
KSH to group records in a file and compare it with another file
Hi,

I've a file like below:

DeptFile.csv

DeptID EmpID
------- ------
Dep01 Emp01
Dep01 Emp02
Dep01 Emp03
Dep02 Emp04
Dep02 ...
Showing results 1 to 6 of 6

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