Questions tagged [case-sensitivity]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
90 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,...
user avatar
  • 151
3 votes
0 answers
56 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 ...
user avatar
  • 744
-1 votes
1 answer
36 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
2 votes
1 answer
285 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 ...
user avatar
  • 21
1 vote
1 answer
204 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*...
user avatar
  • 1,104
0 votes
1 answer
70 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 /...
user avatar
0 votes
3 answers
98 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"....
user avatar
  • 1
1 vote
1 answer
168 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 ,...
user avatar
1 vote
5 answers
615 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 ...
user avatar
  • 1,603
0 votes
5 answers
350 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 ...
user avatar
  • 297
0 votes
1 answer
35 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
0 votes
0 answers
60 views

Can I configure local users with case-insensitive usernames?

Is thera a way to make a username case-insensitive? For example, that to be the same to use: jdoe Jdoe JDOE as login name I'm talking about local Linux users (from /etc/passwd). I've found pam-regex ...
user avatar
  • 3,939
15 votes
6 answers
5k 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 ...
user avatar
1 vote
1 answer
213 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 ...
user avatar
  • 311
-1 votes
1 answer
159 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 ...
user avatar
  • 327
1 vote
2 answers
81 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 ...
user avatar
  • 151
4 votes
1 answer
3k 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 ...
user avatar
0 votes
3 answers
69 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?
user avatar
  • 9
2 votes
1 answer
521 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 ...
user avatar
0 votes
1 answer
606 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 ...
user avatar
  • 401
5 votes
2 answers
2k 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 ...
user avatar
  • 57
0 votes
1 answer
339 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
0 votes
2 answers
3k 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 (...
user avatar
3 votes
2 answers
4k 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?
user avatar
-1 votes
1 answer
366 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.
user avatar
  • 129
0 votes
0 answers
158 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 ...
user avatar
  • 921
0 votes
1 answer
472 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/...
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 avatar
2 votes
1 answer
1k 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 -- ...
user avatar
2 votes
2 answers
6k 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 ...
user avatar
  • 23
5 votes
2 answers
22k 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 ...
user avatar
  • 10.9k
1 vote
6 answers
20k 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 ...
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-...
user avatar
4 votes
2 answers
436 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 ...
user avatar
  • 33.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,...
user avatar
  • 2,255
9 votes
1 answer
6k 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 ...
user avatar
  • 1,098
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 ...
user avatar
  • 25.2k
3 votes
1 answer
2k 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
user avatar
  • 1,415
1 vote
2 answers
82 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 ...
user avatar
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 ...
user avatar
  • 905
3 votes
3 answers
6k 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: ...
user avatar
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 ...
user avatar
0 votes
2 answers
56 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 ...
user avatar
  • 53
23 votes
5 answers
25k 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.
user avatar
  • 239
4 votes
2 answers
885 views

bash - ignore case but disallow autocomplete if ambiguous

Recently i face inconvenient when using bash auto complete with ignore case. Let's say i have this directories: [xiaobai@xiaobai test]$ l total 20K 3407873 drwx------. 60 xiaobai xiaobai 4.0K May 25 ...
user avatar
  • 4,448
13 votes
1 answer
4k views

How do case-insensitive filesystems display both upper and lower case file names?

This question occurred to me the other day when I was working on a development project that relies on an opinionated framework with regard to file names. The framework (irrelevant here) wanted to see ...
user avatar
  • 4,288
1 vote
1 answer
992 views

Batch rename "case duplicates"

I have a folder on my Linux system that is cross-synchronized with other computers, some of them with Windows. The problem is that in that folder there are files that are "case duplicates", i.e. their ...
user avatar
3 votes
2 answers
4k views

Finding duplicate files by name ignoring the case in subdirectories

How is it possible to list duplicate file names on a Linux system ignoring the case including all subdirectories Files should not be compared by their content but only by their names. The output ...
user avatar
  • 3,573
33 votes
1 answer
2k views

Why can Shell builtins not be run with capital letters but other commands can?

Why is this? When I do this CD ~/Desktop It doesn't take me to the Desktop. But this: echo "foo bar" | GREP bar gives me: bar
user avatar
  • 10.6k