touch, cat will not be working for me.. however, i am trying some options with the echo -n actually..
---------- Post updated at 03:45 AM ---------- Previous update was at 03:40 AM ----------
the thing is,
i want to create multiple files without any trailing spaces at all, but script may fail in between and in that case , it would be run again, then i want the old contents to be flushed out of the created files so they are empty again(no trailing spaces) .. now ofcourse i can do it by some code snippet but what i am looking for is a Unix command only to remove older contents if already existing or create new one if not(without any trailing spaces).
It's strange that you cannot use cat touch >, I'm not sure what type of environment you are using that disallow you to use those typical commands. Use perl if you can