Skip to content

Instantly share code, notes, and snippets.

View ametad's full-sized avatar

ametad

  • Groningen, The Netherlands
View GitHub Profile
@ametad
ametad / sed_snippets.sh
Created February 5, 2024 14:34 — forked from r2k0/sed_snippets.sh
sed examples
##FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
# triple space a file
<?php
/* LICENSE
* Copyright (c) 2014 Máté Cserép
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it