score:6
you probably want a non-locale-aware sort:
lc_collate=c sort file.txt
that may affect the way non-roman characters are sorted, but it will avoid issues with dashes and whitespace, which many default european locales ignore for collation purposes.
Source: stackoverflow.com
Related Query
- sort command doesn't work
- -u does not work in the sort command
- command doesnt work properly when scheduled
- Command "jobs" doesnt work on terminal (shell,bash)
- My command works on terminal but doesnt work on script in pi
- Command doesnt work as alias or function in bash
- How does sort command work in this specific case?
- When installing Rust toolchain in Docker, Bash `source` command doesn't work
- sort logfile by timestamp on linux command line
- Sort a tab delimited file based on column sort command bash
- The sort -R command doesn't sort lines randomly in Linux
- xargs: command substitution $(...) with pipe doesn't work
- Why source command doesn't work with process substitution in bash 3.2?
- Linux sort doesn't work with negative float numbers
- Linux - how does the kill -k switch work in timeout command
- How can I get nasm to work as a command in terminal in MacOS?
- Passing variable through ssh doesnt work
- Bash reading users y/n answer does not work (read command inside while loop reading find output)
- Command `timeout` does not work with Scala - why?
- Unable to make the mentioned regular expression to work in sed command
- When creating tmux session through crontab, specifying the .bash_profile source path inside `tmux new session -d` command doesn't work
- Why doesn't the cut command work for a "docker image ls" command?
- Bash read command doesn't work outside loop
- Bash: Sort text file by bytewise case sensitive sort command or using python sort command
- Using the bash sort command within variable-length filenames
- command substitution doesn't work with echo in makefile
- Desktop shortcut doesn't work if use pipe in command
- How to list the files using sort command but not ls -lrt command
- Running 'export' command with Pythons 'subprocess' does not work
- bash for loop work in command line, but failed in script
More Query from same tag
- Find and replace in bash
- wget & curl can't download a specific CSS file
- Check scrapy result in bash
- awk - how to replace semicolon in string in csv file?
- looping through files older than 2 hours in bash
- Split a string (stored in a variable) into multiple words using spaces but not the spaces within double quotes
- Issue with ping sweep that reads in an IP address
- How to print to bash file descriptors in awk
- using string as argument in Bash script
- Regular expression in bash case statement throws `unexpected token` error
- Extract a section in a config file line using sed
- Bash script for tar menu, syntax errors in case conditionals
- Bash script to delete and create snapshots with virtualbox
- How to terminate a job dispatcher in back ground in Linux?
- How to remove duplicate lines in a file?
- Add a prefix to all media links in a html file
- Linux Bash expr index command
- Extract specific values from XML configuration
- C++ shell issue with fork program
- List opened files grouped by pending changelist in p4
- Storing multiple data with same keys in a file and getting values from shell Script?
- How to pass multiple inputs in command-line?
- Python subprocess.Popen compiling in g++ adding .cpp files automatically
- Shell Script - telnet multiple hosts:ports
- Bash Script is returning non-zero status
- echo -e acts differently when run in a script by root on ubuntu
- enum data type seems not available in bash
- Why when I use a variable in the command does it stop working? || Shell Scripting
- How do I cut everything on each line starting with a multi-character string in bash?
- Sed - Insert line with text after match pattern between two strings