The delimiter can be a regular expression.
awk -F'[/=]' '{print $3 "\t" $5 "\t" $8}' file
Produces:
tc0001 tomcat7.1 demo.example.com
tc0001 tomcat7.2 quest.example.com
tc0001 tomcat7.5 www.example.com
More Related Contents:
- How do you delete all lines that contain no letters from the alphabet using either grep, sed, or awk? [closed]
- substitute words on a line only before first delimeter using sed or awk
- Printing with sed or awk a line following a matching pattern
- How to use sed to replace only the first occurrence in a file?
- What are NR and FNR and what does “NR==FNR” imply?
- How do I find the text that matches a pattern?
- Escaping separator within double quotes, in awk
- Is a /start/,/end/ range expression ever useful in awk?
- How can I shuffle the lines of a text file on the Unix command line or in a shell script?
- How to replace ${} placeholders in a text file?
- Can we use shell variables in awk?
- Summing values of a column using awk command
- Print all but the first three columns
- Using AWK to Process Input from Multiple Files
- Assigning system command’s output to variable
- Why does “1” in awk print the current line?
- How to split a delimited string into an array in awk?
- How to escape a single quote inside awk
- GROUP BY/SUM from shell
- Random numbers generation with awk in BASH shell
- How to show only next line after the matched one?
- Print second-to-last column/field in `awk`
- How can I make awk not use scientific notation when printing small values?
- print unique lines based on field
- ignorecase in AWK
- Using awk to pull specific lines from a file
- get the user input in awk
- Java exec() does not return expected result of pipes’ connected commands
- How to preserve the original whitespace between fields in awk?
- CMake’s execute_process and arbitrary shell scripts