Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
A
attic
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
hydrargyrum
attic
Commits
21d7ba06
Commit
21d7ba06
authored
Aug 18, 2020
by
hydrargyrum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trim-trailing-whitespace: remove spaces, tabs and alike at end of each line
parent
7f8d1bfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
README.rst
README.rst
+1
-0
trim-trailing-whitespace/trim-trailing-whitespace
trim-trailing-whitespace/trim-trailing-whitespace
+6
-0
No files found.
README.rst
View file @
21d7ba06
...
...
@@ -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
...
...
trim-trailing-whitespace/trim-trailing-whitespace
0 → 100755
View file @
21d7ba06
#!/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:
]
]
*$
//
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment