Enviado em 23/01/2013 - 13:20h
Pessoal,grep -f arq1.txt arq2.txt | awk '$4 ~ /^s/ {print $4}' > output.txt
while read arq1t.txt
do
line2=`grep $line1 <arq2.txt`
if ($line2<>"")
then
IS=`echo $line2 | awk '{print $4}' > output.txt`
endif
done <arq1.txt
#!/bin/awk -f
BEGIN {
while((getline line1 < "arq1.txt")>0) {
while((getline line2 < "arq2.txt")>0) {
split(line2,l,/\t/)
if(l[1] ~ line1) {
if(l[4] ~ /^s/) {
saida = sprintf("s%\n",l[4])
print saida > "output.txt"
}
}
}
}
}
Desktop Linux ganha fôlego enquanto distros refinam experiência e segurança
Wayland em alta, IA em debate e novos ventos para distros e devices
Qt 6.10 e Python 3.14 puxam o ritmo do software livre nesta quarta
Atualizações de Apps, Desktop e Kernel agitam o ecossistema Linux nesta terça-feira
Como mudar o nome de dispositivos Bluetooth via linha de comando
Adicionando o repositório backports no Debian 13 Trixie