Microsoft
Software
Hardware
Network
Question : How to convert MSDOS Batch file to Linux Bash ?
Hi,
May i know how to convert the following MSDOS Batch File to linux BASH Script ?
@echo off
for /F "skip=3 usebackq tokens=*" %%i in (`cmd /c "vzlist -ao veid"`) do (cmd /c "vzbackup "%%i && echo VE ID %%i has been backed up!)
Hope anybody can help.
Thanks.
Answer : How to convert MSDOS Batch file to Linux Bash ?
#!/bin/bash
for i in $(vzlist -ao veid | more +4)
do
vzbackup $i && echo "VE ID $i has been backed up!"
done
Random Solutions
how do i schedule a defrag with a log-on script?
korn shell pattern match 3 expressions using grep
Windows installed on wrong letter drive
Sending performance counter/monitor alerts by email
Strip spaces out of phone numbers in Excel
Size changes when exporting Crystal to PDF format
554 5.3.0 unknown mailer error 255
Web GUI standards
Memory leak?
TypeError #1009 - Flash CS3/AS3