Re: How can I >> the command together with the output to a file?
From: Dave Uhring (daveuhring_at_yahoo.com)
Date: 02/12/05
- Previous message: Barry Margolin: "Re: How can I >> the command together with the output to a file?"
- In reply to: Jirong Hu: "How can I >> the command together with the output to a file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 11 Feb 2005 21:55:10 -0600
On Thu, 10 Feb 2005 20:17:47 -0500, Jirong Hu wrote:
> e.g. if the command is "ls -al", I can save the output to a file by "ls -al
>>> ls.result". How to include this "ls -al" into the output file, ls.result?
[duhring]$ ls -al > ls.result 2>&1
[duhring]$ head ls.result
total 1646093
drwxr-xr-x 22 duhring sysadmin 1536 Feb 11 21:53 .
drwxr-xr-x 8 root root 512 Oct 21 14:59 ..
-rw------- 1 duhring sysadmin 349 Dec 23 17:42 .TTauthority
-rw------- 1 duhring sysadmin 589 Dec 23 17:42 .Xauthority
-rw-r--r-- 1 duhring sysadmin 1910 Jan 2 2004 .acrorc
-rw------- 1 duhring sysadmin 6078 Feb 11 11:08 .bash_history
-rw-r--r-- 1 duhring sysadmin 778 Jan 21 2004 .bashrc
drwxr-xr-x 12 duhring sysadmin 512 Dec 23 17:42 .dt
-rwxr-xr-x 1 duhring sysadmin 5111 Jun 10 2002 .dtprofile
- Previous message: Barry Margolin: "Re: How can I >> the command together with the output to a file?"
- In reply to: Jirong Hu: "How can I >> the command together with the output to a file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]