Skip to content

Tag: bash

Image upload using curl

I want to upload image to remote site using curl cli version, i browse several pages here, but not able to solve my problem. I log http header in firefox while uploading image: Answer The basic curlsyntax would be curl -F “image=@/yourPath/yourImageFile.jpg” ‘https://www.site.xxx/upload_pr…

U-Boot version extraction for comparision

I am trying to extract U-Boot version from its binary for comparison, consider that exact string what I want to search is as follow, so I wrote command with regex as follows, However I don’t see any output for that above command, I could make below command work which extracts version only by comparing v…

Get words from positions in string – Bash/Linux

I have the following string that I want to extract name and id from and store them in a variable. This is just an example, the list can be longer but they are separated the same way. The id’s in the string is freepbx and cidlookup, the names are NEWUPDATES and noauth. I’d like them to come out lik…