Difference between revisions of "CLI"
From Fiamma
Jump to navigationJump to searchLine 1: | Line 1: | ||
− | + | Various bash/zsh/CLI tips. | |
− | * Execute any line // echo any line from a textfile: | + | * 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/ | ||
<pre> | <pre> | ||
sed -n 1p file.txt | bash | sed -n 1p file.txt | bash | ||
</pre> | </pre> | ||
− | + | ||
+ | See also [[:Category:CLI]] | ||
+ | [[Category:PKM]] | ||
+ | [[Category:Good]] |
Revision as of 11:49, 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