/srv/irclogs.ubuntu.com/2023/11/12/#ubuntu-de.txt

=== keypushe- is now known as keypusher
=== keypushe- is now known as keypusher
=== keypushe- is now known as keypusher
ituhm, wie macht man jetzt dass  read   auch  hinter  |   funkt?11:52
ituoje12:14
iturelated: gibts eine alternative zum  read  befehl?12:21
k1lkommt halt extrem drauf an, was du da eigentlich machen willst und was der ganze befehl ist12:27
itutail  somefile |  while read l ; do echo  $l ; read  ; done   #  grundproblem12:29
ituübel12:33
itumal in #bash gefragt ...12:37
k1lok. mir erschließt sich die idee noch nicht so ganz12:47
ituder read-befehl ist ein echter problembär in shellskript12:50
itu5 minuten ratlosigkeit in #bash  sind auch schon bemerkenswert12:51
tomreynwofür ist denn das zweite 'read'?14:07
ituin dem fall einfach nur ein simpler prompt16:16
ituzur steuerung 16:16
ituund so langsam bin ich wirklich am ende mit meinen shell-latein16:20
ituüberraschend16:20
tomreynschreib mal nen variablennamen dahinter16:20
itukannste selber leicht ausprobieren dass das nix ändert16:20
ituhmm16:21
tomreynstimmt, grade getan16:21
ituhm16:23
tomreynitu: anderer filedescriptor hilft:    while IFS= read -r -u 4 LINE ; do echo $LINE; read ; done 4< /etc/os-release16:35
ituoh, gut!16:36
tomreynbzw. in deinem beispiel:  while read -u 4 l; do echo $l; read; done 4< <(tail somefile)16:36
itu -r scheint entbehrlich16:39
ituschon etwas abgedreht, aber noch hinnehmbar als lösung ..16:40
ituwenn man das einfach ans prompt-read dranfummeln könnte wärs schöner16:43
tomreynhab das hier her https://stackoverflow.com/questions/4953706/how-to-read-line-by-line-and-also-get-input-from-keyboard16:43
le_botTitle: linux - How to read line by line and also get input from keyboard? - Stack Overflow (at stackoverflow.com)16:43
itusowas funkt auch nicht  ( read < /proc/PID/fd/0 ) 16:44
tomreynaber das (in der loop): read </dev/tty16:45
tomreynis aber qualitativ anders16:45
ituah, doch das ist super!16:46
itusogar ohne klammern16:47
itudanke schonmal!16:47
ituich hatte nur andere stackoverflow-seiten gefunden16:48
itu(  /proc/PID/fd/0  gibts ja auch gar nicht ... PID muss man ja einsetzen  )16:52
itucat  /etc/os-release  |  while read l ; do echo -n  "$l" ;  read < /dev/tty   ; done  #  das wäre also die lösung16:55
=== sem2peie- is now known as sem2peie
=== sem2peie- is now known as sem2peie
itu  /proc/$$/fd/0    funkt auch, btw18:42
tomreynbeschte21:22
itubeschtfaz23:11

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!