Use -F [field separator]
to split the lines on "
s:
awk -F '"' '{print $2}' your_input_file
or for input from pipe
<some_command> | awk -F '"' '{print $2}'
output:
A B
C
D
More Related Contents:
- How to add text at the end of each line in unix
- Get lines between two patterns
- shell – remove numbers from a string column [closed]
- How to mkdir only if a directory does not already exist?
- How to print lines between two patterns, inclusive or exclusive (in sed, AWK or Perl)?
- How to select lines between two marker patterns which may occur multiple times with awk/sed
- How to use multiple arguments for awk with a shebang (i.e. #!)?
- How can I shuffle the lines of a text file on the Unix command line or in a shell script?
- Using awk with variables
- Do a tail -F until matching a pattern
- Trim leading and trailing spaces from a string in awk
- How can I pass variables from awk to a shell command?
- Awk replace a column with its hash value
- How to print 5 consecutive lines after a pattern in file using awk [duplicate]
- How to delete duplicate lines in a file without sorting it in Unix
- How to pass command line arguments to a shell alias? [duplicate]
- How do I kill background processes / jobs when my shell script exits?
- sed whole word search and replace
- How can I quickly sum all numbers in a file?
- Meaning of $? (dollar question mark) in shell scripts
- What is /dev/null 2>&1?
- Using find to locate files that match one of multiple patterns
- Using wget to recursively fetch a directory with arbitrary files in it
- Compare a string using sh shell
- How to assign the output of a command to a Makefile variable
- Block Comments in a Shell Script
- Emacs shell scripts – how to put initial options into the script?
- How to run commands via NodeJS child process?
- How to run SWI-Prolog from the command line?
- Exclude specific filename from shell globbing