Skip to content

Greg's Teaching & Researchblog

Musings from the beautiful world of Atmospheric Chemistry

About me


I am a Senior Lecturer at Concordia University in Montreal, Canada. Teaching: Environmental and Analytical Chemistry, Advanced Data Analysis and Thermodynamics. Research: Analytical method development, analysis & modelling of environmental data from source to sink using machine learning in R and python.

Follow me on Mastodon

Territorial Acknowledgement

Pages

  • Community
  • Contact me
  • Publications
  • Research
  • Teaching

Tags

  • admin
  • agu fall meeting
  • analytical chemistry
  • article
  • atmosphere
  • barrow
  • boxplot
  • calibration curves
  • chemistry
  • concordia university
  • conference
  • course
  • data
  • dawson
  • dicarboxylic acids
  • frost flowers
  • fungal metabolites
  • general chemistry
  • ice
  • lecture
  • manuscript
  • mcgill
  • mcgill university
  • meeting
  • page
  • peer instruction
  • plot
  • poster
  • presentation
  • press
  • published
  • r
  • sampling
  • series
  • session
  • snow
  • snow data
  • subset
  • system
  • teaching
  • update
  • vacation
  • voc
  • voc
  • windsor corridor

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Tag: text

Converting text files with sed

Sed is my friend to change fixed-width text files (e.g., from an R screen output) to a comma delimited file using

sed 's/ */,/g' file1 >file2.csv

Note the two spaces between s/ and */.

Posted on March 3, 2011Categories r, researchTags convert, file, r, screen, textLeave a comment on Converting text files with sed
Proudly powered by WordPress