Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 08-18-2005, 08:31 AM   #1 (permalink)
 
Newb Techie

Join Date: Aug 2005

Posts: 1

complete

Default getting output to a file.

I am using CGYWIN, the Unix emulator program on Windows XP.

How do I get output to go to a file? For instance, in DOS it is > and in VAX/VMS it is usually /output=filename.

I did a "man grep" to get a description (manual) of all the grep options. I see that there is no option for putting the output to a file.
complete is offline  
Old 08-18-2005, 09:05 AM   #2 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

use >> or >

> will append onto the end of a file or just create one if it doesnt exist
>> will create a file and if one already exists it will overwrite whats in it

this is assuming cgwyin is using a bash shell equivalent
horndude is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On