This shows you the differences between two versions of the page.
| 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:// | This section assumes a basic working knowledge of Unix development including the use of an command-line editor (e.g., [[https:// | ||
| + | |||
| ===== Pipes and Redirects ===== | ===== Pipes and Redirects ===== | ||
| Line 21: | Line 22: | ||
| man | man | ||
| </ | </ | ||
| + | |||
| + | ===== Bash Scripts ===== | ||
| + | |||
| + | ===== Python3 Command-Line Arguments ===== | ||
| + | |||
| + | Consider the Python code: | ||
| + | <file python test.py> | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== -c Command Flag ==== | ||
| + | While only occasionally convenient, limited Python3 code can also be entered directly on the command line with the command ('' | ||
| + | <code python> | ||
| + | $ python3 -c " | ||
| + | Hello | ||
| + | World! | ||
| + | </ | ||
| + | |||
| ===== Additional Resources ===== | ===== Additional Resources ===== | ||
| Line 35: | Line 54: | ||
| /tmp/ | /tmp/ | ||
| </ | </ | ||
| + | |||
| + | |||
| + | |||