sort ip_addresses | uniq -c
This will print the count first, but other than that it should be exactly what you want.
More Related Contents:
- How do I split a string on a delimiter in Bash?
- How to manually expand a special variable (ex: ~ tilde) in bash
- How to urlencode data for curl command?
- How to execute a bash command stored as a string with quotes and asterisk [duplicate]
- Delete all but the most recent X files in bash
- Find and Replace Inside a Text File from a Bash Command
- sudo echo “something” >> /etc/privilegedFile doesn’t work [duplicate]
- Error handling in Bash [closed]
- How can I declare and use Boolean variables in a shell script?
- Test for non-zero length string in Bash: [ -n “$var” ] or [ “$var” ]
- How to iterate over an array using indirect reference?
- How to simulate the environment cron executes a script with?
- Random number from a range in a Bash Script
- Bash script – store stderr in a variable [duplicate]
- Wait for a process to finish
- How can I remove the first line of a text file using bash/sed script?
- How to get the part of a file after the first line that matches a regular expression
- How do I tell if a file does not exist in Bash?
- How can I set the current working directory to the directory of the script in Bash?
- Deleting lines from one file which are in another file
- Copy folder recursively, excluding some folders
- Running a Bash script over ssh
- How to resolve symbolic links in a shell script
- Why equal to operator does not work if it is not surrounded by space?
- bash script order of execution
- Determine if a function exists in bash
- How to check the extension of a filename in a bash script?
- Extract version number from a string
- How to tell if a string is not defined in a Bash shell script
- Is there a way to avoid positional arguments in bash?