See https://stackoverflow.com/a/17914105/1745001 for the answer that was duplicated here.
More Related Contents:
- How to delete duplicate lines in a file without sorting it in Unix
- Why does my tool output overwrite itself and how do I fix it?
- Is there a Unix utility to prepend timestamps to stdin?
- sed or awk: delete n lines following a pattern
- Print lines in one file matching patterns in another file
- Extract specific columns from delimited file using Awk
- Get last field using awk substr
- properly join two files based on 2 columns in common
- Remove line breaks in a FASTA file
- How to remove blank lines from a Unix file
- Save modifications in place with awk
- What are file descriptors, explained in simple terms?
- Identifying and removing null characters in UNIX
- How do I remove the passphrase for the SSH key without having to create a new key?
- Why are ports below 1024 privileged? [closed]
- Equivalent of *Nix ‘which’ command in PowerShell?
- Is there a way to ignore header lines in a UNIX sort?
- How do I set $PATH such that `ssh user@host command` works?
- What should we do to prepare for 2038?
- Need to link cmake project to dl library
- Why do programs in Unix-like environments have numbers after their name? [duplicate]
- What is the general syntax of a Unix shell command?
- How can I send an email through the UNIX mailx command?
- Convert decimal to hexadecimal in UNIX shell script
- Command-line Unix ASCII-based charting / plotting tool
- Setting environment variable in shell script does not make it visible to the shell
- What generates the “text file busy” message in Unix?
- A cron job that will never execute
- Crontab Formatting – every 15 minutes
- Why does RSA encrypted text give me different results for the same text