how to do


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how to do
# 1  
Old 06-08-2006
how to do

Hi,

I have one large data file name as dat1 .

i want empty the file without deleting the file.

using unix commands.

how it possible.


rajan
# 2  
Old 06-08-2006
Use:
Code:
>dat1

# 3  
Old 06-08-2006
Code:
cp /dev/null dat1

Code:
cat /dev/null > dat1

Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question