bash - Trouble writing a command that outputs three different commands to a file -
i have write single command runs date, ls, , pwd utilities @ same time , redirects output text file. can't seem figure 1 out, single command fine 3 issue
you should execute commands in subshell
redirect out file.
(date; ls; pwd) > /path/to/file
hope helps.
bash shell command-line
No comments:
Post a Comment