You want awk
.
This would be a quick and dirty hack:
awk -F "\"" '{print $2}' /tmp/file.txt
PortMappingEnabled PortMappingLeaseDuration RemoteHost ExternalPort ExternalPortEndRange InternalPort PortMappingProtocol InternalClient PortMappingDescription
Related Posts:
- “sed” command in bash
- Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?
- apt-get error: Sub-process /usr/bin/dpkg returned an error code (1)
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- How can I recursively find all files in current and subfolders based on wildcard matching?
- How to perform grep operation on all files in a directory?
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- subprocess.Popen(): OSError: [Errno 8] Exec format error in python?
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- How to substitute shell variables in complex text files
- How can I recursively find all files in current and subfolders based on wildcard matching?
- Curl command for https ( SSL )
- How to exclude a directory in find . command
- How to exclude a directory in find . command
- Shell command to tar directory excluding certain files/folders
- Pseudo-terminal will not be allocated because stdin is not a terminal
- WSL – GEDIT Unable to init server: Could not connect: Connection refused
- How to open some ports on Ubuntu?
- Given two directory trees, how can I find out which files differ by content?
- Uncompress tar.gz file
- Diff command along with Grep gives “Binary file (standard input) matches”
- Pseudo-terminal will not be allocated because stdin is not a terminal
- screen Cannot open your terminal ‘/dev/pts/0’ – please check
- ./configure : /bin/sh^M : bad interpreter
- “Unable to find remote helper for ‘https'” during git clone
- What is the difference between “#!/usr/bin/env bash” and “#!/usr/bin/bash”?
- Is there a “goto” statement in bash?
- What is the difference between /etc/rc.local and ~/.bashrc?
- Implementing shell in C and need help handling input/output redirection
- Command to change the default home directory of a user
- Unable to establish SSL connection upon wget on Ubuntu 14.04 LTS
- Telnet [Unable to connect to remote host: Connection refused]
- Writing a simple shell in C using fork/execvp
- Implementation of multiple pipes in C
- chmod: changing permissions of ‘my_script.sh’: Operation not permitted
- What does “&” at the end of a linux command mean?
- What does set -e mean in a bash script?
- What does set -e mean in a bash script?
- wget returns “Unable to establish SSL connection”
- Syntax error near unexpected token ‘then’
- Curl : connection refused
- How to install Android SDK on Ubuntu?
- How do I install chkconfig on Ubuntu?
- make -j 8 g++: internal compiler error: Killed (program cc1plus)
- List all mounts in Linux
- Bash export command
- How to edit gitignore file
- Retrieve last 100 lines logs
- Retrieve last 100 lines logs
- Adding a new entry to the PATH variable in ZSH
- how to search for a directory from the terminal in ubuntu
- How do I know the script file name in a Bash script?
- What are the functional differences between .profile .bash_profile and .bashrc
- Shell command to monitor changes in a file
- Difference in sites-available vs sites-enabled vs conf.d directories (Nginx)?
- What is “-bash: !”: event not found”
- What does ‘set -e’ do, and why might it be considered dangerous?
- How to add a timestamp to bash script log?
- Job scheduling using crontab, what will happen when computer is shutdown during that time?
- Colors in bash after piping through less?
- How can I kill all stopped jobs?
- How to run command as user who has /usr/sbin/nologin as Shell?
- How to display certain lines from a text file in Linux?
- GPG does not have enough entropy
- df says disk is full, but it is not
- Why don’t EC2 ubuntu images have swap?
- Heartbleed: how to reliably and portably check the OpenSSL version?
- Is there a proper way to clear logs?
- Is there a way to do a remote “ls” much like “scp” does a remote copy?
- How do I join two named pipes into single input stream in linux
- What is the debian-sys-maint MySQL user (and more)?
- How should an IT department choose a standard Linux distribution?
- Command line program to test DHCP service
- SSH using python script
- Changing the resolution of a VNC session in linux
- What is difference between arm64 and armhf?
- How to count lines in a document?
- What does `set -x` do?
- Using ls to list directories and their total sizes
- tar: add all files and directories in current directory INCLUDING .svn and so on
- How to use dos2unix?
- How to add a default include path for GCC in Linux?
- How to configure both webserver and appserver for WordPress CMS?
- Can scp copy directories recursively?
- Why does my hostname appear with the address 127.0.1.1 rather than 127.0.0.1 in /etc/hosts?
- Linux command to inspect TXT records of a domain [closed]
- What does a + mean at the end of the permissions from ls -l?
- What version of RHEL am I using?
- How do you make it obvious you are on a production system?
- How can I verify if TLS 1.2 is supported on a remote web server from the RHEL/CentOS shell?
- Mount CIFS Host is down
- List of files installed from apt package
- How to copy a large number of files quickly between two servers
- Allow SFTP but disallow SSH?
- How can I export the privileges from MySQL and then import to a new server?
- Is there a directory equivalent of /dev/null in Linux?
- Can I send some text to the STDIN of an active process running in a screen session?
- How can I get processor/RAM/disk specs from the Linux command Line? [duplicate]