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. | ||
− | + | == Commands == | |
=== 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/ | Source: https://www.reddit.com/r/archlinux/comments/6k7go4/how_could_i_excecute_specific_commands_from_a/ | ||
Line 6: | Line 6: | ||
sed -n 1p file.txt | bash | sed -n 1p file.txt | bash | ||
</pre> | </pre> | ||
+ | |||
+ | == Programs == | ||
+ | |||
+ | == Resources == | ||
See also [[:Category:CLI]] | See also [[:Category:CLI]] | ||
+ | |||
[[Category:PKM]] | [[Category:PKM]] | ||
[[Category:Good]] | [[Category:Good]] |
Revision as of 11:51, 29 June 2017
Various bash/zsh/CLI tips.
Commands
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
Programs
Resources
See also Category:CLI