Search Results

Search: Posts Made By: Mannu2525
1,577
Posted By Mannu2525
Here you go - # cat examplefile.txt ...
Here you go -

# cat examplefile.txt
ghi|NN603762|eee
mno|NN607265|ttt
pqr|NN613879|yyy
stu|NN615002|uuu
jkl|NN607265|rrr
vwx|NN615002|iii
yzA|NN618555|ooo
def|NN190486|www...
6,262
Posted By Mannu2525
Able to do it using sed...
Able to do it using sed '/WARNING/N;/^\(.*\)\n\1$/!P; D' File.txt
5,074
Posted By Mannu2525
If I assume your sample data then below code...
If I assume your sample data then below code might work in this case-


awk -F '\t' 'NR==FNR{A[$1]=$0; next} $2 in A{print $0;}1' file1 file2 | uniq -c | awk '$1 != "1" {print $4"\t"$5}' > outfile...
2,338
Posted By Mannu2525
You could use :- #!/bin/bash echo...
You could use :-

#!/bin/bash

echo "<<Analysis Report >>"
echo ""

echo "Src & tgt Count Validation"
echo "Source Count : `wc -l < file1`"
echo "Target Count : `wc -l < file2`"

awk -F\|...
4,395
Posted By Mannu2525
If you like you can add attachment to the email. ...
If you like you can add attachment to the email.
uuencode path/file file | mailx -s "your subject" sender@email.com

Else use
Mailx -s "your subject" sender@email.com< path/file
Showing results 1 to 5 of 5

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