File contents are as;
Now my questions are;param(
[string]$sourcepath,
[string]$targetpath
)
$OWlogtext = "`nStarted at " + (Get-Date).ToString()
$CommandName = $MyInvocation.MyCommand.Name
$OWlogfilename = $CommandName -replace '.ps1', '.txt'
$OWlogpath = "E:\Overwatch\logs\$OWlogfilename"
$OWlogtext>>$OWlogpath
Write-Output "Sourcepath is $sourcepath" >>$OWlogpath
Write-Output "Targetpath is $targetpath" >>$OWlogpath
$filetext = [System.IO.File]::ReadAllLines($sourcepath)
$filetext = $filetext -replace '\x22', ''
[System.IO.File]::WriteAllLines($targetpath, $filetext)>>$null
1: When the script runs on Linux are any changes required?
2: How to run Script in DataStage? There is a routine namecalled ExeShell but never understand that.