Using plink in cmd
to ssh my MacOS and ls
the dir's. However, the results are in a single column. Because the list is long but the names are short, I'm trying to display the results in 3 or 4 columns like ls
does by default in terminal. I can't get it to do this when using plink.
Few options I've tried:
plink.exe -ssh -l <username> -pw <password> <IP> "ls /Users/Dir/"
plink.exe -ssh -l <username> -pw <password> <IP> "ls -c /Users/Dir/"
plink.exe -ssh -l <username> -pw <password> <IP> "ls /Users/Dir/ > Results.txt"
plink.exe -ssh -l <username> -pw <password> <IP> "column Results.txt"
Current results using plink with CMD
Folder 1
folder 2
folder 3
folder 4
folder 5
folder 6
Looking to get this result using plink with CMD
folder 1 folder 2 folder 3
folder 4 folder 5 folder 6
folder 7 folder 8 folder 9