curl輸出轉變數 - Linux
By Michael
at 2020-01-07T15:01
at 2020-01-07T15:01
Table of Contents
#!/bin/bash
url=ifconfig.me
curl $url
echo $a
想把curl 的結果變成一個變數 a
放在後面的 echo $a才顯示
不知道這該怎麼撰寫呢?
--
sent from my IBM 5100
--
Tags:
Linux
All Comments
By Edith
at 2020-01-09T00:20
at 2020-01-09T00:20
Related Posts
請教換行符號取代的問題
By Joe
at 2020-01-06T19:58
at 2020-01-06T19:58
Ubuntu server 18.04的iptables怪怪的
By Anthony
at 2020-01-04T20:08
at 2020-01-04T20:08
SSH 吃光CPU資源 系統變慢
By Elvira
at 2020-01-04T12:23
at 2020-01-04T12:23
無法開機(疑似grub問題)
By Robert
at 2020-01-03T16:36
at 2020-01-03T16:36
開機速度很慢
By Victoria
at 2020-01-01T20:56
at 2020-01-01T20:56