User Tools

Site Tools


competitive_programming:linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
competitive_programming:linux [2018/08/13 15:15]
jguerin Created: Added several things that we should cover.
competitive_programming:linux [2018/08/15 10:48] (current)
jguerin Moved Python section down to deemphasize it.
Line 3: Line 3:
  
 This section assumes a basic working knowledge of Unix development including the use of an command-line editor (e.g., [[https://www.gnu.org/software/emacs/tour/|Emacs]], Vim), basic Unix commands and utilities (e.g., ls, cd, man), and development toolchains (g++, Python3, Make). This section assumes a basic working knowledge of Unix development including the use of an command-line editor (e.g., [[https://www.gnu.org/software/emacs/tour/|Emacs]], Vim), basic Unix commands and utilities (e.g., ls, cd, man), and development toolchains (g++, Python3, Make).
 +
  
 ===== Pipes and Redirects ===== ===== Pipes and Redirects =====
Line 21: Line 22:
 man man
 </code> </code>
 +
 +===== Bash Scripts =====
 +
 +===== Python3 Command-Line Arguments =====
 +
 +Consider the Python code:
 +<file python test.py>
 +</file>
 +
 +
 +==== -c Command Flag ====
 +While only occasionally convenient, limited Python3 code can also be entered directly on the command line with the command (''-c'') flag.
 +<code python>
 +$ python3 -c "print('Hello') ; print('World!')"
 +Hello
 +World!
 +</code>
 +
  
 ===== Additional Resources ===== ===== Additional Resources =====
Line 35: Line 54:
 /tmp/ /tmp/
 </code> </code>
 +
 +
 +
  
competitive_programming/linux.1534191307.txt.gz ยท Last modified: 2018/08/13 15:15 by jguerin