Commit 21d7ba06 authored by hydrargyrum's avatar hydrargyrum

trim-trailing-whitespace: remove spaces, tabs and alike at end of each line

parent 7f8d1bfa
......@@ -40,6 +40,7 @@ This repository hosts various small personal tools.
* stickimage: display an image always-on-top like a sticky note
* supybot-shell: Supybot plugin: execute shell commands and see their output
* tailsleep: like tail -f but quits when I/O activity stops
* trim-trailing-whitespace: remove spaces, tabs and alike at end of each line
* univisible: tweak Unicode combinations and visualize them
* vhd: visual hex dump, splitting at newlines, not fixed-width lines
* wakeonwan: wake remote machines with Wake-on-WAN
......
#!/bin/sed -f
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# remove trailing whitespace on each line
# warning: \r\n will likely be converted to \n
s/[[:space:]]*$//
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment