<jupyter_start><jupyter_text>Working with Bash and Zsh * **Difficulty level**: easy* **Time need to lean**: 10 minutes or less* **Key points**  * SoS works with Bash through either the [bash kernel](https://github.com/takluyver/bash_kernel) or the [Calysto_bash kernel](https://github.com/Calysto/calysto_bash).  * SoS works with Zsh through the [zsh-jupyter-kernel](https://github.com/danylo-dubinin/zsh-jupyter-kernel).  * The kernel interprets content of the cell as bash or zsh scripts  * Limited data exchange is supported because bash or zsh does not have a rich type system as Python  Bash  The Bash kernel is not rich in data types and everything is essentially a string. You can pass primitive datatypes from SoS to Bash but expect to get string representation of variables out of it.<jupyter_code>echo "Hello World"
a = 'Hello Bash'
%get a
echo $a
%expand
echo {a}
b='Hello from Bash'
echo $b
%get b --from Bash
b<jupyter_output><empty_output><jupyter_text>Zsh The usage of the zsh kernel is identical to bash.<jupyter_code>echo "Hello World"
a = 'Hello Zsh'
%get a
echo $a
%expand
echo {a}
b='Hello from Zsh'
echo $b
%get b --from Zsh
b<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09600679694137638, 'fraction_numerical': 0.0016992353440951572, 'mean_word_length': 4.89, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 3, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '84386', 'license': 'MIT', 'n_tokens_mistral': 405, 'n_tokens_neox': 386, 'n_words': 158, 'path': 'src/user_guide/sos_bash.ipynb', 'repo_name': 'fniephaus/sos-docs', 'size': '1177'}