Use the -r
(or --raw-output
) option to emit raw strings as output:
jq -r '.name' <json.txt
Related Posts:
- How to grep for case insensitive string in a file?
- How to remove the quotes when reading a variable in jq in shell?
- What is the difference between sed and awk?
- How can I do a recursive find/replace of a string with awk or sed?
- Select objects based on value of variable in object using jq
- How can I use “:” as an AWK field separator?
- “sed” command in bash
- What are NR and FNR and what does “NR==FNR” imply?
- Printing the last column of a line in a file
- Absolute value in awk doesn’t work?
- RE error: illegal byte sequence on Mac OS X
- Use of `NF` in awk command
- sed command with -i option failing on Mac, but works on Linux
- Using SED with wildcard
- How to print last two columns using awk
- Error when using ‘sed’ with ‘find’ command on OS X: “invalid command code .”
- How do I deal with a filename that starts with the hyphen (-) character?
- Bash: No such file or directory?
- How do I pause my shell script for a second before continuing?
- Cp: target is not a directory
- Why is “MINGW64” appearing on my Git bash?
- How do I split a string on a delimiter in Bash?
- How to split a string into an array in Bash?
- How do I tell if a regular file does not exist in Bash?
- How to create a file in Linux from terminal window? [closed]
- What is newline character — ‘\n’
- In the shell, what does ” 2>&1 ” mean?
- Is double square brackets [[ ]] preferable over single square brackets [ ] in Bash?
- Extract substring in Bash
- What is the preferred Bash shebang?
- Ubuntu says “bash: ./program Permission denied” [closed]
- Read a file line by line assigning the value to a variable
- How to compare strings in Bash
- Why do you need to put #!/bin/bash at the beginning of a script file?
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- How to decode Seagate’s hard drive date code in a Bash script
- What does export PS1=”\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ ” mean in MacOS’ bash Terminal?
- In the shell, what does ” 2>&1 ” mean?
- How do I use a regex in a shell script?
- How to concatenate string variables in Bash
- -bash: syntax error near unexpected token `)’
- An example of how to use getopts in bash
- Difference between wait and sleep
- How do I parse command line arguments in Bash?
- grep –ignore-case –only
- How do I execute a bash script in Terminal?
- Multi-line string with extra space (preserved indentation)
- Installing Homebrew on OS X
- gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
- How to delete from a text file, all lines that contain a specific string?
- How to make “if not true condition”?
- Multi-line string with extra space (preserved indentation)
- How to install JQ on Mac on the command line?
- ‘\r’: command not found – .bashrc / .bash_profile [duplicate]
- Bash script and /bin/bash^M: bad interpreter: No such file or directory
- -bash: syntax error near unexpected token `newline’
- An “and” operator for an “if” statement in Bash
- Loop through an array of strings in Bash?
- ‘\r’: command not found – .bashrc / .bash_profile [duplicate]
- How can I check if a directory exists in a Bash shell script?
- How do I iterate over a range of numbers defined by variables in Bash?
- Echo newline in Bash prints literal \n
- What is $@ in Bash? [duplicate]
- Using multiple delimiters in awk
- How to split a delimited string into an array in awk?
- Bash script and /bin/bash^M: bad interpreter: No such file or directory [duplicate]
- Passing parameters to a Bash function
- How to split a string into an array in Bash?
- Pass a password to ssh in pure bash
- How do I iterate over a range of numbers defined by variables in Bash?
- How to run Conda?
- Echo newline in Bash prints literal \n
- What is $@ in Bash?
- -bash: syntax error near unexpected token `newline’ for display command
- An “and” operator for an “if” statement in Bash
- How to switch Python versions in Terminal?
- How do I use grep to search the current directory for all files having the a string “hello” yet display only .h and .cc files?
- “unary operator expected” error in Bash if condition
- “while :” vs. “while true” [duplicate]
- nodemon not working: -bash: nodemon: command not found
- What does “-ne” mean in bash?
- Echo newline in Bash prints literal \n
- How can I declare and use Boolean variables in a shell script?
- How to reload .bashrc settings without logging out and back in again?
- In a Bash script, how can I exit the entire script if a certain condition occurs?
- How can I declare and use Boolean variables in a shell script?
- What is the meaning of 2 in 2> /dev/null
- How to reload .bash_profile from the command line?
- What is the purpose of “&&” in a shell command?
- How to generate random number in Bash?
- Replace one substring for another string in shell script
- Parsing JSON with Unix tools
- How to check if a variable is set in Bash?
- mvn command not found in OSX Mavrerick
- Using Bash regex match (=~) where regex includes quotes (” characters)
- Explaining the ‘find -mtime’ command
- “[ ]” vs. “[[ ]]” in Bash shell
- How do I split a string on a delimiter in Bash?
- How does “cat << EOF" work in bash?
- Bash scripting missing ‘]’