Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
/ sed-collections Public archive

๐Ÿ“‘ My personal sed script collections

License

Notifications You must be signed in to change notification settings

NNBnh/sed-collections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

NNB's sed script collections

My personal sed script collections

๐Ÿ’ก About

This is a collection of sed scripts to help you filter text files.

โŒจ๏ธ Usage

Just simply use file-based sed scripts command:

sed -f path/to/sed-file.sed path/to/text-file

Examples:

sed -f path/to/sed-collections/shortcodes/emoji.sed -i path/to/text-file
  • Roll a dice:
echo :dice_{1,2,3,4,5,6}: | sed -f path/to/sed-collections/shortcodes/dice.sed | tr ' ' '\n' | shuf | head -n 1
  • Pick cards:
echo :card_{a,2,3,4,5,6,7,8,9,10,j,q,k}{h,d,c,s}: | sed -f path/to/sed-collections/shortcodes/card.sed | tr ' ' '\n' | shuf | more -n 1






Made with โค๏ธ by NNB

Buy Me a Coffee