Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. while IFS='' read -r line || [[ -n "$line" ]]; do
  2. url=$(echo $line | jq .url);
  3. url=${url%\?*};
  4. url="$url\"";
  5. echo $url;
  6. jq -c ".id = $url" <<<$line >> 20161128222338.json.fixed;
  7. done < 20161128222338.json
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement