Difference between revisions of "CLI"
From Fiamma
Jump to navigationJump to searchLine 1: | Line 1: | ||
Various bash/zsh/CLI tips. | Various bash/zsh/CLI tips. | ||
− | + | === Execute any line // echo any line from a textfile.=== | |
Source: https://www.reddit.com/r/archlinux/comments/6k7go4/how_could_i_excecute_specific_commands_from_a/ | Source: https://www.reddit.com/r/archlinux/comments/6k7go4/how_could_i_excecute_specific_commands_from_a/ | ||
<pre> | <pre> |
Revision as of 11:50, 29 June 2017
Various bash/zsh/CLI tips.
Execute any line // echo any line from a textfile.
Source: https://www.reddit.com/r/archlinux/comments/6k7go4/how_could_i_excecute_specific_commands_from_a/
sed -n 1p file.txt | bash
See also Category:CLI