Questions tagged [case-sensitivity]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
47 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 ...
3
votes
2answers
91 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
1answer
46 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 ...
117
votes
5answers
198k views

How to uppercase the command line argument?

I searched SO and found that to uppercase a string following would work str="Some string" echo ${str^^} But I tried to do a similar thing on a command-line argument, which gave me the following ...
17
votes
6answers
11k views

case-insensitive search of duplicate file-names

I there a way to find all files in a directory with duplicate filenames, regardless of the casing (upper-case and/or lower-case)?
0
votes
1answer
344 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 ...
12
votes
1answer
2k 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 ...
2
votes
3answers
4k 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
2answers
619 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 (...
4
votes
2answers
574 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 ...
1
vote
2answers
829 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?
9
votes
4answers
7k views

Case-insensitive file system for production server?

The initial situation looks like this: The corporate software is PHP-based. It is delivered by Apache 2 on a Windows 2003 Server. It is big. It is a legacy of rather unprofessional developers who did ...
-1
votes
1answer
63 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.
57
votes
7answers
71k views

How to match case insensitive patterns with ls?

I would like to list all files matching a certain pattern while ignoring the case. For example, I run the following commands: ls *abc* I want to see all the files that have "abc" as a part of the ...
0
votes
0answers
65 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
2answers
414 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 ...
-1
votes
1answer
92 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
2answers
1k 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 ...
18
votes
5answers
16k 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.
3
votes
2answers
5k 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 ...
0
votes
6answers
7k 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 ...
4
votes
2answers
287 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 ...
5
votes
1answer
786 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-...
33
votes
1answer
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
3
votes
1answer
893 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,...
3
votes
1answer
2k 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 ...
10
votes
2answers
2k views

Case-preserving search and replace in vim?

In vim, I know I can search with or without case sensitivity. But if I want to search for a string in either upper or lower case, and replace it with a replacement of the same case, is that possible ...
0
votes
2answers
658 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 ...
2
votes
1answer
983 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
2answers
66 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
1answer
774 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
2answers
2k 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 ...
0
votes
1answer
778 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
2answers
45 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 ...
10
votes
3answers
698 views

Can I force `man` to do lower case sensitive matching?

When I search man pages, the search is case sensitive, but only with regard to upper case letters. E.g., x will match x and X whereas X only matches x. This is the man-db version of man, used on ...
1
vote
1answer
711 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 ...
1
vote
1answer
125 views

Paradox about a-z vs A-Z

I wrote a shell script to recognize the type of character printf "Enter a character: " read var case "$var" in [a-z]) echo "You entered a lower case alphabet." ;; [A-Z]) echo "...
11
votes
4answers
9k views

change entire directory tree to lower-case names

I'm working on a website conversion. The files as they were linked and served from the web server were case insensitive. But, I've made a dump of the site on my linux system and I'm writing scripts to ...
3
votes
4answers
2k views

How to prepare files for rsync on a case insensitive filesystem?

I am transferring a large number of files on a HFS+ filesystem. The files are currently on ext2 partitions. I have conflicts due to case insensitivity of the target partition (HFS+). I want to ...
8
votes
1answer
6k views

grep: Ignoring GREP_OPTIONS to search case-sensitive

I have set GREP_OPTIONS="--ignore-case --color" in ~/.bashrc as I normally want grep to work case-insensitive. However, there are times when I need grep to actually search case-sensitive, but the man ...
1
vote
2answers
415 views

`echo -e 'Q\ns\nV' | sort` doesn't sort

Why do : $ echo -e 'Q\ns\nV' | sort outputs Q s V without changing the order of my list (taking in account the lower/uppercase ?)