Let's consider that I have the following bash script called time.bash
:
#!/bin/bash
date -d @$1
This script converts the epoch timestamp to its corresponding date as the following:
$ ./time.bash 1267619929
qua mar 3 09:38:49 -03 2010
Now let's suppose I'm editing the following file using Vim:
1267619929 word word
1267619935 word word
1267619931 word word
1267619946 word word
Considering that I'm working just on a single line, I'd like to save the timestamp 1267619929 on the register a
with "aye
, execute the script time.bash
with the register a
content as input, and save its output on another register (let's say register b
). Is it possible to do this kind of stuff on Vim?