![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running a queued set of commands? | jjinno | Shell Programming and Scripting | 1 | 04-25-2008 03:27 AM |
| Error while running rsh commands !!! | csaha | Shell Programming and Scripting | 3 | 11-08-2006 01:47 AM |
| How to disable running commands from vi | Umesh_Sharoff | Shell Programming and Scripting | 1 | 07-14-2006 12:05 PM |
| running commands from script | owijust | Shell Programming and Scripting | 2 | 01-09-2006 06:12 PM |
| running start up commands | skotapal | UNIX for Dummies Questions & Answers | 3 | 12-03-2002 07:31 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I would like to know how can I write the output of these 2 commands into a file.I tried like
wc -l outfile2;du -sk outfile2>xyz.txt Then it is writing only the output of second command to the file. Without writing to a file, it is giving outputs of both correctly.Any thoughts? Last edited by abhilash_menon; 04-27-2009 at 10:53 AM.. Reason: Correction |
|
||||
|
Thanks.I got the same as
echo `wc -l outfile2; du -sk outfile2` > xyz.txt |
| Sponsored Links | ||
|
|