programming in bash Shell

Famelis George famelis at eetaa.gr
Fri Mar 10 17:58:30 EET 2000


Ãåéá ÷áñÜ

Olga +Natalia wrote:
> 
> Paidia , gia boi8iste me ligo dioti exw kollisei se ayto to simeio
> arketes imeres.
>  de me endiaferei an i ylopoiisi tou 8a einai me awk i me sed i me
> kati allo
>  (an kai egw  nomizo oti einai o monadikos tropos einai me xrisi tis,
> gawk)
> 

Ãßíåôáé êáé ìå sed. Ìüíï ðïõ ÷ñåéÜæïíôáé ôñßá sed óôç óåéñÜ.

#---- cut ----
echo "Poia grami na sbisw apo to arxeio? dwse ID: "
read deleteID
grep -v "^${deleteID}	" step-ena | sed -e = | sed -e 'y/\
/@@/
n' | sed -e 's/@[0-9][0-9]*//' > neo-arxeio
#---- cut ----

Ç ãñáììÞ ìå ôï grep ôåëåéþíåé ìå '\' êáé ôï êåíü ôçò Ýêöñáóçò 
ðïõ äßíïõìå óôï grep åßíáé Ýíá <ÔÁÂ>. Áõôü ãéáôß ç Ýêöñáóç ðïõ
äßíïõìå óôï grep ðñÝðåé íá ðåñéÝ÷åé ìåôÜ áðü ôï ID êáé ôï 
äéá÷ùñéóôéêü ðïõ ÷ùñßæåéò ôá ðåäßá (êáé åäþ Ý÷ù èåùñÞóåé ïôé
åßíáé ôï <ÔÁÂ>) ãéáôß áëëéþò áí äßíáìå ãéá DeleteID to 5 èá
äéáãñÜöáìå êáé ôéò ãñáììÝò ðïõ Ý÷ïõí ID ôá 50, 51, êëð

Ãåéá ÷áñÜ

Ãéþñãïò ÖáìÝëçò
famelis at eetaa.gr
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/lgu.html
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list