Skip to main content
1 of 3
user188979
  • 103
  • 1
  • 3
  • 7

How to add new line in text file in output from remote shell script using plink

From windows i am executing a remote shell script using putty plink

cmd>plink.exe -ssh username@hostipd -pw gbG8qs4 /user/alice/listoffiles.sh > C:\log1.txt

Shell script in remote server

#! /bin/bash

echo -e "Hellow\nWorld"

I am getting the output in log1.txt is HelloWorld without any newline. How to get ouput as

Hello
World
user188979
  • 103
  • 1
  • 3
  • 7