如何將變數裡的數字帶入字串 - Linux

By Kyle
at 2017-10-30T14:40
at 2017-10-30T14:40
Table of Contents
我有一個變數a有數字650
$a=650
但我想把數字帶入到字串裡要如何帶入?
curl -d 'a=8945231&text=$a' http://www.text.com
'%d' % ($a) 類似這樣?
感謝好心人給我關鍵字 以下是解法
eval curl -d 'a=8945231\&text=$a' http://www.text.com
--
$a=650
但我想把數字帶入到字串裡要如何帶入?
curl -d 'a=8945231&text=$a' http://www.text.com
'%d' % ($a) 類似這樣?
感謝好心人給我關鍵字 以下是解法
eval curl -d 'a=8945231\&text=$a' http://www.text.com
--
Tags:
Linux
All Comments

By Madame
at 2017-10-31T22:52
at 2017-10-31T22:52

By Megan
at 2017-11-03T02:28
at 2017-11-03T02:28

By Sarah
at 2017-11-05T21:55
at 2017-11-05T21:55

By Xanthe
at 2017-11-07T03:29
at 2017-11-07T03:29

By Hedy
at 2017-11-08T05:21
at 2017-11-08T05:21

By Elvira
at 2017-11-12T11:42
at 2017-11-12T11:42

By Todd Johnson
at 2017-11-14T02:45
at 2017-11-14T02:45

By Delia
at 2017-11-18T03:04
at 2017-11-18T03:04

By Audriana
at 2017-11-21T10:34
at 2017-11-21T10:34

By Megan
at 2017-11-21T21:48
at 2017-11-21T21:48

By Leila
at 2017-11-26T15:24
at 2017-11-26T15:24

By Jessica
at 2017-11-30T22:17
at 2017-11-30T22:17

By Harry
at 2017-12-02T06:06
at 2017-12-02T06:06

By Donna
at 2017-12-03T00:28
at 2017-12-03T00:28

By Tristan Cohan
at 2017-12-04T20:14
at 2017-12-04T20:14
Related Posts
du -sh * 怎麼只顯示xxG以上的資料?

By Hamiltion
at 2017-10-30T12:20
at 2017-10-30T12:20
請問回傳的問題?

By Linda
at 2017-10-30T01:24
at 2017-10-30T01:24
遇到lmstat:command not found

By Gary
at 2017-10-29T19:36
at 2017-10-29T19:36
如何使用FreeRADIUS實做EAP-PWD加密連線

By Mary
at 2017-10-29T18:50
at 2017-10-29T18:50
ubuntu新手備份請教

By Elma
at 2017-10-28T18:34
at 2017-10-28T18:34