Command (Download):
$ wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.3//FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso
Result:
--2016-09-17 12:02:19-- ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.3//FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso
=> ‘FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso’
Resolving ftp.freebsd.org... 2610:1c1:1:606c::15:0, 96.47.72.72
Connecting to ftp.freebsd.org|2610:1c1:1:606c::15:0|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.3/ ... done.
==> SIZE FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso ... 247324672
==> EPSV ... done. ==> RETR FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso ... done.
Length: 247324672 (236M) (unauthoritative)
FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso 100%[========================================================================================================================================================================================================================================>] 235.87M 483KB/s in 11m 5s
2016-09-17 12:13:27 (363 KB/s) - ‘FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso’ saved [247324672]
Command (Finding the checksum):
$ curl ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.3//CHECKSUM.SHA256-FreeBSD-10.3-RELEASE-amd64 | grep 'uefi-bootonly.iso)'
Result:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2392 100 2392 0 0 665 0 0:00:03 0:00:03 --:--:-- 665
SHA256 (FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso) = d9f1d52639821bbd818844f1899a5cf2a5601143ca76c095158405bf14719ebb
Saturday, September 17, 2016
Ubuntu: Googler: Installation
Command:
$ python3 --version
Result:
Python 3.5.1+
Command:
$ git clone https://github.com/jarun/googler.git
Result:
Cloning into 'googler'...
remote: Counting objects: 1902, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 1902 (delta 0), reused 0 (delta 0), pack-reused 1899
Receiving objects: 100% (1902/1902), 1.21 MiB | 704.00 KiB/s, done.
Resolving deltas: 100% (1146/1146), done.
Checking connectivity... done.
Command:
$ cd googler
$ sudo make install
Result:
[sudo] password for USERNAME:
install -m755 -d /usr/local/bin
install -m755 -d /usr/local/share/man/man1
install -m755 -d /usr/local/share/doc/googler
gzip -c googler.1 > googler.1.gz
install -m755 googler /usr/local/bin
install -m644 googler.1.gz /usr/local/share/man/man1
install -m644 README.md /usr/local/share/doc/googler
rm -f googler.1.gz
$ python3 --version
Result:
Python 3.5.1+
Command:
$ git clone https://github.com/jarun/googler.git
Result:
Cloning into 'googler'...
remote: Counting objects: 1902, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 1902 (delta 0), reused 0 (delta 0), pack-reused 1899
Receiving objects: 100% (1902/1902), 1.21 MiB | 704.00 KiB/s, done.
Resolving deltas: 100% (1146/1146), done.
Checking connectivity... done.
Command:
$ cd googler
$ sudo make install
Result:
[sudo] password for USERNAME:
install -m755 -d /usr/local/bin
install -m755 -d /usr/local/share/man/man1
install -m755 -d /usr/local/share/doc/googler
gzip -c googler.1 > googler.1.gz
install -m755 googler /usr/local/bin
install -m644 googler.1.gz /usr/local/share/man/man1
install -m644 README.md /usr/local/share/doc/googler
rm -f googler.1.gz
Thursday, September 15, 2016
macOS Sierra: Googler: Installation & Execution
Command:
$ brew install googler
Result:
==> Auto-updated Homebrew!
Updated Homebrew from 54884cd to 2818156.
Updated 1 tap (homebrew/core).
==> New Formulae
zsh-git-prompt
==> Updated Formulae
appscale-tools consul dockutil glm ios-deploy logentries ponyc serf
artifactory curl fontconfig h2o libstrophe pdnsrec scour
==> Deleted Formulae
jing
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Using the sandbox
==> Downloading https://github.com/jarun/googler/archive/v2.7.tar.gz
==> Downloading from https://codeload.github.com/jarun/googler/tar.gz/v2.7
######################################################################## 100.0%
==> Downloading https://github.com/jarun/googler/commit/6152bd3.patch
######################################################################## 100.0%
==> Patching
==> Applying 6152bd3.patch
patching file Makefile
==> make disable-self-upgrade
==> make install PREFIX=/usr/local/Cellar/googler/2.7
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/googler/2.7: 10 files, 159K, built in 8 seconds
Command:
$ googler hello world
Result:
1 Hello World(ハローワールド) : J-WAVE 81.3 FM RADIO
http://www.j-wave.co.jp/original/helloworld/
DJ TAROとハリー杉山がさまざまな流行を多角的に追いかける新感覚のエンターテインメントラジオ番組!Ustreamでもスタジオの様子を配信中.
2 Hello world - Wikipedia
https://ja.wikipedia.org/wiki/Hello_world
Hello world(ハロー・ワールド)とは、画面上(標準出力)に文字列(値)を出力する非常に簡単なプログラムで扱われる文字列であり、ひいてはそのプログラム全体を指す。 目次. [非表示]. 1 概要; 2 初出; 3 関連項目; 4 外部リンク. 概要[編集]. 大抵のプログラミング ...
3 BUMP OF CHICKEN「Hello,world!」 - Duration - YouTube
https://www.youtube.com/watch?v=rOU4YiuaxAM
BUMP OF CHICKEN「Hello,world! / コロニー」http://amzn.to/1cUREVd 2015.04.22 (wed ...
4 Hello,world! BUMP OF CHICKEN - 歌詞タイム
http://www.kasi-time.com/item-75660.html
歌手:BUMP OF CHICKEN 作詞:Motoo Fujiwara 作曲:Motoo Fujiwara 血界戦線に関連している曲です 歌い出し:扉開けば 捻れた昼の夜昨日どうやって帰った 体だけが確かおはよう これからまた迷子の続き見慣れた知らない 景色の中でもう.
5 Hello Worldとは (ハローワールドとは) [単語記事] - ニコニコ大百科
http://dic.nicovideo.jp/a/hello%20world
曖昧さ回避 Hello Worldとは、ニコニコ動画で以下の作品につけられるタグである。 卑屈Pのオリジナル曲、【巡音ルカ】ハローワールド【オリジナル】 ゆちゃPのオリジナル曲、【鏡音...
6 Amazon.co.jp: BUMP OF CHICKEN : Hello, world! / コロニー (期間限定 ...
https://www.amazon.co.jp/Hello-world-%E3%82%B3%E3%83%AD%E3%83%8B%E3%83%BC-%E6%9C%9F%E9%96%93%E9%99%90%E5%AE%9A%E7%9B%A4-CHICKEN/dp/B00U6WSG0I
Hello, world! / コロニー (期間限定盤)] BUMP OF CHICKEN - CD・レコードの購入はオンライン通販アマゾン公式サイトで。お急ぎ便ご利用で当日・翌日にお届け。
7 「“Hello, world.”」紹介ページ|ニトロプラス Nitroplus
https://www.nitroplus.co.jp/pc/lineup/into_04/special.html
mstory. "Hello,world." LOADING. LOADING.. LOADING... lambda-----0.00sec. delta----------0.00sec. theta-------0.00sec. alpha-------0.00sec. グローバルネットワークに接続中… “Hello,
world.”の物語の内容を検出。 最終更新日 05.11.04. “Hello, world.
8 「“Hello, world.”」紹介ページ|ニトロプラス Nitroplus
https://www.nitroplus.co.jp/pc/lineup/into_04/
LOADING. %. 音. ※音声が出ます。ご注意ください。 sound/mov_bgm01.mp3. plaing. completed. end. ボクはロボットだ。 人間の感情を調査するために“HIKARI”によって作られた。 命令を遂行するためだけの存在。 A.D.2020. TOKYO. 「ああ、急停止は ...
9 Hello,world! BUMP OF CHICKEN 歌詞情報 - 歌ネットモバイル
http://sp.uta-net.com/search/kashi.php?TID=184429
2015/04/22 - Hello,world!(BUMP OF CHICKEN)の歌詞:扉開けば捻れた昼の夜.
10 BUMP OF CHICKEN | Hello,world!/ コロニー
http://www.bumpofchicken.com/helloworld_colony/
BUMP OF CHICKENにとって2年7カ月ぶりとなるニューシングル「Hello,world! / コロニー」が2015年4月22日に発売。
$ brew install googler
Result:
==> Auto-updated Homebrew!
Updated Homebrew from 54884cd to 2818156.
Updated 1 tap (homebrew/core).
==> New Formulae
zsh-git-prompt
==> Updated Formulae
appscale-tools consul dockutil glm ios-deploy logentries ponyc serf
artifactory curl fontconfig h2o libstrophe pdnsrec scour
==> Deleted Formulae
jing
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Using the sandbox
==> Downloading https://github.com/jarun/googler/archive/v2.7.tar.gz
==> Downloading from https://codeload.github.com/jarun/googler/tar.gz/v2.7
######################################################################## 100.0%
==> Downloading https://github.com/jarun/googler/commit/6152bd3.patch
######################################################################## 100.0%
==> Patching
==> Applying 6152bd3.patch
patching file Makefile
==> make disable-self-upgrade
==> make install PREFIX=/usr/local/Cellar/googler/2.7
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/googler/2.7: 10 files, 159K, built in 8 seconds
Command:
$ googler hello world
Result:
1 Hello World(ハローワールド) : J-WAVE 81.3 FM RADIO
http://www.j-wave.co.jp/original/helloworld/
DJ TAROとハリー杉山がさまざまな流行を多角的に追いかける新感覚のエンターテインメントラジオ番組!Ustreamでもスタジオの様子を配信中.
2 Hello world - Wikipedia
https://ja.wikipedia.org/wiki/Hello_world
Hello world(ハロー・ワールド)とは、画面上(標準出力)に文字列(値)を出力する非常に簡単なプログラムで扱われる文字列であり、ひいてはそのプログラム全体を指す。 目次. [非表示]. 1 概要; 2 初出; 3 関連項目; 4 外部リンク. 概要[編集]. 大抵のプログラミング ...
3 BUMP OF CHICKEN「Hello,world!」 - Duration - YouTube
https://www.youtube.com/watch?v=rOU4YiuaxAM
BUMP OF CHICKEN「Hello,world! / コロニー」http://amzn.to/1cUREVd 2015.04.22 (wed ...
4 Hello,world! BUMP OF CHICKEN - 歌詞タイム
http://www.kasi-time.com/item-75660.html
歌手:BUMP OF CHICKEN 作詞:Motoo Fujiwara 作曲:Motoo Fujiwara 血界戦線に関連している曲です 歌い出し:扉開けば 捻れた昼の夜昨日どうやって帰った 体だけが確かおはよう これからまた迷子の続き見慣れた知らない 景色の中でもう.
5 Hello Worldとは (ハローワールドとは) [単語記事] - ニコニコ大百科
http://dic.nicovideo.jp/a/hello%20world
曖昧さ回避 Hello Worldとは、ニコニコ動画で以下の作品につけられるタグである。 卑屈Pのオリジナル曲、【巡音ルカ】ハローワールド【オリジナル】 ゆちゃPのオリジナル曲、【鏡音...
6 Amazon.co.jp: BUMP OF CHICKEN : Hello, world! / コロニー (期間限定 ...
https://www.amazon.co.jp/Hello-world-%E3%82%B3%E3%83%AD%E3%83%8B%E3%83%BC-%E6%9C%9F%E9%96%93%E9%99%90%E5%AE%9A%E7%9B%A4-CHICKEN/dp/B00U6WSG0I
Hello, world! / コロニー (期間限定盤)] BUMP OF CHICKEN - CD・レコードの購入はオンライン通販アマゾン公式サイトで。お急ぎ便ご利用で当日・翌日にお届け。
7 「“Hello, world.”」紹介ページ|ニトロプラス Nitroplus
https://www.nitroplus.co.jp/pc/lineup/into_04/special.html
mstory. "Hello,world." LOADING. LOADING.. LOADING... lambda-----0.00sec. delta----------0.00sec. theta-------0.00sec. alpha-------0.00sec. グローバルネットワークに接続中… “Hello,
world.”の物語の内容を検出。 最終更新日 05.11.04. “Hello, world.
8 「“Hello, world.”」紹介ページ|ニトロプラス Nitroplus
https://www.nitroplus.co.jp/pc/lineup/into_04/
LOADING. %. 音. ※音声が出ます。ご注意ください。 sound/mov_bgm01.mp3. plaing. completed. end. ボクはロボットだ。 人間の感情を調査するために“HIKARI”によって作られた。 命令を遂行するためだけの存在。 A.D.2020. TOKYO. 「ああ、急停止は ...
9 Hello,world! BUMP OF CHICKEN 歌詞情報 - 歌ネットモバイル
http://sp.uta-net.com/search/kashi.php?TID=184429
2015/04/22 - Hello,world!(BUMP OF CHICKEN)の歌詞:扉開けば捻れた昼の夜.
10 BUMP OF CHICKEN | Hello,world!/ コロニー
http://www.bumpofchicken.com/helloworld_colony/
BUMP OF CHICKENにとって2年7カ月ぶりとなるニューシングル「Hello,world! / コロニー」が2015年4月22日に発売。
Wednesday, September 14, 2016
Tuesday, September 13, 2016
macOS Sierra: Bash Version
Command:
$ bash --version
Result:
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)
Copyright (C) 2007 Free Software Foundation, Inc.
$ bash --version
Result:
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)
Copyright (C) 2007 Free Software Foundation, Inc.
Ubuntu: Bash Version
Command:
$ bash --version
Result:
GNU bash, version 4.3.46(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ bash --version
Result:
GNU bash, version 4.3.46(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
macOS Sierra: Installing Macvim with Lua
Command:
$ brew install macvim --with-lua
Result:
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for macvim: cscope
==> Installing macvim dependency: cscope
==> Downloading https://homebrew.bintray.com/bottles/cscope-15.8b.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cscope-15.8b.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/cscope/15.8b: 10 files, 714K
==> Installing macvim
==> Using the sandbox
==> Downloading https://github.com/macvim-dev/macvim/archive/snapshot-108.tar.gz
==> Downloading from https://codeload.github.com/macvim-dev/macvim/tar.gz/snapshot-108
######################################################################## 100.0%
==> ./configure --with-features=huge --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-rubyinterp --enable-tclinterp --with-tlib=ncurses --with-compiledby=Ho
==> make
==> Caveats
.app bundles were installed.
Run `brew linkapps macvim` to symlink these to /Applications.
==> Summary
🍺 /usr/local/Cellar/macvim/7.4-108: 2,099 files, 33.5M, built in 1 minute 47 seconds
Command:
$ mvim --version | grep lua
Result:
+dialog_con_gui +lua +rightleft +writebackup
Linking: clang -L. -L/usr/local/lib -L. -L/usr/local/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -framework CoreFoundation -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon -lm -lncurses -liconv -framework Cocoa -L/usr/local/opt/lua/lib -llua -fstack-protector -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl -framework Python -framework Ruby
$ brew install macvim --with-lua
Result:
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for macvim: cscope
==> Installing macvim dependency: cscope
==> Downloading https://homebrew.bintray.com/bottles/cscope-15.8b.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cscope-15.8b.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/cscope/15.8b: 10 files, 714K
==> Installing macvim
==> Using the sandbox
==> Downloading https://github.com/macvim-dev/macvim/archive/snapshot-108.tar.gz
==> Downloading from https://codeload.github.com/macvim-dev/macvim/tar.gz/snapshot-108
######################################################################## 100.0%
==> ./configure --with-features=huge --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-rubyinterp --enable-tclinterp --with-tlib=ncurses --with-compiledby=Ho
==> make
==> Caveats
.app bundles were installed.
Run `brew linkapps macvim` to symlink these to /Applications.
==> Summary
🍺 /usr/local/Cellar/macvim/7.4-108: 2,099 files, 33.5M, built in 1 minute 47 seconds
Command:
$ mvim --version | grep lua
Result:
+dialog_con_gui +lua +rightleft +writebackup
Linking: clang -L. -L/usr/local/lib -L. -L/usr/local/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -framework CoreFoundation -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon -lm -lncurses -liconv -framework Cocoa -L/usr/local/opt/lua/lib -llua -fstack-protector -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl -framework Python -framework Ruby
macOS Sierra: Vim: Installing Lua Required for NeoBundle (Plug-in Manager): Fail
Command:
$ vim --version | grep lua
Result:
+dialog_con -lua -rightleft +windows
Command:
$ brew install vim --with-lua
Result:
==> Auto-updated Homebrew!
Updated Homebrew from 4fb691e to 5a264cf.
Updated 2 taps (homebrew/core, homebrew/python).
==> New Formulae
hashcat httpstat tldr
==> Updated Formulae
afl-fuzz cli53 format-udf homebrew/python/h5py macvim pam_yubico svtplay-dl wireshark
antigen collectd freetype ✔ hub mkvtoolnix planck swagger-codegen youtube-dl
apache-flink cryptopp gd ibex mldonkey pre-commit texinfo
autojump dropbear gnutls imagemagick mysql prometheus tile38
buku etcd gron jenkins nghttp2 protobuf vert.x
carthage fabio gtk+ kapacitor nodeenv roswell vim
cattle folly h2o libbluray noti shadowsocks-libev voms
chromedriver fontconfig hadoop libdrawtext notmuch simple-tiles watchman
==> Renamed Formulae
sonar -> sonarqube
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for vim: lua
==> Installing vim dependency: lua
==> Downloading https://homebrew.bintray.com/bottles/lua-5.2.4_4.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring lua-5.2.4_4.sierra.bottle.tar.gz
==> Caveats
Please be aware due to the way Luarocks is designed any binaries installed
via Luarocks-5.2 AND 5.1 will overwrite each other in /usr/local/bin.
This is, for now, unavoidable. If this is troublesome for you, you can build
rocks with the `--tree=` command to a special, non-conflicting location and
then add that to your `$PATH`.
==> Summary
🍺 /usr/local/Cellar/lua/5.2.4_4: 143 files, 697.4K
==> Installing vim
==> Using the sandbox
==> Downloading https://github.com/vim/vim/archive/v8.0.0002.tar.gz
==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.0.0002
######################################################################## 100.0%
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.0.0002/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --with-compiledby=Homebrew --enable-l
==> make
==> make install prefix=/usr/local/Cellar/vim/8.0.0002 STRIP=/usr/bin/true
🍺 /usr/local/Cellar/vim/8.0.0002: 1,703 files, 23.2M, built in 1 minute 23 seconds
Command:
$ vim --version | grep lua
Result:
+dialog_con -lua -rightleft +windows
$ vim --version | grep lua
Result:
+dialog_con -lua -rightleft +windows
Command:
$ brew install vim --with-lua
Result:
==> Auto-updated Homebrew!
Updated Homebrew from 4fb691e to 5a264cf.
Updated 2 taps (homebrew/core, homebrew/python).
==> New Formulae
hashcat httpstat tldr
==> Updated Formulae
afl-fuzz cli53 format-udf homebrew/python/h5py macvim pam_yubico svtplay-dl wireshark
antigen collectd freetype ✔ hub mkvtoolnix planck swagger-codegen youtube-dl
apache-flink cryptopp gd ibex mldonkey pre-commit texinfo
autojump dropbear gnutls imagemagick mysql prometheus tile38
buku etcd gron jenkins nghttp2 protobuf vert.x
carthage fabio gtk+ kapacitor nodeenv roswell vim
cattle folly h2o libbluray noti shadowsocks-libev voms
chromedriver fontconfig hadoop libdrawtext notmuch simple-tiles watchman
==> Renamed Formulae
sonar -> sonarqube
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for vim: lua
==> Installing vim dependency: lua
==> Downloading https://homebrew.bintray.com/bottles/lua-5.2.4_4.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring lua-5.2.4_4.sierra.bottle.tar.gz
==> Caveats
Please be aware due to the way Luarocks is designed any binaries installed
via Luarocks-5.2 AND 5.1 will overwrite each other in /usr/local/bin.
This is, for now, unavoidable. If this is troublesome for you, you can build
rocks with the `--tree=` command to a special, non-conflicting location and
then add that to your `$PATH`.
==> Summary
🍺 /usr/local/Cellar/lua/5.2.4_4: 143 files, 697.4K
==> Installing vim
==> Using the sandbox
==> Downloading https://github.com/vim/vim/archive/v8.0.0002.tar.gz
==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.0.0002
######################################################################## 100.0%
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.0.0002/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --with-compiledby=Homebrew --enable-l
==> make
==> make install prefix=/usr/local/Cellar/vim/8.0.0002 STRIP=/usr/bin/true
🍺 /usr/local/Cellar/vim/8.0.0002: 1,703 files, 23.2M, built in 1 minute 23 seconds
Command:
$ vim --version | grep lua
Result:
+dialog_con -lua -rightleft +windows
macOS Sierra: Vim: Installing NeoBundle (Plug-in Manager)
Command:
$ cat installNeoBundle.sh
Result:
#!/bin/sh
if type curl; then
:
else
echo 'Please install curl or update your path to include the curl executable!'
exit 1
fi
tmpfile=`mktemp`
curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh > $tmpfile
sh $tmpfile
Command:
$ sh installNeoBundle.sh
Result:
curl is /usr/bin/curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4088 100 4088 0 0 3268 0 0:00:01 0:00:01 --:--:-- 3267
/Users/USERNAME/.vim/bundle/neobundle.vim
/Users/USERNAME/.config/nvim/bundle/neobundle.vim
git is /usr/local/bin/git
Begin fetching NeoBundle...
Cloning into '/Users/USERNAME/.vim/bundle/neobundle.vim'...
remote: Counting objects: 9188, done.
remote: Total 9188 (delta 0), reused 0 (delta 0), pack-reused 9188
Receiving objects: 100% (9188/9188), 2.23 MiB | 486.00 KiB/s, done.
Resolving deltas: 100% (4453/4453), done.
Checking connectivity... done.
Done.
Please add the following settings for NeoBundle to the top of your .vimrc file:
"NeoBundle Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/Users/USERNAME/.vim/bundle/neobundle.vim/
" Required:
call neobundle#begin(expand('/Users/USERNAME/.vim/bundle'))
" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'
" Add or remove your Bundles here:
NeoBundle 'Shougo/neosnippet.vim'
NeoBundle 'Shougo/neosnippet-snippets'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'flazz/vim-colorschemes'
" You can specify revision/branch/tag.
NeoBundle 'Shougo/vimshell', { 'rev' : '3787e5' }
" Required:
call neobundle#end()
" Required:
filetype plugin indent on
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck
"End NeoBundle Scripts-------------------------
Done.
Complete setup NeoBundle!
$ cat installNeoBundle.sh
Result:
#!/bin/sh
if type curl; then
:
else
echo 'Please install curl or update your path to include the curl executable!'
exit 1
fi
tmpfile=`mktemp`
curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh > $tmpfile
sh $tmpfile
Command:
$ sh installNeoBundle.sh
Result:
curl is /usr/bin/curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4088 100 4088 0 0 3268 0 0:00:01 0:00:01 --:--:-- 3267
/Users/USERNAME/.vim/bundle/neobundle.vim
/Users/USERNAME/.config/nvim/bundle/neobundle.vim
git is /usr/local/bin/git
Begin fetching NeoBundle...
Cloning into '/Users/USERNAME/.vim/bundle/neobundle.vim'...
remote: Counting objects: 9188, done.
remote: Total 9188 (delta 0), reused 0 (delta 0), pack-reused 9188
Receiving objects: 100% (9188/9188), 2.23 MiB | 486.00 KiB/s, done.
Resolving deltas: 100% (4453/4453), done.
Checking connectivity... done.
Done.
Please add the following settings for NeoBundle to the top of your .vimrc file:
"NeoBundle Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/Users/USERNAME/.vim/bundle/neobundle.vim/
" Required:
call neobundle#begin(expand('/Users/USERNAME/.vim/bundle'))
" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'
" Add or remove your Bundles here:
NeoBundle 'Shougo/neosnippet.vim'
NeoBundle 'Shougo/neosnippet-snippets'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'flazz/vim-colorschemes'
" You can specify revision/branch/tag.
NeoBundle 'Shougo/vimshell', { 'rev' : '3787e5' }
" Required:
call neobundle#end()
" Required:
filetype plugin indent on
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck
"End NeoBundle Scripts-------------------------
Done.
Complete setup NeoBundle!
macOS Sierra: Vim Version
Command:
$ vim --version
Result:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 1 2016 19:37:21)
Included patches: 1-898
Compiled by root@apple.com
Normal version without GUI. Features included (+) or not (-):
+acl -farsi -mouse_netterm +syntax
-arabic +file_in_path -mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float -mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
+builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent -gettext -mzscheme +textobjects
-clientserver -hangul_input +netbeans_intg +title
-clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info -keymap +postscript +virtualedit
+comments -langmap +printer +visual
-conceal +libcall -profile +visualextra
+cryptv +linebreak +python/dyn +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con -lua -rightleft +windows
+diff +menu +ruby/dyn +writebackup
+digraphs +mksession +scrollbind -X11
-dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent -xim
-emacs_tags -mouseshape -sniff -xsmp
+eval -mouse_dec +startuptime -xterm_clipboard
+ex_extra -mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop -xpm
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L/usr/local/lib -o vim -lm -lncurses -liconv
$ vim --version
Result:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 1 2016 19:37:21)
Included patches: 1-898
Compiled by root@apple.com
Normal version without GUI. Features included (+) or not (-):
+acl -farsi -mouse_netterm +syntax
-arabic +file_in_path -mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float -mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
+builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent -gettext -mzscheme +textobjects
-clientserver -hangul_input +netbeans_intg +title
-clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info -keymap +postscript +virtualedit
+comments -langmap +printer +visual
-conceal +libcall -profile +visualextra
+cryptv +linebreak +python/dyn +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con -lua -rightleft +windows
+diff +menu +ruby/dyn +writebackup
+digraphs +mksession +scrollbind -X11
-dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent -xim
-emacs_tags -mouseshape -sniff -xsmp
+eval -mouse_dec +startuptime -xterm_clipboard
+ex_extra -mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop -xpm
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L/usr/local/lib -o vim -lm -lncurses -liconv
Ubuntu: Vim Version
Command:
$ vim --version
Result:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 08 2016 11:38:28)
Included patches: 1-1689
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by pkg-vim-maintainers@lists.alioth.debian.org
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +tag_binary
+arabic +file_in_path +mouse_sgr +tag_old_static
+autocmd +find_in_path -mouse_sysmouse -tag_any_white
-balloon_eval +float +mouse_urxvt -tcl
-browse +folding +mouse_xterm +terminfo
++builtin_terms -footer +multi_byte +termresponse
+byte_offset +fork() +multi_lang +textobjects
+channel +gettext -mzscheme +timers
+cindent -hangul_input +netbeans_intg +title
-clientserver +iconv +packages -toolbar
-clipboard +insert_expand +path_extra +user_commands
+cmdline_compl +job -perl +vertsplit
+cmdline_hist +jumplist +persistent_undo +virtualedit
+cmdline_info +keymap +postscript +visual
+comments +langmap +printer +visualextra
+conceal +libcall +profile +viminfo
+cryptv +linebreak -python +vreplace
+cscope +lispindent -python3 +wildignore
+cursorbind +listcmds +quickfix +wildmenu
+cursorshape +localmap +reltime +windows
+dialog_con -lua +rightleft +writebackup
+diff +menu -ruby -X11
+digraphs +mksession +scrollbind -xfontset
-dnd +modify_fname +signs -xim
-ebcdic +mouse +smartindent -xsmp
+emacs_tags -mouseshape +startuptime -xterm_clipboard
+eval +mouse_dec +statusline -xterm_save
+ex_extra +mouse_gpm -sun_workshop -xpm
+extra_search -mouse_jsbterm +syntax
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -Wdate-time -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl
$ vim --version
Result:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 08 2016 11:38:28)
Included patches: 1-1689
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by pkg-vim-maintainers@lists.alioth.debian.org
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +tag_binary
+arabic +file_in_path +mouse_sgr +tag_old_static
+autocmd +find_in_path -mouse_sysmouse -tag_any_white
-balloon_eval +float +mouse_urxvt -tcl
-browse +folding +mouse_xterm +terminfo
++builtin_terms -footer +multi_byte +termresponse
+byte_offset +fork() +multi_lang +textobjects
+channel +gettext -mzscheme +timers
+cindent -hangul_input +netbeans_intg +title
-clientserver +iconv +packages -toolbar
-clipboard +insert_expand +path_extra +user_commands
+cmdline_compl +job -perl +vertsplit
+cmdline_hist +jumplist +persistent_undo +virtualedit
+cmdline_info +keymap +postscript +visual
+comments +langmap +printer +visualextra
+conceal +libcall +profile +viminfo
+cryptv +linebreak -python +vreplace
+cscope +lispindent -python3 +wildignore
+cursorbind +listcmds +quickfix +wildmenu
+cursorshape +localmap +reltime +windows
+dialog_con -lua +rightleft +writebackup
+diff +menu -ruby -X11
+digraphs +mksession +scrollbind -xfontset
-dnd +modify_fname +signs -xim
-ebcdic +mouse +smartindent -xsmp
+emacs_tags -mouseshape +startuptime -xterm_clipboard
+eval +mouse_dec +statusline -xterm_save
+ex_extra +mouse_gpm -sun_workshop -xpm
+extra_search -mouse_jsbterm +syntax
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -Wdate-time -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl
Ubuntu: Vim and vi's True Identity
Command:
$ ls -l /usr/bin/vim
Result:
lrwxrwxrwx 1 root root 21 May 15 13:42 /usr/bin/vim -> /etc/alternatives/vim
Command:
$ ls -l /usr/bin/vi
Result:
lrwxrwxrwx 1 root root 20 May 15 13:37 /usr/bin/vi -> /etc/alternatives/vi
Command:
$ ls -l /etc/alternatives/vim
Result:
lrwxrwxrwx 1 root root 18 May 15 13:42 /etc/alternatives/vim -> /usr/bin/vim.basic
Command:
$ ls -l /etc/alternatives/vi
Result:
lrwxrwxrwx 1 root root 18 May 15 13:42 /etc/alternatives/vi -> /usr/bin/vim.basic
$ ls -l /usr/bin/vim
Result:
lrwxrwxrwx 1 root root 21 May 15 13:42 /usr/bin/vim -> /etc/alternatives/vim
Command:
$ ls -l /usr/bin/vi
Result:
lrwxrwxrwx 1 root root 20 May 15 13:37 /usr/bin/vi -> /etc/alternatives/vi
Command:
$ ls -l /etc/alternatives/vim
Result:
lrwxrwxrwx 1 root root 18 May 15 13:42 /etc/alternatives/vim -> /usr/bin/vim.basic
Command:
$ ls -l /etc/alternatives/vi
Result:
lrwxrwxrwx 1 root root 18 May 15 13:42 /etc/alternatives/vi -> /usr/bin/vim.basic
Monday, September 12, 2016
Sunday, September 11, 2016
sed: Regular Expression Character Classes Behavior: Examples
Command:
$ echo {0..1}{e..h}{E..H}
Result:
0eE 0eF 0eG 0eH 0fE 0fF 0fG 0fH 0gE 0gF 0gG 0gH 0hE 0hF 0hG 0hH 1eE 1eF 1eG 1eH 1fE 1fF 1fG 1fH 1gE 1gF 1gG 1gH 1hE 1hF 1hG 1hH
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:alnum:]]/*/g'
Result:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:alpha:]]/*/g'
Result:
0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1**
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:blank:]]/*/g'
Result:
0eE*0eF*0eG*0eH*0fE*0fF*0fG*0fH*0gE*0gF*0gG*0gH*0hE*0hF*0hG*0hH*1eE*1eF*1eG*1eH*1fE*1fF*1fG*1fH*1gE*1gF*1gG*1gH*1hE*1hF*1hG*1hH
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:cntrl:]]/*/g'
Result:
0eE 0eF 0eG 0eH 0fE 0fF 0fG 0fH 0gE 0gF 0gG 0gH 0hE 0hF 0hG 0hH 1eE 1eF 1eG 1eH 1fE 1fF 1fG 1fH 1gE 1gF 1gG 1gH 1hE 1hF 1hG 1hH
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:digit:]]/*/g'
Result:
*eE *eF *eG *eH *fE *fF *fG *fH *gE *gF *gG *gH *hE *hF *hG *hH *eE *eF *eG *eH *fE *fF *fG *fH *gE *gF *gG *gH *hE *hF *hG *hH
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:graph:]]/*/g'
Result:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:lower:]]/*/g'
Result:
0*E 0*F 0*G 0*H 0*E 0*F 0*G 0*H 0*E 0*F 0*G 0*H 0*E 0*F 0*G 0*H 1*E 1*F 1*G 1*H 1*E 1*F 1*G 1*H 1*E 1*F 1*G 1*H 1*E 1*F 1*G 1*H
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:print:]]/*/g'
Result:
*******************************************************************************************************************************
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:punct:]]/*/g'
Result:
0eE 0eF 0eG 0eH 0fE 0fF 0fG 0fH 0gE 0gF 0gG 0gH 0hE 0hF 0hG 0hH 1eE 1eF 1eG 1eH 1fE 1fF 1fG 1fH 1gE 1gF 1gG 1gH 1hE 1hF 1hG 1hH
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:space:]]/*/g'
Result:
0eE*0eF*0eG*0eH*0fE*0fF*0fG*0fH*0gE*0gF*0gG*0gH*0hE*0hF*0hG*0hH*1eE*1eF*1eG*1eH*1fE*1fF*1fG*1fH*1gE*1gF*1gG*1gH*1hE*1hF*1hG*1hH
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:upper:]]/*/g'
Result:
0e* 0e* 0e* 0e* 0f* 0f* 0f* 0f* 0g* 0g* 0g* 0g* 0h* 0h* 0h* 0h* 1e* 1e* 1e* 1e* 1f* 1f* 1f* 1f* 1g* 1g* 1g* 1g* 1h* 1h* 1h* 1h*
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:xdigit:]]/*/g'
Result:
*** *** **G **H *** *** **G **H *g* *g* *gG *gH *h* *h* *hG *hH *** *** **G **H *** *** **G **H *g* *g* *gG *gH *h* *h* *hG *hH
$ echo {0..1}{e..h}{E..H}
Result:
0eE 0eF 0eG 0eH 0fE 0fF 0fG 0fH 0gE 0gF 0gG 0gH 0hE 0hF 0hG 0hH 1eE 1eF 1eG 1eH 1fE 1fF 1fG 1fH 1gE 1gF 1gG 1gH 1hE 1hF 1hG 1hH
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:alnum:]]/*/g'
Result:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:alpha:]]/*/g'
Result:
0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 0** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1** 1**
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:blank:]]/*/g'
Result:
0eE*0eF*0eG*0eH*0fE*0fF*0fG*0fH*0gE*0gF*0gG*0gH*0hE*0hF*0hG*0hH*1eE*1eF*1eG*1eH*1fE*1fF*1fG*1fH*1gE*1gF*1gG*1gH*1hE*1hF*1hG*1hH
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:cntrl:]]/*/g'
Result:
0eE 0eF 0eG 0eH 0fE 0fF 0fG 0fH 0gE 0gF 0gG 0gH 0hE 0hF 0hG 0hH 1eE 1eF 1eG 1eH 1fE 1fF 1fG 1fH 1gE 1gF 1gG 1gH 1hE 1hF 1hG 1hH
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:digit:]]/*/g'
Result:
*eE *eF *eG *eH *fE *fF *fG *fH *gE *gF *gG *gH *hE *hF *hG *hH *eE *eF *eG *eH *fE *fF *fG *fH *gE *gF *gG *gH *hE *hF *hG *hH
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:graph:]]/*/g'
Result:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:lower:]]/*/g'
Result:
0*E 0*F 0*G 0*H 0*E 0*F 0*G 0*H 0*E 0*F 0*G 0*H 0*E 0*F 0*G 0*H 1*E 1*F 1*G 1*H 1*E 1*F 1*G 1*H 1*E 1*F 1*G 1*H 1*E 1*F 1*G 1*H
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:print:]]/*/g'
Result:
*******************************************************************************************************************************
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:punct:]]/*/g'
Result:
0eE 0eF 0eG 0eH 0fE 0fF 0fG 0fH 0gE 0gF 0gG 0gH 0hE 0hF 0hG 0hH 1eE 1eF 1eG 1eH 1fE 1fF 1fG 1fH 1gE 1gF 1gG 1gH 1hE 1hF 1hG 1hH
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:space:]]/*/g'
Result:
0eE*0eF*0eG*0eH*0fE*0fF*0fG*0fH*0gE*0gF*0gG*0gH*0hE*0hF*0hG*0hH*1eE*1eF*1eG*1eH*1fE*1fF*1fG*1fH*1gE*1gF*1gG*1gH*1hE*1hF*1hG*1hH
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:upper:]]/*/g'
Result:
0e* 0e* 0e* 0e* 0f* 0f* 0f* 0f* 0g* 0g* 0g* 0g* 0h* 0h* 0h* 0h* 1e* 1e* 1e* 1e* 1f* 1f* 1f* 1f* 1g* 1g* 1g* 1g* 1h* 1h* 1h* 1h*
Command:
$ echo {0..1}{e..h}{E..H} | sed 's/[[:xdigit:]]/*/g'
Result:
*** *** **G **H *** *** **G **H *g* *g* *gG *gH *h* *h* *hG *hH *** *** **G **H *** *** **G **H *g* *g* *gG *gH *h* *h* *hG *hH
ラベル:
Regular expression,
sed,
正規表現
Subscribe to:
Posts (Atom)