mardi 3 juin 2014

bash: how to redirect the result in to another file


Vote count:

0




Now I have this code, which can show the result on my terminal



cat temp | sort -n | uniq -c | awk '{ print $2, $1 }'


but How can I redirect this into another file?


I tried this echo temp | sort -n | uniq -c | awk '{ print $2, $1 }' > temp2, but not working


Thanks



asked 21 secs ago






Aucun commentaire:

Enregistrer un commentaire