2022 $ redisc hget camp-4830 "offer_click_tl"|nl
1 https://openapi.youku.com/router/rest.json?idfa=${idfa}&ip=${ip}&company_name=07100a49f0c6c79e&appid=1014945607&callbackurl=http%3A%2F%2Fwww.mobcastlead.com%2Fevent%3Fclickid%3D${clickid}%26source%3Dyouku%26event_name%3Dfopen&opensysparams={"action":"youku.api.idfa.notification.click","client_id":"e8T3GcrdLVd7iMy4","timestamp":${click_ts10},"access_token":"","version":"3.0","sign_method":"md5","sign":"{youku_sign}"}
从bash复制到本地是一行
其实根本原因在于 ,ng上复制bash或者redisc下的结果到本地都是一行
但是本地mobaxterm无论bash还是redisc复制出来都是多行,需要再次合并!
而且在ng上,bash取到结果后:
redisc hget camp-4830 "offer_click_tl"
"https://openapi.youku.com/router/rest.json?idfa=${idfa}&ip=${ip}&company_name=07100a49f0c6c79e&appid=1014945607&callbackurl=http%3A%2F%2Fwww.mobcastlead.com%2Fevent%3Fclickid%3D${clickid}%26source%3Dyouku%26event_name%3Dfopen&opensysparams={"action":"youku.api.idfa.notification.click","client_id":"e8T3GcrdLVd7iMy4","timestamp":${click_ts10},"access_token":"","version":"3.0","sign_method":"md5","sign":"{youku_sign}"}"
但是管道给 nl就自动去掉了 转义字符——这就是我要的:
redisc hget camp-4830 "offer_click_tl"|nl
1 https://openapi.youku.com/router/rest.json?idfa=${idfa}&ip=${ip}&company_name=07100a49f0c6c79e&appid=1014945607&callbackurl=http%3A%2F%2Fwww.mobcastlead.com%2Fevent%3Fclickid%3D${clickid}%26source%3Dyouku%26event_name%3Dfopen&opensysparams={"action":"youku.api.idfa.notification.click","client_id":"e8T3GcrdLVd7iMy4","timestamp":${click_ts10},"access_token":"","version":"3.0","sign_method":"md5","sign":"{youku_sign}"}