Pages

Search This Blog

Showing posts with label unix. Show all posts
Showing posts with label unix. Show all posts

Wednesday, October 7, 2015

[scripting] Alternate for touch command in Windows for Unix

I was working on a requirement where I need to process Informatica workflow from a source file. But the issue was that file might exist and in some case it might get missing. So was searching for replacement of touch command in unix and here is the code:

$PMSourceFileDir\$$SOURCE_FILENAME --- is your file path

type nul >>$PMSourceFileDir\$$SOURCE_FILENAME & copy $PMSourceFileDir\$$SOURCE_FILENAME +,,