Difference between revisions of "CLI"

From Fiamma
Jump to navigationJump to search
(Created page with "Relevant: Category:CLI Execute any line // echo any line from a textfile: <code> sed -n 1p file.txt | bash </code> Source: https://www.reddit.com/r/archlinux/comments/6...")
 
Line 1: Line 1:
 
Relevant: [[:Category:CLI]]
 
Relevant: [[:Category:CLI]]
  
Execute any line // echo any line from a textfile:
+
* Execute any line // echo any line from a textfile:
<code>
+
<pre>
 
sed -n 1p file.txt | bash
 
sed -n 1p file.txt | bash
</code>  
+
</pre>  
 
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/

Revision as of 11:48, 29 June 2017

Relevant: Category:CLI

  • Execute any line // echo any line from a textfile:
sed -n 1p file.txt | bash

Source: https://www.reddit.com/r/archlinux/comments/6k7go4/how_could_i_excecute_specific_commands_from_a/