Академический Документы
Профессиональный Документы
Культура Документы
/bin/bash -x
for triplet in `cat triplets.txt`; do
tac = `cat triplet | cut -d"," -f2 | cut -c-8`;
os = `cat gsma.txt | grep -e "^$tac|"`;
saida = $triplet"|"$os;
echo "$saida";
done
awk 'NR==FNR{A[$1]=$0;next}$2=A[$2]' file2 file1
awk 'FNR==NR{a[$1]=$1 FS $1;next}{ print $0, a[$1]}' file2 file1
bkpReport1
bkpReport2
bkpReport3
bkpReport4
bkpReport5
bkpReport6
--------#R5
awk -F ',' 'substr($1,7,1)!=0 && substr($1,7,1)!=1 && substr($1,7,1)!=3 && subs
tr($1,7,1)!=2 && substr($1,7,1)!=4 { print $0 }' bkpReport1 >> /usr/var/report/s
aida_non_r5r8.txt &
awk -F ',' 'substr($1,7,1)!=0 && substr($1,7,1)!=1 && substr($1,7,1)!=3 && subs
tr($1,7,1)!=2 && substr($1,7,1)!=4 { print $0 }' bkpReport2 >> /usr/var/report/s
aida_non_r5r8.txt &
awk -F ',' 'substr($1,7,1)!=0 && substr($1,7,1)!=1 && substr($1,7,1)!=3 && subs
tr($1,7,1)!=2 && substr($1,7,1)!=4 { print $0 }' bkpReport3 >> /usr/var/report/s
aida_non_r5r8.txt &
awk -F ',' 'substr($1,7,1)!=0 && substr($1,7,1)!=1 && substr($1,7,1)!=3 && subs
tr($1,7,1)!=2 && substr($1,7,1)!=4 { print $0 }' bkpReport4 >> /usr/var/report/s
aida_non_r5r8.txt &
awk -F ',' 'substr($1,7,1)!=0 && substr($1,7,1)!=1 && substr($1,7,1)!=3 && subs
tr($1,7,1)!=2 && substr($1,7,1)!=4 { print $0 }' bkpReport5 >> /usr/var/report/s
aida_non_r5r8.txt &
awk -F ',' 'substr($1,7,1)!=0 && substr($1,7,1)!=1 && substr($1,7,1)!=3 && subs
tr($1,7,1)!=2 && substr($1,7,1)!=4 { print $0 }' bkpReport6 >> /usr/var/report/s
aida_non_r5r8.txt &
724031732674350,8688100002289700,552032674350,"Y",{54bcef4d0009b044}
724031727636318,3539850414849200,552027636318,"Y",{54bcef4f000ee29a}
724031713551394,3545640544888400,552013551394,"Y",{54cab667000ed78b}
724031730869403,3571500502242800,552030869403,"N",{54c8c85f000ccd84}
724031731944675,3561160637411000,552031944675,"Y",{54cb94bf0007e858}
724031727665528,3522400515732900,552027665528,"Y",{54cf7a7e000c81c0}
724031727629821,3552550541547900,552027629821,"Y",{54c840fc000ef0da}
724031729737889,3555390627475100,552029737889,"Y",{54d0f083000d8ced}
724031719517310,3545660619615200,552019517310,"Y",{54bd202a000782eb}
724031715962655,3562840694355300,552015962655,"N",{54d112ba0006a0b1}
724031705629870,3579220452166200,552005629870,"Y",{54c8155c0003d411}
724031727983109,3555060616690200,552027983109,"Y",{54ce91080007d497}
awk
$0
awk
$0
awk
$0
awk
$0
awk
$0
awk
$0
{ print
{ print
{ print
{ print
{ print
{ print
724022200325777,8665190107551300,5521981764327,"Y",{54825093000bdc3c}
724044200104567,3585470544692900,554196634969,"Y",{52e17f09000c605b}
724031200165764,3574290525158300,5511985947713,"Y",{52e193d50007063f}
724023200088415,3572770586926500,553186520411,"Y",{54b456bc000ce12b}
724044200118603,3520480607414800,554199275522,"Y",{5454eebd000dc177}
724031201384542,3539300608048300,5511986315478,"Y",{54bcea5400009b1b}
724023200147116,3525310502154700,553193603049,"Y",{5486bca0000352bc}
724031200152272,8679190162698000,5511960706640,"Y",{52e17ec10000a44c}
724031200163476,130340080694000,5511984413322,"Y",{53222f680004c010}
724031202174810,3533200609745500,5519982762969,"Y",{5483a3d2000aa77d}
724031200163272,3562150527964800,5511987742695,"Y",{53bdf1470009596a}
724031201735441,135950011752400,5511959541333,"Y",{5482543d00075d1d}
724023200049171,3574310516289900,553291300081,"Y",{548979730005f03c}
724044200099832,3559410516874000,554196384777,"Y",{52e1755f000f1f40}
724031201829490,3554870544295400,5511976232296,"Y",{54ab97de000f41cf}
724031200189430,138870055429500,5511983970004,"Y",{52e1884b0008a64a}
724046200026227,3592940510647700,556281550413,"Y",{5305ccdb0002e169}
724031201934927,3593150521869700,5511984496759,"Y",{54825698000afdac}
724031200094017,126570018794600,5511970460548,"Y",{52e18a7d0009e36e}