<commit_before>ccp
===

Console Copy
<commit_msg>add a small README<commit_after>ccp - console copy
==================

`ccp` allows you to copy files over interactive sessions with remote UNIX systems. This can be useful when talking to embedded linux systems over serial lines, or when `ssh`/`telnet` is available, but `scp` is not.

Requirements
------------

On the host: `pexpect` python package.

On the target: `base64` and `dd`.

Examples
--------

Transfer a local file to a remote system connected via conserver:

`$ ccp /tmp/data 'console -f ser1':/tmp/data`

Grep in a remote file:

`$ ccp 'screen /dev/ttyS0 115200':/tmp/data - | grep keyword`

{'fraction_non_alphanumeric': 0.1461187214611872, 'fraction_numerical': 0.015220700152207, 'mean_word_length': 3.6666666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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}}
{'dir': 'git-commits-cleaned', 'id': '4056072', 'n_tokens_mistral': 216, 'n_tokens_neox': 202, 'n_words': 85}