bash - How can I concatenate the output of two commands? -



bash - How can I concatenate the output of two commands? -

how can concatenate output of pwd , ls , add together file called f1? not working:

pwd, ls > f1

use compound command:

{ pwd; ls; } > f1

bash unix

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -