-2
我在網上發現了這個Perl腳本,但我不知道如何使用它。當我運行它時,它會打開一個空的終端。我不知道該如何投入終端才能使其工作。如何使用此Perl腳本?
該腳本可以在這裏找到:http://www.ve3syb.ca/software/gimp/script-update.pl
非常感謝你的幫助。
我在網上發現了這個Perl腳本,但我不知道如何使用它。當我運行它時,它會打開一個空的終端。我不知道該如何投入終端才能使其工作。如何使用此Perl腳本?
該腳本可以在這裏找到:http://www.ve3syb.ca/software/gimp/script-update.pl
非常感謝你的幫助。
好,在腳本的幫助下,文中說的:
print "Usage: $0 [-h|--help|-from xx|-to yy]\n";
print " -from xx Script was written for version xx of GIMP\n";
print " -to yy Output script for use with version yy of GIMP\n";
print "\n";
print "GIMP version number should be one:\n";
print " 10, 12, 20, 22, 24, or 26\n";
print "\n";
print " The script to be updated is read from stdin.\n";
print " The updated script is written to stdout.\n";
print "\n";
調用它像這樣:
./script.pl -from XX -to YY <input> output
使用說明在腳本中,它們告訴你如何使用它。尤其要注意的是,要從stdin中讀取要更新的腳本的位 - 所以您可能需要重定向或管理腳本。
if ($arg eq "-h" || $arg eq "--help")
{
print "Usage: $0 [-h|--help|-from xx|-to yy]\n";
print " -from xx Script was written for version xx of GIMP\n";
print " -to yy Output script for use with version yy of GIMP\n";
print "\n";
print "GIMP version number should be one:\n";
print " 10, 12, 20, 22, 24, or 26\n";
print "\n";
print " The script to be updated is read from stdin.\n";
print " The updated script is written to stdout.\n";
print "\n";
exit;
}