diff --git a/README.md b/README.md index 1520a93..abfb1e1 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,7 @@ sed -i '$ s/.$//' filename ``` #####add string to end of file (e.g. "]") + ```bash sed '$s/$/]/' filename ``` @@ -173,6 +174,12 @@ sed -e 's/$/\}\]/' filename sed 's/.\{4\}/&\n/g' ``` +#####concatenate/combine/join files with a seperator and next line (e.g seperate by ",") + +```bash +sed -s '$a,' *.json > all.json +``` + #####substitution (e.g. replace A by B) ```bash