append

This command allows you to append the given row to the table.

Note:

Examples

Let’s add more cities to this table:

> open cities.txt | lines
━━━┯━━━━━━━━━━━━
 # │ <value>
───┼────────────
 0 │ Canberra
 1 │ London
 2 │ Nairobi
 3 │ Washington
━━━┷━━━━━━━━━━━━

You can add a new row by using append:

> open cities.txt | lines | append Beijing
━━━┯━━━━━━━━━━━━
 # │ <value>
───┼────────────
 0 │ Canberra
 1 │ London
 2 │ Nairobi
 3 │ Washington
 4 │ Beijing
━━━┷━━━━━━━━━━━━

It’s not possible to add multiple rows at once, so you’ll need to call append multiple times:

> open cities.txt | lines | append Beijing | append "Buenos Aires"
━━━┯━━━━━━━━━━━━━━
 # │ <value>
───┼──────────────
 0 │ Canberra
 1 │ London
 2 │ Nairobi
 3 │ Washington
 4 │ Beijing
 5 │ Buenos Aires
━━━┷━━━━━━━━━━━━━━