How can I get to stdout all commands that run in bash script?
That is output must contain commands output AND commands themselves.
I found
#!/bin/bash -x
but this is not exactly the same because instead of
mysql -v dbname < dump.sql | grep "CREATE TABLE"
it shows
+ mysql -v dbname
+ grep 'CREATE TABLE'