The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Remove Double Quotes From Strings In jq Output

TODO: Pull subtitle into page object
Code
echo '["alfa"]' | jq -r '.[0]'
Results
alfa

vs. without the `-r``:

Code
echo '["alfa"]' | jq '.[0]'h
Results
"alfa"

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Remove Double Quotes From Strings In jq Output

Use the `-r`` flag to remove double quotes from 
output strings:

-- code
-- shell

echo '["alfa"]' | jq -r '.[0]'

-- results

alfa

-- p

vs. without the `-r``:

-- code
-- shell

echo '["alfa"]' | jq '.[0]'h

-- results

"alfa"



-- categories
-- jq 

-- metadata
-- date: 2023-09-29 18:26:50
-- id: 2w5dwyc9
-- site: aws
-- type: snippet 
-- status: published