skip to Main Content

Mapping two json with jq and script bash

I have a json file list_values.json with array of json with an "origine" field : [ { "origine": "reason1", "identifiant": "1234_AAA" }, { "origine": "reason3", "identifiant": "5678_BBB" } ] I have mapping.json file with a list of predefined fields :…

VIEW QUESTION

scrape a file and delete lines with a certain range of numbers – Ubuntu

I am trying to scrape a file with content similar to this this: "addressString":"12366 NY","eId":"64174f8e42b7fdfb837f68b","hasImage":false,"Price":5800,"Name":Bernard Bernoulli,"headline":"nice Fiat 500, red, slight damage to left mirror" "addressString":"451 Citadel","eId":"sd3448e42b7368b","year":1976,"hasImage":true,"Price":12220,"Name":Edward Diego,"headline":"Mercedes SLX, no issues" "addressString":"1321 Bejing","eId":"3102ffdb837fssdff3","Price":350,"Name":Jet Li,"headline":"Dodge Viper, no engine, no tires, no windshield;…

VIEW QUESTION

Bash command mysql : escape single quote from variable

This command echo "mysql -u root nextcloud -Bse 'DELETE FROM oc_filecache WHERE path=""${FILE_PATH}"";'" will show that mysql -u root nextcloud -Bse 'DELETE FROM oc_filecache WHERE path="files_encryption/keys/files/xxx/xxxx/xxx L'AME/2xxxx/OC_DEFAULT_MODULE/master_x626.shareKey";' There is a single quote in the path. When i execute command, this…

VIEW QUESTION
Back To Top
Search