Reputation
Top tag
Next privilege 10 Rep.
Answer protected questions
Badges
4
Newest
 Commentator
Impact
~250 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Feb
4
awarded  Commentator
Feb
4
comment Grep value from json file
thanks. This worked. But this is also fetching other texts which is not intended. I am not putting the this in a seperate sed file, rather im putting 3rd line in a .sh file
Feb
4
awarded  Scholar
Feb
4
accepted Grep value from json file
Feb
4
comment Grep value from json file
[{"product_id":"Apple","publishName":"Fruit_01","productBuildId":"1234","revisio‌​‌​n":1,"platform":"Linux"}],[{"product_id":"Mango","publishName":"Fruit_02","prod‌​uc‌​tBuildId":"12345","revision":1,"platform":"Linux"}] I want to fetch "publishName" for say product_id "Apple"
Feb
4
comment Grep value from json file
thanks for this answer. As I see 'id' is made for number only. Can you show me how we can change this for something like below
Feb
4
comment Grep value from json file
I want to fetch "publishName" for say product_id "Apple".
Feb
4
comment Grep value from json file
[{"product_id":"Apple","publishName":"Fruit_01","productBuildId":"1234","revisio‌​n":1,"platform":"Linux"}],[{"product_id":"Mango","publishName":"Fruit_02","produc‌​tBuildId":"12345","revision":1,"platform":"Linux"}]
Feb
4
comment Grep value from json file
thanks for this answer. I need to put this in a .sh file. and I dont use any modules
Feb
4
comment Grep value from json file
thanks for this answer. But I am putting this in a .sh file.
Feb
4
comment Grep value from json file
how do I execute this? should I just enter the whole thing in the prompt? if so its not working.
Feb
4
comment Grep value from json file
I have all in 1 line.
Feb
4
comment Grep value from json file
I checked with my text file, the sed command here is not working, its displaying whole of file. Can you explain me on this command?
Feb
3
awarded  Student
Feb
3
asked Grep value from json file
Sep
24
awarded  Autobiographer