Topic "Rename bash script help"

Author Message
Guest




i try to run the script below at WINSCP but it prompt out unknown command

Some1 can help me change the script which compatible with WINSCP and with same result?

Code:
for file in Stat_file*.txt; do
  mv "$file" "CUPT${file#Stat_file}"
done
]

thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
If that is valid shell command, you need to use "call" command to execute it and reformat it to a single line.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License