Issue
I have some commands in txt file and I need to execute all them line by line. How could I do it?
id='dv4'>
Solution
Just do bash file
:
$ cat file
date
echo '12*12' | bc
$ bash file
Mon Nov 26 15:34:00 GMT 2012
144
In case of aliases just run bash -i file
No need to worry about file extensions or execution rights.
Answered By - Chris Seymour Answer Checked By - Katrina (WPSolving Volunteer)