Hello Say I have a file containing a single line which is a bash command. Is ther a Perl one liner to copy and run it? Cheers
Just to be sure, you do want to do this within the context of a larger Perl script, right? Since otherwise, you don't even need Perl; the following will suffice:
$ source filename.txt
In reply to Re: Running a command from a text file
by AppleFritter
in thread Running a command from a text file
by Zoarob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |