gawk-help

Evripidis Papakostas evris at ametro.gr
Fri Mar 24 20:53:54 EET 2000


i voulariba@ (peftei kai) ksanaxtypa!!!!

mou leei na sou steilo ta eksis:

#! /bin/sh
# scriptname: psakse
# orismata  : kati 
# to script kaleitai me parametro tin leksi pou psaxneisp.x. psakse kati
kapou
kati=$1
kapou=$2
# an allaksei o delimiter tote awk -F'newdelimiter' klp klp

awk '{if(index($2 $3 $4 $5 $6 $7 $8 $9 ,"'$kati'")>0) print $0}' $kapou


einai kapos pio aplo apo to diko sou. alla an den sou peksei klp ta
parapona sou sto voulariba at hellug.gr don't shoot the messanger...

evris

> read inform        (dinw as poume "pedi")
> gawk -F^
>         ($2 ~ /"$inform"/) || ($3 ~ /"$inform"/) ||
>         ($4 ~ /"$inform"/) || ($5 ~ /"$inform"/) ||
>         ($6 ~ /"$inform"/) || ($7 ~ /"$inform"/) ||
>         ($8 ~ /"$inform"/) || ($9 ~ /"$inform"/)
> 
> { print $0; } ' arxeio

--
linux-greek-users mailing list -- http://lists.hellug.gr




More information about the Linux-greek-users mailing list