Tagged Questions
2
votes
1answer
106 views
Inconsistent input redirection behavior
I wrote a 10000010-byte file (99010 rows of 100 consecutive a's) named big for experimentation purposes. I then copied the entire text into my clipboard, ran wc, and pasted it into stdin. Next, I did ...
4
votes
1answer
180 views
command like wc but with tee behaviour
I want to backup a database using psql and COPY command. here is my script:
psql "user=${USERNAME} host=${HOSTNAME} dbname=${DBNAME} password=${PASSWORD}" -c \
"COPY (SELECT * FROM tbl) ORDER BY id ...