First of all, hello there cOmMuNity !
Well, I've got two basic questions:
1) In how many ways it's possible to create a file ?
I know one manner using "touch", other typing something like echo "" > file ...
The fact is that I need to overwrite the file if it exists, and touch isn't capable of doing this (actually, touch isn't that suitable for creating files, is it ? as it's destined to change the access date and time of a file...). So, is the echo "" > file the most elegant way for this purpose ?
2) What is exactly the /dev/null... It isn't the same thing as a NULL value, is it ?
Suppose I've chosen to create a file by the echo "" > file method.
The file starts with a blank line. To avoid this, I've seen
cat /dev/null > file
Is this again the only way ?
I heard also that I could use the -n option of echo, which removes the newline character...
It would be something like echo -n "" > file
It should work out.
Well, that's all for now.
Thank you anyway !!!
435 Gavea - bRaZiL - tHE HEll iS hERe !