Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while IFS='' read -r line || [[ -n "$line" ]]; do
- url=$(echo $line | jq .url);
- url=${url%\?*};
- url="$url\"";
- echo $url;
- jq -c ".id = $url" <<<$line >> 20161128222338.json.fixed;
- done < 20161128222338.json
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement