mongodb 如何更新 数据

stephen2017
  • 14
> db.lagou_cookie.find()
{ "_id" : ObjectId("5c21f6ab65adddf40b330fb3"), "cookie" : "user_trace_token=20180909010719-4eb82332-59f2-4979-b7ba-4a96de35eb40; _ga=GA1.2.1153938840.1536426437; LGUID=20180909010720-a5755fe0-b389-11e8-8ccd-525400f775ce; _qddaz=QD.wx1cg9.ftx1wj.jnl51m1t; JSESSIONID=ABAAABAAADEAAFIE6475DE07CCCE2D0833999916DC6AED6; utm_source=m_cf_seo_ald_wap; fromsite=\"\"; TG-TRACK-CODE=jobs_similar; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%2216628753458944-0ec2370b38b4a8-163b6953-1296000-16628753459972%22%2C%22%24device_id%22%3A%2216628753458944-0ec2370b38b4a8-163b6953-1296000-16628753459972%22%2C%22props%22%3A%7B%22%24latest_utm_source%22%3A%22m_cf_cpt_baidu_pc%22%2C%22%24latest_traffic_source_type%22%3A%22%E8%87%AA%E7%84%B6%E6%90%9C%E7%B4%A2%E6%B5%81%E9%87%8F%22%2C%22%24latest_referrer%22%3A%22https%3A%2F%2Fwww.baidu.com%2Flink%22%2C%22%24latest_referrer_host%22%3A%22www.baidu.com%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC%22%7D%7D; LG_LOGIN_USER_ID=119580125579ca5310588f19a43bd85f2ed246d511e8b671; _putrc=73B45C3A2AAE9C2E; login=true; unick=%E6%8B%89%E5%8B%BE%E7%94%A8%E6%88%B76572; showExpriedIndex=1; showExpriedCompanyHome=1; showExpriedMyPublish=1; hasDeliver=0; index_location_city=%E5%8C%97%E4%BA%AC; WEBTJ-ID=12252018%2C161612-167e46f847741d-04ce0d97f54b0f-163b6953-1296000-167e46f8478f5f; Hm_lvt_4233e74dff0ae5bd0a3d81c6ccf756e6=1545573586,1545573596,1545573658,1545725773; _gid=GA1.2.1277196703.1545725773; LGSID=20181225161615-591da9d9-081d-11e9-adf6-525400f775ce; PRE_UTM=m_cf_cpt_baidu_pc; PRE_HOST=www.baidu.com; PRE_SITE=https%3A%2F%2Fwww.baidu.com%2Fs%3Fwd%3Dlagou%26rsv_spt%3D1%26rsv_iqid%3D0xdc07c35c00006c96%26issp%3D1%26f%3D8%26rsv_bp%3D1%26rsv_idx%3D2%26ie%3Dutf-8%26rqlang%3Dcn%26tn%3Dbaiduhome_pg%26rsv_enter%3D1%26oq%3D%2525E5%2525BE%2525AE%2525E4%2525BF%2525A1%2525E7%2525BD%252591%2525E9%2525A1%2525B5%2525E7%252589%252588%26rsv_t%3D0295jTzb9ro7D3N0edY4HxkZBun1lNGRBZud%252FfeR0SzzRKBiKm5mcBMIv6q3jdnaEg47%26rsv_sug1%3D32%26rsv_sug7%3D100%26rsv_pq%3D99ac9f4000019d71%26rsv_sug3%3D23%26rsv_sug2%3D0%26inputT%3D2117022%26rsv_sug4%3D2117364; PRE_LAND=https%3A%2F%2Fwww.lagou.com%2Flp%2Fhtml%2Fcommon.html%3Futm_source%3Dm_cf_cpt_baidu_pc; gate_login_token=8baaffd2bc98be5e60d304c6459e7912e5e648e93a4c9d8a; Hm_lpvt_4233e74dff0ae5bd0a3d81c6ccf756e6=1545725827; LGRID=20181225161708-78dbcd63-081d-11e9-adf6-525400f775ce" }

现在我想更新这个cookie ,但是这个cookie 太长,每次都要复制那个cookie更新

有没有不需要复制那个cookie 更新的,如何操作

回复
阅读 2.5k
2 个回答

看不懂你的问题???

你的意思是在shell里不复制cookie字符串的内容是吗?
我不明白为什么不在SDE里做?

宣传栏