Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k
Source Link
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