Windows equivalent command

Jared Anderson PluggedIn at TheGoldenEdge.Com
Thu Aug 25 06:52:40 MST 2005


Ahhh.  I have always used ': > some_file'.  It is great news that I can be even more
lazy!

On Thu, 25 Aug 2005 05:00:48 -0700, Craig White writes:
>I have learned to simply '> some_file' as a shortcut for 
>'cat /dev/null > some_file'
>
>Craig
>
>On Wed, 2005-08-24 at 23:18 -0700, AZ Pete wrote:
>> Tried that: You get a file consisting 2 quotes marks
>> I couldn't get any permutation of echo to work.
>> 
>> 
>> 
>> At 8/24/2005 11:08 PM, you wrote:
>> >Don't have a windows box here, but how about...
>> >
>> >echo "" > some_file
>> >
>> >On Aug 24, 2005, at 11:03 PM, AZ Pete wrote:
>> >
>> >>I initially tried this and it doesn't work.  When you type the echo
>> >>command with no text afterwards, it will return the status of the
>> >>echo command (either on of off).  So, when you execute echo >
>> >>some_file.txt, the file will contain the text "echo is on"
>> >>
>> >>Peter
>> >>
>> >>At 8/24/2005 10:51 PM, you wrote:
>> >>
>> >>>echo > some_file
>> >>>
>> >>>On Aug 24, 2005, at 10:37 PM, AZ Pete wrote:
>> >>>
>> >>>
>> >>>>Hi All,
>> >>>>
>> >>>>I want to empty out a log file without having to erase it and
>> >>>>recreate a new zero length file.
>> >>>>Is there a windows command line equivalent of the following Linux
>> >>>>command:
>> >>>>
>> >>>>cat /dev/null > some_file
>> >>>>
>> >>>>Thanks!
>> >>>>Peter
>> >>>>
>> >>>>---------------------------------------------------
>> >>>>PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
>> >>>>To subscribe, unsubscribe, or to change  you mail settings:
>> >>>>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>> >>>
>> >>>---------------------------------------------------
>> >>>PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
>> >>>To subscribe, unsubscribe, or to change  you mail settings:
>> >>>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>> >>
>> >>---------------------------------------------------
>> >>PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
>> >>To subscribe, unsubscribe, or to change  you mail settings:
>> >>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>> >
>> >---------------------------------------------------
>> >PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
>> >To subscribe, unsubscribe, or to change  you mail settings:
>> >http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>> 
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
>> To subscribe, unsubscribe, or to change  you mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>---------------------------------------------------
>PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
>To subscribe, unsubscribe, or to change  you mail settings:
>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>


-- 
my$.02


More information about the PLUG-discuss mailing list