Tuesday Jul 30, 2013

囲碁部がNHKの取材を受けました

私も所属している日本オラクルが囲碁部がNHKの取材を受けました。
以下の枠で9月1日放送予定です。

囲碁フォーカス|NHK囲碁と将棋

2013年度

あまちゃんボールペンを部員全員いただきました。

Tuesday Jul 23, 2013

Export all VirtualBox guests one-liner

Here's simple and stupid one liner for exporting all VirtualBox guests in separate files.

 

$ vboxmanage list vms|
> sed 's/^"\(.*\)".*$/\1/'|
> while read line; do
>   vboxmanage export $line --output $line.ova
> done

One can export multiple vbox guests to one file. That's why I call this 'stupid'. Often times, it's ideal to group vbox guests and export by groups.

Anyway, the above doesn't work if vbox guest name contains ' '(space) or '()' (braces).
Here's how I worked this around. I also removed ' '(space) from export filename.

$  vboxmanage list vms|
> sed 's/^"\(.*\)".*$/\1/;s/ /\\\\ /;s/(/\\\\\(/;s/)/\\\\\)/'|
> while read line; do
>   eval vboxmanage export $line --output $(echo $line|sed 's/\\ //').ova
> done








About

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Archives
« July 2013 »
SunMonTueWedThuFriSat
 
1
4
6
7
8
9
10
11
13
14
15
16
17
18
19
20
21
24
25
26
27
28
29
31
   
       
Today