How to make reading and writing the same file in the same pipeline always "fail"? – unix.stackexchange.com

Say I have the following script: #!/bin/bash for i in $(seq 1000) do cp /etc/passwd tmp cat tmp | head -1 | head -1 | head -1 > tmp #this is the key line cat tmp done On the key ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "How to make reading and writing the same file in the same pipeline always "fail"? – unix.stackexchange.com"