Questions tagged [case-sensitivity]
The case-sensitivity tag has no usage guidance.
67
questions
0
votes
1
answer
35
views
Display the results in an alphabetical order, independently of their case
I am using ls on MacOS 11.6.1. In the output, the Upper cases are displayed before the lower case. For example, I get the following output:
$ ls
Blabla.txt
GAGAS.txt
asdf.txt
blabla.txt
and would ...
0
votes
2
answers
282
views
case insensitivity with sed search
In a unix script, I have the line
sed -i "/$1/s/a/b" filename
This finds lines containing the string $1 (which is given to the script as a parameter) and, in those lines, replaces "a&...
0
votes
0
answers
61
views
Is building the Linux kernel on a case-insensitive filesystem possible?
Linux kernel source has some overlapping filenames which would collapse when put on a case insensitive filesystem. Here is the list as of 6.4.7:
in include/uapi/linux/netfilter/:
xt_CONNMARK.h and ...
4
votes
1
answer
287
views
How can I turn off git bash for Windows case-insensitive behavior?
I use the Git Bash on Windows for numerous bash tasks exceeding the Git use. It works well over years, but I cannot turn of the case-insensitive behavior. Auto-complete is cumbersome this way.
I tried ...
7
votes
3
answers
1k
views
How to change the casefold ext4 filesystem option of the root partition, if I only have ssh access
I need to enable the case insensitive filesystem feature (casefold) on ext4 of a Debian 11 server with a backported 6.1 linux kernel with the required options compiled in.
The server has a swap ...
0
votes
1
answer
73
views
Can you emulate Windows filesystem case semantics with ntfs-3g?
With NTFS on a Windows machine if you create a directory "ABC" and then try to create a directory "abc" it will be rejected because Windows considers it the same name.
Now on Linux ...
3
votes
1
answer
677
views
Are systemd directive names case sensitive?
systemd directives used in the unit files are in the documentation listed using mixed case like UMask or AccuracySec. Is it actually necessary to follow this exact wording, or is it just good practice,...
4
votes
0
answers
389
views
Configuration or command to for case insensitive bash history search
Bash provides the interactive commands forward-search-history and reverse-search-history typically bound to the keys CTRL-s and CTRL-r respectively.
Are there case-insentive equivalents or is there a ...
-1
votes
1
answer
144
views
Using mogrify - case insensitive file search [duplicate]
I use mogrify as such:
mogrify -monitor -quality 80 -resize 1200 *JPG
However, this only matches files ending in .JPG. How do I include .jpg files at the same time (in other words, how to make the ...
6
votes
1
answer
5k
views
Case-insensitive completion in bash
I have a folder ~/TestFolder. The current working directory is the home directory(~).
I want to enter a partial command, for example cd test, and I want it auto filled to give the command cd ...
1
vote
1
answer
937
views
zsh case-insensitive globbing
Context: macOS Catalina (zsh)
This script is to process all JPEG files. This script does not process .JPG files, however it does process .jpg files.
top=/Users/user/Desktop/
for file in $top/**/*.jp*...
0
votes
1
answer
630
views
Linux: How to merge identical named folders with different case from the CLI (BASH preferred)
I have on my Linux NAS miscellaneous folders with identical names, except for case,like this:
/data/libraries
/Data/libraries/presets
/Data/Libraries/presets
/Data/Libraries/Presets
/merged/readme
/...
0
votes
3
answers
849
views
Separate folders and files with Upper case & Lower case filenames from Windows
I have folders of files with uppercase and lowercase filenames in Windows system.
For filenames starting with "a" or "A" are stored in either folder "A", or "a"....
1
vote
1
answer
460
views
zsh completion: complete _values, but case-insensitive
I have the following completion script to complete a list of roles:
host /usr/share/zsh/vendor-completions # cat _foo
#compdef foo
local -a values=('ROLE_ADMIN[Admin]' 'ROLE_USER[User]')
_values -s ,...
1
vote
5
answers
1k
views
awk case insensitive with gsub
I have "|" delimited text data, and want to transform a column values
$ cat infile
Mark|father
Jason|SOn
Jose|son
Steffy|daugHter
I want to search for (father|son|daughter) case ...
1
vote
5
answers
1k
views
convert only the first column in a file to lower case
I have a file on RedHat with the data below:
$ cat hello.txt
mumdfw2as123v USER=wladmin MOUNTPOINT=/apps
MUMFW2as97v.mrshmc.com USER=wladmin ...
0
votes
1
answer
53
views
A command, pushd does by argument as insensitive
how make pushd perform it by insensitive-case ?
tried to no avail
$ shopt -s nocasematch ; pushd pdf
bash: pushd: pdf: No such file or directory
Help guide the correct one, thanks.
16
votes
6
answers
9k
views
What does “Case sensitivity is a function of the Linux filesystem not the Linux operating system” mean?
I just read the following sentence:
Case Sensitivity is a function of the Linux filesystem NOT the Linux operating system.
What I deduced from this sentence is if I'm on a Linux machine but I am ...
0
votes
1
answer
636
views
grep flag to NOT ignore case
I have a simple script to search patterns in my code sources, named prgrep
#!/usr/bin/bash
grep -irnI --exclude-dir={.git,obj} --exclude=tags --color=auto "$@"
(The fact that it is a script ...
-1
votes
1
answer
798
views
what does this do? printf '\t%s\n' "$@"
I'm writing a larger bash script, and I've found this snippet to test if a directory exists case insensitive
Now, if I now have one directory called subs this script will print the path, and if I have ...
1
vote
2
answers
138
views
Cygwin: get a path's stored capitalization
Cygwin is case-insensitive in the manner of Windows, e. g.:
$ touch ABC; rstr=$(openssl rand -base64 12); echo $rstr; echo $rstr > AbC; cat abc
dGRMOHqqoy0/nc96
dGRMOHqqoy0/nc96
$ ls | grep -i abc
...
5
votes
1
answer
5k
views
How to enable new in kernel 5.2 case-insensitivity for ext4 on a given directory?
I saw that kernel 5.2 got handling of ext4 case-insensitivity per directory by flipping a +F bit in inode.
This EXT4 case-insensitive file-name lookup feature works on a
per-directory basis when ...
0
votes
3
answers
85
views
Find directories case insensitively [closed]
I'm trying to put together a find command to list directories under /home with names that start with adm_ but I need the find to be case insensitive (rhel v7). Is there a way to do this?
2
votes
1
answer
672
views
rename 'y/A-Z/a-z/' * doesn't work on windows subsystem for linux (wsl)
When you do it it says file already exists.
example output:
rename 'y/A-Z/a-z/' *
Totemic-1.12.2-0.11.6.jar not renamed: totemic-1.12.2-0.11.6.jar already exists
TreeChoppin-1.12.2-1.0.0.jar not ...
0
votes
1
answer
940
views
find command - how to ignore case in -path option?
when searching filename or dirname case-insensetively, we can use option -iname.
but if I want to ignore case in -path option, what should I do?
can I do it with only find command, without using ...
7
votes
2
answers
3k
views
Using regular expressions in "less"
I'm trying to use a regular expression in the man page of Bash by using less.
I press / in less to enter a pattern, and I type z and press the Enter. I expected it to not match upper-case z (Z), but ...
0
votes
1
answer
533
views
Does sort -u convert case?
If I have a file with some words starting with Capital letters and some starts with Small letters and some start with numbers or special characters. Does using sort -u input > output convert the ...
0
votes
1
answer
2k
views
Ignore case in Find command
I want to search file in 2 different directories using find command,
find $file_dir1 $file_dir2 -name 'searchpattern*' | tail -10
I am using this command now, but it is case-sensitive search.
I ...
0
votes
2
answers
4k
views
case insensitive, list files in directory, ending in .jpg [duplicate]
I'm trying to write an alias to list all the files in a directory ending in JP(E)G in its various forms. The ones I'm looking for it to recognise are .jpg .JPG .jpeg and .JPEG.
Is there a form of ls (...
3
votes
2
answers
5k
views
Is it possible to disable ext4 case sensitivity?
With NTFS you can enable or disable case sensitivity. Is there a way to do it with ext4 in Linux?
-1
votes
1
answer
618
views
Create a folder with all possible combinations of characters and numbers [closed]
I want to create a folder like "example.txt, example.Txt, example.TxT... all possible combinations.
0
votes
0
answers
228
views
case-preserving linux usernames and hostnames
Is there a way to set pam library to do case-preserving username validation? Is there a way to set useradd command to accept and preserve the case of usernames? I know usernames and URLs are not OS ...
0
votes
1
answer
712
views
Format disk as HFS+, but case sensitive?
Linux can format an (external) disk as HFS+, e.g.:
apt-get install gparted hfsprogs, then
gparted /dev/sdd, rightclick on the partition to format, choose HFS+, click Apply, quit; mount -t hfsplus /dev/...
1
vote
3
answers
2k
views
Case insensitive directory search?
I am working on restructuring the folder structure of few existing folders.
So if there are any folders missed i will have to add it.
First am checking if the directory exists or not with if ...
2
votes
1
answer
2k
views
SSH Config File, Capital issue with %h - ProxyCommand issue
I created a section within my SSH Config file, but I have a letter case issue when trying to execute my ProxyCommand where once I input SystemDevice it reads back in the config file as systemdevice -- ...
2
votes
2
answers
7k
views
Move files that have the same case-insensitive filename
I have been asked by the data owner to copy a specific folder (and its large amount of subfolders and files) via FTPS to our cloud storage provider. I am using LFTP for that, and the upload worked ...
7
votes
2
answers
30k
views
bash - case-insensitive matching of variable
This syntax prints "linux" when variable equals "no":
[[ $LINUX_CONF = no ]] && echo "linux"
How would I use regular expressions (or similar) in order to make the comparison case ...
2
votes
6
answers
26k
views
Using wildcard in 'ls' command to find files containing uppercase letters only
So I've been playing around with filesystem and wondered about listing the files in /etc that contains only upper-case letters in their names. I commanded
ls *[A-Z]*
But the console shows the files ...
8
votes
1
answer
2k
views
Does the UNIX standard require case-sensitive filesystems?
One answer to this question mentions the UNIX 03 certification of OSX. Now AFAIK the standard file system of OSX is/was HFS, which "saves the case of a file that is created or renamed but is case-...
4
votes
2
answers
499
views
Are keywords in resolv.conf case sensitive?
Looking around I have found out the following about /etc/resolv.conf valid formatting:
Trailing whitespace is allowed
Leading whitespace is NOT allowed
DNS records are case insensitive, though you ...
3
votes
1
answer
2k
views
How to copy with scp a file that case is unknown via bash script
I have a directory that contains the backup of many computers using NTFS file system.
/backup/REP1/database
/backup/REP2/database
I now want to scp from the backup file server to the database server,...
9
votes
1
answer
7k
views
Broken pipe when grepping output, but only with -i flag
I'm trying to see if a certain python-library is installed by grepping the output of pip list. If I try this
pip list | grep -q $package, it works fine. If I try pip list | grep -qi $package, I get ...
0
votes
2
answers
1k
views
yum case (in)sensitive
As far as I know, yum list is case insensitive, while yum install and yum remove are case sensitive -- probably as a security feature to prevent unintended system changes.
Is there a way to change ...
3
votes
1
answer
3k
views
bash case-insensitive commands matching
Is it possible for bash to find commands in a case-insensitive way?
eg. these command lines will always run python:
python
Python
PYTHON
pyThoN
1
vote
2
answers
88
views
OS X filesystem case insensitivity corrupts vlc command
vlc -I rc from OS X Terminal bash prompt returns error:
VLC media player 2.2.3 Weatherwax (revision 2.2.3-3-g0777f11)
[0000000100233778] core libvlc error: No plugins found! Check your VLC ...
2
votes
1
answer
1k
views
How do I view the case-sensitive file names of iso9660/Joliet+UCS-3 volumes?
I have an ISO that I am trying to use to install software via Wine. I have the ISO mounted as a loopback device. The Windows installer keeps complaining that it cannot locate particular CAB files and ...
3
votes
3
answers
7k
views
delete line that contains a case insensitive match
I have a file that contains information as so:
20 BaDDOg
31 baddog
42 badCAT
43 goodDoG
44 GOODcAT
and I want to delete all lines that contain the word dog. This is my desired output:
...
0
votes
1
answer
1k
views
sort and uniq commands not running as expected when run though cron
Below is a part of script which gives proper output when run manually
but gives incorrect output when run using cron:
sort < file1.out | uniq -ic |sort -nr> file2.out
When run on the command ...
0
votes
2
answers
77
views
Surround a pattern, not changing it, while searching for it case-insensitively
Sorry if this has been asked before, but I haven't found anything so far.
Here's the thing: I have a string and a pattern, and want to surround the pattern inside the string with brackets.
While I ...
24
votes
5
answers
30k
views
Is the username in Unix case sensitive?
Is ssh abc@servername different from ssh Abc@servername? Does the case of the username matter in Unix?
My user authenticates via LDAP.