©2018 by Zach Pfeffer

SEARCH THIS SITE

Remove Timestamps From Linux boot logs with Vim

March 23, 2018

This line replaces the values between [  and  ] with white space.

 

:%s/\(\[\).*\(\]\)/\1           \2/g

 

% - find a replace on every line

s - search and replace

\(\[\) - select the first bracket, can then refer to it with \1

.* - all characters

\(\]\) - select the second bracket, can then refer to it with \2

g - replace all instances on a line 

Please reload

Our Recent Posts

A Fix for "You don't have permission to create items on this site: https://yoursite.sharepoint.com/sites/pwa"

September 25, 2019

Create a Tree-View of a Directory on Linux with 'tree'

August 17, 2019

Use draw.io in Google Drive (and Get Rid of draw.io )

June 30, 2019

1/1
Please reload

Tags

Please reload