=== keypushe- is now known as keypusher === keypushe- is now known as keypusher === keypushe- is now known as keypusher [11:52] hm, wie macht man jetzt dass read auch hinter | funkt? [12:14] oje [12:21] related: gibts eine alternative zum read befehl? [12:27] kommt halt extrem drauf an, was du da eigentlich machen willst und was der ganze befehl ist [12:29] tail somefile | while read l ; do echo $l ; read ; done # grundproblem [12:33] übel [12:37] mal in #bash gefragt ... [12:47] ok. mir erschließt sich die idee noch nicht so ganz [12:50] der read-befehl ist ein echter problembär in shellskript [12:51] 5 minuten ratlosigkeit in #bash sind auch schon bemerkenswert [14:07] wofür ist denn das zweite 'read'? [16:16] in dem fall einfach nur ein simpler prompt [16:16] zur steuerung [16:20] und so langsam bin ich wirklich am ende mit meinen shell-latein [16:20] überraschend [16:20] schreib mal nen variablennamen dahinter [16:20] kannste selber leicht ausprobieren dass das nix ändert [16:21] hmm [16:21] stimmt, grade getan [16:23] hm [16:35] itu: anderer filedescriptor hilft: while IFS= read -r -u 4 LINE ; do echo $LINE; read ; done 4< /etc/os-release [16:36] oh, gut! [16:36] bzw. in deinem beispiel: while read -u 4 l; do echo $l; read; done 4< <(tail somefile) [16:39] -r scheint entbehrlich [16:40] schon etwas abgedreht, aber noch hinnehmbar als lösung .. [16:43] wenn man das einfach ans prompt-read dranfummeln könnte wärs schöner [16:43] hab das hier her https://stackoverflow.com/questions/4953706/how-to-read-line-by-line-and-also-get-input-from-keyboard [16:43] Title: linux - How to read line by line and also get input from keyboard? - Stack Overflow (at stackoverflow.com) [16:44] sowas funkt auch nicht ( read < /proc/PID/fd/0 ) [16:45] aber das (in der loop): read is aber qualitativ anders [16:46] ah, doch das ist super! [16:47] sogar ohne klammern [16:47] danke schonmal! [16:48] ich hatte nur andere stackoverflow-seiten gefunden [16:52] ( /proc/PID/fd/0 gibts ja auch gar nicht ... PID muss man ja einsetzen ) [16:55] cat /etc/os-release | while read l ; do echo -n "$l" ; read < /dev/tty ; done # das wäre also die lösung === sem2peie- is now known as sem2peie === sem2peie- is now known as sem2peie [18:42] /proc/$$/fd/0 funkt auch, btw [21:22] beschte [23:11] beschtfaz