2017
04
25

tr コマンドは便利

最近知った便利なコマンド tr

tr - translate or delete characters



tr str1 str2
str1をstr2に変換する
例)
$ echo "cat" | tr 'c' 'r'
rat

$ echo "Uryyb jbeyq" | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' 'NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm'
Hello world

$ echo "Uryyb jbeyq" | tr 'A-Z' 'N-ZA-M' | tr 'a-z' 'n-za-m'
Hello world

コマンドひとつで換字できるので便利
以上
Comment



Only the blog author may view the comment.

[17]

Useful information. Fortunate me I discovered your website accidentally,
and I am shocked why this twist of fate didn't took place in advance!
I bookmarked it.

[23]

Wonderful blog! I found it while surfing around on Yahoo News.

Do you have any tips on how to get listed in Yahoo News?
I've been trying for a while but I never seem
to get there! Cheers

[24]

Glad to be one of several visitors on this amazing site :D.

[33]

Hello my loved one! I want to say that this post
is amazing, great written and include almost all important infos.

I would like to peer more posts like this.

[40]

Thanks for finally talking about >tr コマンドは便利 : 奇妙な風景 Unique Scene <Liked it!

[46]

You can certainly see your expertise in the work you write.
The world hopes for more passionate writers such as you who aren't afraid
to mention how they believe. At all times follow your heart.

[47]

Just what I was looking for, thank you for posting.

[51]

Wonderful blog! I found it while searching on Yahoo News.
Do you have any tips on how to get listed in Yahoo News?
I've been trying for a while but I never seem to get there!
Appreciate it

[52]

What's Going down i'm new to this, I stumbled upon this I have found It positively useful
and it has helped me out loads. I hope to
contribute & aid other customers like its aided me.
Good job.

[156]

I will right away grasp your rss as I can't in finding your e-mail subscription link or
e-newsletter service. Do you've any? Please permit me recognise in order that I may just subscribe.
Thanks.

[164] Comment is pending approval.

Comment is pending blog author's approval.

Trackback
Trackback URL

«  | HOME |  »

奇妙な風景 Unique Scene
<< >>

プロフィール


最新記事


最新コメント


最新トラックバック


月別アーカイブ


カテゴリ


スポンサード リンク


FC2カウンター


検索フォーム


RSSリンクの表示


リンク


ブロとも申請フォーム


QRコード