General :: GNU Sort By Case-sensitive?
Aug 20, 2010
The sort utility in Ubuntu 10.04 (Lucid) always sort by case-insensitive, just like if you specify --ignore-case to it. The two sort just give the same result:
[Code]....
But sometimes I want to sort by case-sensitive, so the upper-case letters come first, then lower-case letter.
View 2 Replies
ADVERTISEMENT
Dec 16, 2009
I recently upgraded to Fedora release 12 (Constantine) and noticed that sort is no longer case insensitive.
echo -e "ba
a
A" | sort
a
A
ba
I think it should be:
a
ba
A
The -f flag does not change anything. I have sort (GNU coreutils) 7.6.
View 4 Replies
View Related
Dec 14, 2010
i am trying to set up a couple of pages in some special directories URL...but i need it that if they type URL... for them also to go to the site and not to a 404
View 2 Replies
View Related
Jun 28, 2010
my ubuntu 8.04 is GNOME based.I am using kpdf 0.5.10 (using kde 3.5.10)
In find dialog box > options
only case sensitive is available to mark/unselect while
find backwards ,
[code]....
View 5 Replies
View Related
Dec 31, 2009
Some of my files and directories were mysteriously disappearing and some of my shell scripts were failing after the upgrade to Fedora Core 12. After some debugging I found out that file name globbing is no longer case sensitive in Fedora Core 12, that is
rm -rf [a-z]*
now also trashes all files and directories starting with [A-Z], which explains the removed files and directories
and
ls [a-z]*
now also includes files and directories starting with [A-Z], which caused my shell scripts to fail.
Is this a bug or a 'feature'?
View 14 Replies
View Related
Jan 22, 2010
Anybody know of a way to search only for similar case sensitive files? By which I mean doing a wildcard search across a drive & the only results are like: Abc.txt abc.txt VID_001.avi Vid_001.AVI .. etc.
I've already tried searching the forums & google but the closest I've found is regarding files with increasing numbers (music_001.mp3, music_002.mp3, etc), which doesn't quite fit with my issue, as they would be seen as different files on a case insensitive OS.
View 2 Replies
View Related
Oct 28, 2010
Kernel 2.6, Slackware 12.0
mkisofs 2.01
I do 'mkisofs -iso-level 1 -o image John Smith.txt'. Only an example. When I mount image, ls outputs john_smi.txt. So it has shorten to 8.3 and translated ' ' into '_'. This is in accordance with the manual, although it doesn't say the conversion will be done.
Quote:
-iso-level level
.........................
With all iso9660 levels from 1..3, all filenames are restricted to upper case letters, numbers and the underscore (_).
...........................
However, as it did not reject the file name, it should have converted it to all upper case, it seems to me. And -iso-level 2|3 does the same thing.
Code:
root@darkstar:~# mkisofs -iso-level 1 -o image John Smith.txt
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 0
[code]....
View 5 Replies
View Related
Jul 13, 2011
The touchpad on my Lenovo Z560 is to sensitive. I went into the mouse setting and adjusted the pointer speed sensitivity as low as possible but I don't see any difference. The lightest touch will move the pointer. I saw where some have modified the xorg.conf file but I can't find it in Ubuntu 11.04. From what I could find with Google this laptop uses a Synaptics touchpad. I installed Gpointing-device-settings and was able to change the speed but not the sensitivity. How can I make the touchpad less sensitive?
View 10 Replies
View Related
Mar 12, 2010
I tried to add my wife , and when I put in a password for her, this error comes up."Please set a valid user name consisting of a lower case letter followed by lower case letters and numbers." I did all that and I still can't set a password for her.
View 3 Replies
View Related
Oct 6, 2010
I've written a simple perl code to learn switches in perl.My code is pasted below,
#!/usr/bin/perl
$opt = 1;
switch($opt) {
[code]...
View 3 Replies
View Related
Sep 17, 2010
I know this is a rather odd question, but like in the old days you can get one drive bay desktop cases.
View 4 Replies
View Related
Sep 19, 2010
As above can I turn Case Sensitivity off for terminal in linux?
View 3 Replies
View Related
Apr 27, 2011
When my internet is slow & i try to open a web page then I get message in my firefox 3.6.3 that 'can't find server at www.website.com'. It isn't that URL is wrong but maybe connection to DNS server is slow or something similiar. I remember that wget tries 20 times by default to get the file (browsing is downloading+ decoding+ displaying).Does any web browser or addon tries repeatedly till it is successful in contacting website server? It can tell me 'trying nth attempt at www.website.com'
View 2 Replies
View Related
Feb 5, 2010
What would be the best way to verify files in a folder are all lower case and if a file is not lower case, output the filename to the screen.
View 11 Replies
View Related
Feb 19, 2010
How you disable it? it makes no sense you have to type all those non capital and capital letters just to access a directory correctly.
in windows you just type the name and it detects whatever you type capital or not...
View 3 Replies
View Related
Sep 4, 2010
while learning to write bash scripts, i decided to write some script that, given an integer as input, will tell you the square root of that integer (provided the integer in question is a perfect square). i have already done on using primarily if statements and a while loop. i decided that using a case statement would be a lot simpler and i would be able to make the script more functional. here is what i have so far
[Code]....
i have tried all posible combos of using -ge or >= but i get pretty much the same thing.
the idea is, for now, if the input is greater than or equal to 0 that it will echo test. can you do this sort of thing with case statements? or will it only work if i give it specific values like [1-9] (if this is the case then i dont think the case statement will work for what i want to do)
View 4 Replies
View Related
Mar 15, 2010
I am facing problem with the following script. Could you please look into this.echo 'Enter Staging number' case $STGNUM in
1)
for i in {'stg1-greg','stg1-marsha','stg1-peter','stg1-jan','stg2-greg','stg2-marsha','stg2-peter','stg2-jan'};do echo $i; ssh $i sudo -u dev /opt/usr/apps/workflow/stopwf.sh;done;
[code]....
View 2 Replies
View Related
Jul 27, 2010
Linux kernel 2.6, Slackware 12.0
How do I set case insensibility in searches running vim? I thought I could find this in the manual or the in browsing help within the program itself, but it was not long before I realized I was mistaken.
View 5 Replies
View Related
Mar 12, 2011
I'm rsync'ing a bunch of files between a Windows and a Linux system. Since not all Windows care about case, some of the files on the Windows system no longer have the same casing as they had on the Linux system. But rsync now treats these files as different and uploads a new copy.
Is it possible to have rsync ignore the case?
View 3 Replies
View Related
Apr 29, 2011
I am not able to figure out how can I do case-insensitive search using the find command.
I tried
find . -name -i pattern
And it does not work.
View 2 Replies
View Related
Nov 27, 2010
Is there a way of making rsync (an offspring of rcp) case insensitive? Perhaps mounting the file system (not linux) in some special way?
View 14 Replies
View Related
Jul 9, 2010
Is there any inbuilt functionality in Unix shell script so that i can able to convert lower case string input to an upper case? I dont want to use high level languages like java,python or perl for doing the job.
View 4 Replies
View Related
Feb 15, 2010
What I want to achieve is, if I have following in my file:
x y
X z
I should be able to find the pair, x Y and replace it with x a. So, basically I want to search for case sensitive 'x' but search and replace case insensitive 'y'. How should I do it? Can this be achieved with 'sed' command?
View 8 Replies
View Related
Aug 10, 2009
Is the crontab saved in case of server restarts?
View 2 Replies
View Related
Nov 12, 2010
Kernel 2.6.21.5, Slackware 12.0 bash 3.1. I have several times tried to log into my linux box and have seen the password prompt written in upper case chars. Can this be caused by something located on the other side of my connexion? Or by malignous software resident in my hard disk?
View 2 Replies
View Related
Nov 8, 2009
Two files contain:
file1:
cat
dog
fish
hamster
file2:
cat
fish
ferret
dog
How do you change the case of the letters in file1.txt to uppercase and compare with file2 all in one command?
View 2 Replies
View Related
Jul 2, 2011
I have a device that is only accessible using wireless. By default it starts an ad-hoc wireless I can connect to. The problem is there is no internet access on the ad-hoc. So I'm connecting it to my router using the commands (its a gnu/linux):
iwconfig ath0 mode managed essid "ESSID"
ifconfig ath0 192.168.1.25 netmask 255.255.255.0 up
route add default gw 192.168.1.1
I want to add it to start up script but I don't want to get locked out of the device forever if something happens to the router (its really old). Is there any way to check if the connection failed and create an ad-hoc instead if it failed?
View 1 Replies
View Related
Aug 25, 2009
Is there a flag or option to discard case sensitivity to find whether package is installed or not?
from http://www.rpm.org/max-rpm/s1-rpm-query-parts.html
Quote:
Note, however, that RPM is a bit picky about specifying package names. Here are some queries for the C library that won't work:
Code:
rpm -q libc-5.2.1
Let say I want to find out whether PyQt is installed or not but not sure the exact case, i.e. pyqt or Pyqt or ....
is there a way to find whether a package is installed or not without knowing its case exactly?
View 1 Replies
View Related
Mar 6, 2010
I have made a simple bash script through which i can add, del, edit user from certain file using different CASE variables. like
case
1. adduser
2. del user
3. edit user
Now i want to add a exit CASE like
1. adduser
2. del user
3. edit user
4. exit
Now i want to make a script such a way that, if user input is 4 then only script quit. I used with exit function also but it didn't work. if user press ENTER or other keys then also it quit the program.
View 6 Replies
View Related
May 6, 2011
Im a bit stuck with a simple script that im practicing with... im trying to get my head around some simple scripting. Basically i want to write a script that will work as below: It will ask the user to enter their userid. If its correct it will say 'Correct' If its the wrong id (But the ID exists in /etc/passwd) then it will say 'incorrect' If its not a valid userid it will say 'doesnt exist'. What i have so far is:
[Code]...
# If the user enters their own userid they will get a comment saying 'correct' $LOGNAME) echo "Correct";;
# If they enter another users ID (That exists in the /etc/passwd), then they get a message to say 'incorrect userid used'. Im not sure what i need to do here to get it to check the /etc/passwd to see if the input exists in there.... im guessing some kind of simple 'if' statement to say ---- "if 'input' exists in /etc/passwd then echo "incorrect userid used"
# If its entered incorrectly and not a valid ID then they will get this comment. Again, im guessing this part would be similar to te above option..... *) echo "not a valid ID";;
Ive managed to work out how the basic Case staements work, but to add a conditional statement based on the input, i just cant figure out. I have tried looking on google, and found some help but it doesnt really explain how i check the input against the /etc/passwd.
View 17 Replies
View Related