This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
competitive_programming:linux [2018/08/14 10:18] jguerin Removed interactive interpreter section. Moved to its own page in this namespace. |
competitive_programming:linux [2018/08/15 10:48] (current) jguerin Moved Python section down to deemphasize it. |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| 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:// | ||
| - | ===== 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! | ||
| - | </ | ||
| ===== Pipes and Redirects ===== | ===== Pipes and Redirects ===== | ||
| Line 38: | Line 24: | ||
| ===== Bash Scripts ===== | ===== 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 52: | Line 54: | ||
| /tmp/ | /tmp/ | ||
| </ | </ | ||
| + | |||
| + | |||
| + | |||