Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k
Source Link
michelemarcon
  • 3.6k
  • 12
  • 34
  • 38

Parsing string token with bash

I have this output (from a previous command):

aaa         something
bbb         someother
ccc         blabla

For each line, I would like to create a file whose name is the first token, and whose content is the second token (for example for the first line I would like a file named 'aaa' that contains the text 'something')

How should I do this?