<jupyter_start><jupyter_text>Shell commands in IPython e.g .:<jupyter_code>!ls
!pwd
!echo "Hello world!"<jupyter_output>Hello world!<jupyter_text>Passing values to and from the shell<jupyter_code>contents = !ls
print(contents)
directory = !pwd
print(directory)<jupyter_output>['/Users/veit/jupyter-tutorial/docs/basics/ipython']<jupyter_text>Shell-related magic commands<jupyter_code>!pwd
!cd ..
!pwd
%cd ..<jupyter_output>/Users/veit/jupyter-tutorial/docs/basics<jupyter_text>Neben `%cd` gibt es noch folgende andere Shell-bezogene Magic-Befehle:`%cat`, `%cp`, `%env`, `%ls`, `%man`, `%mkdir`, `%more`, `%mv`, `%pwd`, `%rm` und `%rmdir`.  `%automagic` functionWith the `%automagic` function, these can also be used without the preceding `%` character:<jupyter_code>%automagic
cd ..<jupyter_output>/Users/veit/jupyter-tutorial/docs
{'fraction_non_alphanumeric': 0.16606498194945848, 'fraction_numerical': 0.0, 'mean_word_length': 7.489795918367347, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '562526', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 345, 'n_tokens_neox': 339, 'n_words': 63, 'path': 'docs/workspace/ipython/shell.ipynb', 'repo_name': 'silke/jupyter-tutorial', 'size': '831'}