[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [bash] - Catturare STDIN



> Se vuoi appoggiarti ad un file temporaneo:
>
> #!/bin/sh
> ..
> cat > temp_file.$$
> ..
> # Tutte le operazioni che vuoi leggendo dal file temp_file.$$
> ..
> rm temp_file.$$
> exit 0

Se devi creare un file temporaneo, ti consiglio mktemp:
http://matrixhasu.altervista.org/index.php?view=tips&cat=linux&tip=tips_linux__creare_file_temporanei

Ciao

--
Sandro Tosi (aka Morpheus, matrixhasu)
My (little) site: http://matrixhasu.altervista.org/



Reply to: