Use the -r
(or --raw-output
) option to emit raw strings as output:
jq -r '.name' <json.txt
More Related Contents:
- Some troubles with using sed and awk [closed]
- How can I manipulate text in bash? [closed]
- How can I do a recursive find/replace of a string with awk or sed?
- Bash tool to get nth line from a file
- How to merge every two lines into one from the command line?
- Remove first N lines of a file in place in unix command line
- How to add to the end of lines containing a pattern with sed or awk?
- How to find/replace and increment a matched number with sed/awk?
- find difference between two text files with one item per line [duplicate]
- Grep output with multiple Colors?
- How to append a string at end of a specific line in a file in bash [duplicate]
- using bash (sed/awk) to extract rows AND columns in CSV files?
- How to delete rows from a csv file based on a list values from another file?
- How to grep for case insensitive string in a file?
- sed search and replace strings containing / [duplicate]
- Recursively rename files using find and sed
- bash: shortest way to get n-th column of output
- Error when using ‘sed’ with ‘find’ command on OS X: “invalid command code .”
- Extraction of data from a simple XML file
- Using sed to mass rename files
- Sort a text file by line length including spaces
- Parse out key=value pairs into variables
- How do I escape slashes and double and single quotes in sed?
- Split CSV files into smaller files but keeping the headers?
- Bash: Parse CSV with quotes, commas and newlines
- Escaping forward slashes in sed command [duplicate]
- Getting “sed error – illegal byte sequence” (in bash) [duplicate]
- how to delete the duplicate lines in file except the first matched line
- How to insert a new line character after a fixed number of characters in a file
- Sum duplicate row values with awk