Rename bash script help

Advertisement

Guest

Rename bash script help

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?

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

thanks

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

Re: Rename bash script help

If that is valid shell command, you need to use "call" command to execute it and reformat it to a single line.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum