<commit_before>#
# Common
#

## Replace foo in last command with bar
$ ^foo^bar

## Create backup file
$ cp filename{,.bak}

#
# Xargs
#

$ awk '{print $1,$2}' FILE | xargs -n 2 bash -c 'SHELL $0 + $1'

#
# Date
#

## Change date format
date -j -f "%Y%m%d%H%M%S" "20160303010203" +"%s"
<commit_msg>Update change date format shell<commit_after>#
# Common
#

## Replace foo in last command with bar
$ ^foo^bar

## Create backup file
$ cp filename{,.bak}

#
# Xargs
#

$ awk '{print $1,$2}' FILE | xargs -n 2 bash -c 'SHELL $0 + $1'

#
# Date
#

## Change date format

### Mac
date -j -f "%Y%m%d%H%M%S" "20160303010203" +"%s"

### Linux
date --date "2016-03-03T01:02:03"  +"%s"
date --date "@1456938123"  +"%Y%m%d%H%M%S"

{'fraction_non_alphanumeric': 0.20612813370473537, 'fraction_numerical': 0.08635097493036212, 'mean_word_length': 3.5796178343949046, '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': '3466811', 'n_tokens_mistral': 358, 'n_tokens_neox': 321, 'n_words': 90}