Skip to content

bit.summa

useful bits, picked up and dropped off

Replacing multiple spaces with one tab in BSD (OS X) sed

Posted byalexpreynolds July 21, 2017September 2, 2018

Press Ctrl-V and the Tab character where you see [TAB]:

$ sed 's/[[:space:]]\{1,\}/[TAB]/g' in.mtx > out.mtx
Posted byalexpreynoldsJuly 21, 2017September 2, 2018Posted incommandline, os x, sed

Post navigation

Previous Post Previous post:
Installing pygraphviz in OS X 10.12
Next Post Next post:
How to get a list of HGNC symbols and names (descriptions)

Recent Posts

  • (Re-)learning statistical tests from a different direction
  • Running a local fork of higlass-server
  • Running production and deployment React apps on the same EC2 host
  • How to install and set up a local UCSC BLAT environment
  • How to get a list of HGNC symbols and names (descriptions)

Recent Comments

    Archives

    • January 2020
    • November 2018
    • September 2017
    • August 2017
    • July 2017
    • June 2017
    • January 2016
    • December 2015
    • March 2015
    • December 2014
    • September 2014
    • July 2014
    • May 2014
    • September 2013
    • November 2012
    • October 2012
    • August 2012
    • July 2012

    Categories

    • base64
    • bash
    • bedops
    • bedtools
    • bioinformatics
    • blat
    • c
    • centos
    • commandline
    • compression
    • conversion
    • curl
    • django
    • documentation
    • ec2
    • emacs
    • git
    • github
    • graph
    • graphviz
    • higlass
    • image processing
    • ios
    • linux
    • lion
    • magic words
    • mathematics
    • mongo
    • nginx
    • nodejs
    • ocr
    • os x
    • polarssl
    • programming
    • python
    • R
    • react
    • sed
    • sha1
    • statistics
    • testing
    • ucsc
    • Uncategorized
    • visualization
    • web
    • wget
    • wordpress

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    bit.summa, Proudly powered by WordPress.