Questions tagged [case-sensitivity]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

find exact match and case insensitive files on non-Windows using ansible

i'm able to find files case insensitive using the below ansible play and unix command. - name: Check if file exists with exact name shell: "ls {{ userfile }}" register: filefound ...
Ashar's user avatar
  • 491
0 votes
0 answers
38 views

What causes tmux search to be case insensitive or casesensitive?

When I run a search in the copy paste mode of tmux sometimes it's case insensitive and other times it isn't. I think I know what I do, but I don't understand what causes the search to be case-...
leeand00's user avatar
  • 4,605
0 votes
1 answer
52 views

Display the results in an alphabetical order, independently of their case [duplicate]

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 ...
ecjb's user avatar
  • 403
0 votes
2 answers
1k 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&...
WillO's user avatar
  • 97
0 votes
0 answers
106 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 ...
tpimh's user avatar
  • 307
4 votes
1 answer
555 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 ...
spaceKelan's user avatar
7 votes
3 answers
2k 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 ...
Daniel's user avatar
  • 789
0 votes
1 answer
102 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 ...
Stephen Harris's user avatar
3 votes
1 answer
788 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,...
Glutexo's user avatar
  • 171
4 votes
0 answers
442 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 ...
Harald's user avatar
  • 898
-1 votes
1 answer
148 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 ...
user avatar
6 votes
1 answer
6k 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 ...
George Do.'s user avatar
1 vote
1 answer
1k 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*...
gatorback's user avatar
  • 1,374
0 votes
1 answer
725 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 /...
Francesco Peeters's user avatar
0 votes
3 answers
923 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"....
Matkok's user avatar
  • 1
1 vote
1 answer
504 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 ,...
Martin von Wittich's user avatar
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 ...
Sollosa's user avatar
  • 1,919
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 ...
Ashar's user avatar
  • 491
0 votes
1 answer
54 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.
user avatar
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 ...
Som Shekhar Mukherjee's user avatar
0 votes
1 answer
835 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 ...
Hobber's user avatar
  • 378
-1 votes
1 answer
902 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 ...
JoBe's user avatar
  • 397
1 vote
2 answers
144 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 ...
Amaterasu's user avatar
  • 293
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 ...
Krzysztof Krasoń's user avatar
0 votes
3 answers
87 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?
Vonnie's user avatar
  • 9
2 votes
1 answer
681 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 ...
Kreezxil's user avatar
0 votes
1 answer
993 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 ...
Teddy C's user avatar
  • 457
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 ...
regex's user avatar
  • 77
0 votes
1 answer
562 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 ...
user9371654's user avatar
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 ...
Shreyas RK's user avatar
0 votes
2 answers
5k 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 (...
Steve Wright's user avatar
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?
IMTheNachoMan's user avatar
-1 votes
1 answer
640 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.
Irakli's user avatar
  • 129
11 votes
4 answers
50k views

How can I find all lines containing two specified words, case-insensitively? [duplicate]

I need to check if two (specified) words exist on any line in a text file. There are no limits for the characters of the words. For example: I want to find lines of a text file that contain the two ...
user avatar
0 votes
0 answers
238 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 ...
Necktwi's user avatar
  • 1,026
1 vote
1 answer
818 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/...
Camille Goudeseune's user avatar
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 ...
user_297020's user avatar
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 -- ...
irishwill200's user avatar
2 votes
2 answers
8k 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 ...
Joe's user avatar
  • 23
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 ...
yael's user avatar
  • 13.1k
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 ...
Akash_Triv3di's user avatar
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-...
Martin Schröder's user avatar
4 votes
2 answers
517 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 ...
Wildcard's user avatar
  • 36.5k
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,...
jc__'s user avatar
  • 2,605
9 votes
1 answer
8k 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 ...
John Allard's user avatar
  • 1,358
0 votes
2 answers
2k 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 ...
dr_'s user avatar
  • 29.5k
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
eadmaster's user avatar
  • 1,643
1 vote
2 answers
90 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 ...
webappzero's user avatar
2 votes
1 answer
2k 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 ...
Huckle's user avatar
  • 1,005
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: ...
cosmictypist's user avatar