I am new to scripting and need a shell script changed to Perl. Below is the script, can someone please help me out in converting this to PERL.
-MP#!/bin/sh sudo /usr/openv/netbackup/bin/admincmd/bpimagelist -A -media -hoursago + 24 |sed 's/\|/ /'|awk '{print $1}' > /home/h150371a/file.tmp cat /home/h150371a/file.tmp | while read Image do sudo /usr/openv/netbackup/bin/admincmd/nbemmcmd -listmedia -mediaid $I +mage | grep -iE 'Media ID|Data Expiration' >> file1.tmp done if [ -s file1.tmp ] then mailx -s "Daily" ishonbackup.nar@capgemini.com </home/h150371a/ +file1.tmp fi rm /home/h150371a/file1.tmp
In reply to Shell script to Perl by ansh_1415
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |