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 .”
- Cp: target is not a directory
- “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
- -bash: syntax error near unexpected token `)’
- How do I parse command line arguments in Bash?
- gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
- How to make “if not true condition”?
- 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
- Using multiple delimiters in awk
- Bash script and /bin/bash^M: bad interpreter: No such file or directory [duplicate]
- Passing parameters to a Bash function
- What is $@ in Bash?
- “unary operator expected” error in Bash if condition
- “while :” vs. “while true” [duplicate]
- Echo newline in Bash prints literal \n
- What is the purpose of “&&” in a shell command?
- Explaining the ‘find -mtime’ command
- How do I split a string on a delimiter in Bash?
- Is bash a programming language?
- How can I count all the lines of code in a directory recursively?
- How can I kill a process by name instead of PID, on Linux?
- Extract file basename without path and extension in bash
- Pass variable from one Jenkins stage to others in sh
- How can I output only captured groups with sed?
- Which characters need to be escaped when using Bash?
- Shell: How to call one shell script from another shell script?
- mvn command not found in OSX Mavrerick
- How can I match a string with a regex in Bash?
- How to trim whitespace from a Bash variable?
- How to use gdb with pipes and stdin
- How to define hash tables in Bash?
- How to replace a whole line with sed?
- ./configure : /bin/sh^M : bad interpreter
- standard_init_linux.go:178: exec user process caused “exec format error”
- How to Sum a column in AWK?
- What is cp: cannot stat error in Unix, I get this error when trying to copy thing from one folder to another
- Open an .html file with default browser using Bash on Mac
- Create timestamp variable in bash script
- How do I edit $PATH (.bash_profile) on OS X?
- Check number of arguments passed to a Bash script
- Run a string as a command within a Bash script
- How to count lines in a document?
- What does `set -x` do?
- How to get the process ID to kill a nohup process?
- psql: command not found Mac
- Writing a simple shell in C using fork/execvp
- Speed up rsync with Simultaneous/Concurrent File Transfers?
- Multi-dimensional arrays in Bash
- Variable interpolation in the shell
- What’s the meaning of the parameter -e for bash shell command line?
- tar: add all files and directories in current directory INCLUDING .svn and so on
- What does set -e mean in a bash script?
- What does set -e mean in a bash script?
- Check existence of input argument in a Bash shell script
- “find: paths must precede expression:” How do I specify a recursive search that also finds files in the current directory?
- curl: no URL specified for restful api
- firebase-tools “-bash: firebase: command not found”
- source command not found in sh shell
- Running bash script from within python
- How to run C program on Mac OS X using Terminal?
- Pipe to/from the clipboard in a Bash script
- Retrieve last 100 lines logs
- How to get the first line of a file in a bash script?
- How to open Emacs inside Bash
- How to parse XML in Bash?
- bash which OR operator to use – pipe v double pipe
- Git Bash doesn’t see my PATH
- How to sort a json file by keys and values of those keys in jq
- What does ‘bash -c’ do?
- How do I know the script file name in a Bash script?
- How to determine if a bash variable is empty?
- How do I get the current Unix time in milliseconds in Bash?
- How to run a command multiple times, using bash shell?
- What is “-bash: !”: event not found”
- Keeping a linux process running after I logout
- Colors in bash after piping through less?
- SSH from A through B to C, using private key on B [closed]
- How can I edit the welcome message when ssh start?
- What does passing the -xe parameters to /bin/bash do
- How can I run arbitrarily complex command using sudo over ssh?
- How to apply a filter to real time output of `tail -f `?
- How to test if my server is vulnerable to the ShellShock bug?