About: Append output of an external command   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

The results from running a shell command can be inserted into the current buffer with the :read command, or lines can be replaced in a buffer with a filter command, or Vim's system() function can be used like the backquote syntax (aka backtick) that many Unix shells provide to capture command output, which you can then use in a script or expression-register ([help quote=]) to insert in the buffer or parse in some way. The following examples capture the output of the shell's date command. This is just an example: it is better to use Vim's strftime() function to get the date or time.

AttributesValues
rdfs:label
  • Append output of an external command
rdfs:comment
  • The results from running a shell command can be inserted into the current buffer with the :read command, or lines can be replaced in a buffer with a filter command, or Vim's system() function can be used like the backquote syntax (aka backtick) that many Unix shells provide to capture command output, which you can then use in a script or expression-register ([help quote=]) to insert in the buffer or parse in some way. The following examples capture the output of the shell's date command. This is just an example: it is better to use Vim's strftime() function to get the date or time.
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 466(xsd:integer)
Category
  • Getting started
Complexity
  • basic
Created
  • 2003(xsd:integer)
ID
  • 467(xsd:integer)
NEXT
  • 468(xsd:integer)
Rating
  • 11(xsd:integer)
abstract
  • The results from running a shell command can be inserted into the current buffer with the :read command, or lines can be replaced in a buffer with a filter command, or Vim's system() function can be used like the backquote syntax (aka backtick) that many Unix shells provide to capture command output, which you can then use in a script or expression-register ([help quote=]) to insert in the buffer or parse in some way. The following examples capture the output of the shell's date command. This is just an example: it is better to use Vim's strftime() function to get the date or time.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software