Re: Pipe ueber FIFO
Thomas Moritz <[email protected]> Fri, 8 Oct 2010 11:39:35 +0200
| Newsgroups | gmane.linux.suse.programming |
|---|---|
| Organization | - |
| Message-ID | <[email protected]> |
Am Freitag, 8. Oktober 2010 07:44:43 schrieb Thomas Moritz: Ich schreibe mir mal selbst :-) Da ich gerade kurz Zeit hatte, habe ich folgendes mit Erfolg getestet: ---./pipetest------------------------- #!/bin/sh mkfifo mypipe trap "rm -f mypipe" HUP INT TERM EXIT x=0 cat name.txt > mypipe & while read name; do x=`expr $x + 1` echo "$name" done <mypipe echo "Var x Ausserhalb von while= $x" ---./pipetest------------------------- ---name.txt--- ich du er sie es ---name.txt--- Jetzt muss ich das nur noch mit find -type f -iname "*.xxx" hinbekommen :-) MfG Th. Moritz