Ubuntu :: Case Insensitive (Regex) CD For Script?

Oct 9, 2010

I know it's against the unix way and all that but I need a regex cd for a script to automatically move up an NTFS tree.

View 1 Replies


ADVERTISEMENT

Ubuntu Servers :: Any Way To Make Apache Case Insensitive?

Jan 10, 2011

Recently I've been migrating my development environment to ubuntu (desktop edition, because this is not a server, is just my computer) and I've been having some problems with apache case-sensitive (I'm an absolute beginner with it). I want to make apache case-insensitive, but I didn't find a complete and easy to follow solution online more than doing this:

From the command line, type sudo su to get root privileges.
nano /etc/apache2/mods-available/speling.conf
Type CheckSpelling on and hit ctrl-x, y to exit and save the file.
type a2enmod and then speling and hit enter.
type /etc/init.d/apache2 reload to reload apache.
Mistype a url to test it.

I found that here: [URL]. It worked for some things but I'm still having a lot of problems with capitalization. I don't wanna go back to windows an ISS. BTW I'm using ubuntu 10.10 desktop edition 32-bits, and I've not moved any apache configuration more than that described above.

View 3 Replies View Related

Programming :: Any Option To Make GCC Case Insensitive

Jul 11, 2010

I am working with a third party that use windows to compile. When we port that code I am running into a lot of case issues where the includes are not case sensitive. Is there any option in GCC to make it case insensitive. I know its a long shot, as I have done reading and does not seem so.

View 1 Replies View Related

General :: Windows - Make Rsync Case Insensitive

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

General :: Case Insensitive Search From Find Command?

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

Programming :: Certain Book Search - Checking Of Case Insensitive

Jan 19, 2010

I am trying to do a search for the certain books, and I am trying to make it case insensitive. what I have come up with so far is this :

Code:
Database.txt
RETARDED MONKEY:RACHEAL ABRAHAML:30:30:20
GOLD:FATIN:23.20:12:3
StUPiD:JERLYN:20:40:3

Code:
echo -n "Title: "
read Title
echo -n "Author:"
read Author
echo ""
valuecheck='grep -i "$Title" Database.txt | grep -i "$Author" | awk -F":" '{ print $1}''
echo $valuecheck
if [ $Title = $valuecheck ] ; then
echo "HOHOHO"
else
echo "too bad"
fi

The issue which I am having is that, when it does the search for the correct row to be inputted into valuecheck, it will input the value as written in the database, which is in Uppercase. For this case, if I type in stupid for $Title and jerlyn for $Author, it searches the correct row, but the awk will print "STUPID" into the variable as that is what is written in the database. So how can I make my if statement case insensitive? Currently it reads like this:

Code:
if [ $Title = $valuecheck ] ; then
which means
if [stupid = StUPiD ] ; then

How can I make the if statement it case insensitive to allow it to display "HOHOHO"

View 5 Replies View Related

Fedora Servers :: TFTP Case Insensitive To File Name Requested

Jun 19, 2010

I am downloading some files via tftp from the server (call it my server) and I need the server to be case insensitive to the file names requested. That is If I request "SoMe.TTL" and the actual file name is "some.ttl" it should send "some.ttl" back! Right now it is case sensitive and is a pain in the but because some windows clients upload files to that directory and the names can have any case. Furthermore, the file request mechanism must allow the user to input the required file name, hence the user can write using any case. Can the tftp-server solve cases by it's own? How about dnsmasq's internal tftp server? Ok, maybe I wasn't explicit above:
I need to make the fedora tftpd-server Case Insensitive!

View 2 Replies View Related

Software :: How To Make Case Insensitive When Authz User On Subversion

Jul 1, 2010

I'm using Centos 5.4 and Subversion 1.4.2. I use MySQL to authz user when connect to SVN. In MySQL database, I have a username 'Harry', and in the file access control, I typed username 'harry'. Now I just can login with 'harry' user, cannot with 'Harry'. How can I check lower case on SVN before it requires authz, I tried to use AuthzForceUsernameCase Lower but apache cannot start.

This is my subversion.conf file
<Location />
DAV svn
SVNParentPath /svn
SVNListParentPath on
AuthType Basic
AuthName "Authorization Realm"
AuthzSVNAccessFile /var/svn/svnauth
AuthMYSQLEnable on
AuthMySQLHost mydomain
AuthMySQLUser username
AuthMySQLPassword password
AuthMySQLDB db
AuthMySQLUserTable user
AuthMySQLNameField userid
AuthMySQLPasswordField passwd
AuthMySQLPwEncryption md5
Require valid-user
</Location>

View 3 Replies View Related

Software :: Mount NTFS And VFAT Partitions And Make Them Case-insensitive?

Feb 16, 2010

Is there a way I can mount NTFS and VFAT partitions and make them case-insensitive? Somehow I installed Linux this time around and it's all case sensitive. Argh.

View 6 Replies View Related

Programming :: BASH - Regex In A Case Statement?

Jun 9, 2010

the following works and BASH doesn't complain, but VIM highlights the closing square bracket is if it sees a syntax error. Is there a better way to express regex in a case statement or is this an issue with VIM?

Code:
#!/bin/bash
case $1 in

[code]...

View 3 Replies View Related

Slackware :: Mkisofs -iso-level 1 Converts To Lower Case Instead Of Upper Case?

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

Ubuntu :: Error - Set A Valid User Name Consisting Of A Lower Case Letter Followed By Lower Case Letters And Numbers

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

Programming :: Perl Switch Statement Throwing Error Like Bad Case Statement (invalid Case Value)?

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

Programming :: Fortran 90 Code - Makefile Insensitive To Change

Mar 10, 2011

I am dealing with one FORTRAN 90 code, have made small changes.

milenko@milenkons:~/mt4$ make mt4
make: 'mt4' is up to date.
milenko@milenkons:~/mt4$ ifort -c MT2DDIB1.FOR
milenko@milenkons:~/mt4$ make mt4
make: 'mt4' is up to date.
milenko@milenkons:~/mt4$ make mt4
make: 'mt4' is up to date.
milenko@milenkons:~/mt4$ make mt4
make: 'mt4' is up to date.

I go for make command but it does not see that the source code has been modified.Than I do compilation from command line,try make again but no use.
F95=ifort
FFLAFGS= -O1

mt3: driver_mt2ddi.o constants.o settings.o params.o mt2dmod.o fdsystem.o mt2ddat.o mt2dsens.o
$(F95) -o $(FFLAGS) mt3 constants.o settings.o params.o mt2dmod.o fdsystem.o mt2ddat.o mt2dsens.o driver_mt2ddi.o
driver_mt2ddi.o: driver_mt2ddi.for constants.o settings.o params.o mt2dmod.o fdsystem.o mt2ddat.o mt2dsens.o
$(F95) -c $(FFLAGS) driver_mt2ddi.for

View 2 Replies View Related

Ubuntu :: Trying To Craft Tricky Sed Regex?

May 17, 2010

I'm trying to craft a tricky regex using Sed. I'm trying to clean up some code which has bazillions of lines over 80 characters in length, mainly because of these end-of-line comments. I want to change them to a nicer format. I've put the code on Pastebin because the formatting is better: [URL]. Bear in mind those are tabs, not spaces.

View 1 Replies View Related

Ubuntu :: XML Close Tag (RegEx) Substitution (Using Sed)?

Apr 22, 2011

This makes me feel like a total n00b but I'm trying to figure out how to replace an XML close tag (such as </pagenum> ) with the same XML close tag followed by yet another close tag. (I want every occurrence of '</pagenum>' to be replaced with '</pagenum></p>').

I've tried using something like this:
Code:
sed 's/</pagenum>/</pagenum></p>/' old.xml new.xml
What am I missing? Please forgive me. I'm diving head first into RegEx.

View 5 Replies View Related

Ubuntu :: Grep - Regex And Searchstring With Singlequotes ?

Feb 4, 2011

At my work i have a legacy web system that tells the id of documents based on some given variables. this information can be used in another system to retrieve the needed file.

I am trying to automate this, and have managed to feed the variables and download the correct page using wget. The result is a result.php page with a lot of embedded info.

The information i am looking for is enclosed in single quotes on a line like this:

The information i want is the 1234 part.

I thought i could do like this from bash:

But I always get an empty string back... any idea what i am doing wrong?

View 1 Replies View Related

Ubuntu :: LibreOffice Regex - Replace [:alpha:]$

Jun 20, 2011

My friend lost her dissertation and she had only a pdf copy of it. I am trying to convert the pdf into an odt format. After copy-pasting the content into an odt, i need to replace all paragraph breaks which are not following a dot with a space. For which i thought of using the regular expression feature of Libre Office. I've not succeeded so far.

I tried: to replace [:alpha:]$ or [a-z]$ or [a-z]>$ with space, but none of them worked. Finding [a-z] seems to work, finding [a-z]> too. So did finding $ (end of paragraph) but if i combine any regex with $ then it doesn't find anything.

View 7 Replies View Related

General :: Awk/regex With A Post?

Apr 2, 2010

I have a data file with the following format 0 i j # # # # with other random lines of text to be filtered out.The following script works when there aren't many #s, but it shuffles long lists of data.

/^0/ {
split($0,token)
printf("%s %s ", $2, $3)

[code]...

View 4 Replies View Related

Software :: How To Use Regex - PreSuf

Jul 18, 2011

So I just recently downloaded Regex-PreSuf. I believe it downloaded correctly, and also install correctly (did the following):

> downloaded it
> gzipped
> tar'ed
> perl Makefile.PL
> make
> make test
> make install

This is the file listing after the make install completed:

[Code]....

The output from the make, and make install gave the All OK, but there is no documentation with it that shows how to use it? Does anyone know what you have to do to use it? From what I read, it is used to enter a string and it gives you the regex that matches that string exactly? This is what I tried, from within the directory and its the output:

[Code]....

View 4 Replies View Related

Programming :: Regex To Read An Ip?

May 14, 2011

I need a regex expression to read IP address from lines like these for my perl script:

Code:
2011.05.13-14:54:58, test@xyz.com, 180.211.51.11, pop3
2011.05.13-14:57:26, test@xyz.com, 160.234.47.12, pop3
2011.05.13-14:57:54, www@abcd.com, 166.22.22.224, imap
2011.05.13-14:57:55, www@somedomain.com, 172.58.22.154, imap
2011.05.13-15:03:08, www@example.com, 190.22.120.44, pop3

View 6 Replies View Related

Ubuntu :: Text Manipulation - Regex - Pattern Matching?

Jul 12, 2010

Are there some good tutorials or reference materials on how do pattern matching and text manipulation in Linux?I have a few simple tasks I'd like taken care of...like formatting numbers in file names, stripping some text from directory names, etc

View 2 Replies View Related

Ubuntu :: Correct Syntax For Regex In Shell Script?

Nov 5, 2010

This command works to find files that have been updated in past 90 minutes:

Code:
find ( ! -regex '.*/..*' ) -type f -mmin -90
What changes need to be made to set this as an alias in, say, .cshrc file? I'm getting:

[code]....

View 5 Replies View Related

Ubuntu :: Regex In Grep - Match With Any Character Combination

Dec 10, 2010

regex in grep? I need to match ANYTHING in the following with any character combination (something like * in findstr in C): grep "Delivery of nonspam" /var/log/mail.log | grep "to [URL]"

View 1 Replies View Related

Ubuntu :: Bash - Delete First File Matching Regex?

Mar 27, 2011

In a bash shell script, I want to do something like this:

Code:
if [[ $(ls -ld /some/dir/foo_* | wc -l) -gt 4 ]]; then
rm -rf first_match_of /some/dir/foo_*

[code]....

View 6 Replies View Related

General :: Which Regex Standard Is Used In Grep?

Apr 12, 2011

I'm wondering if it's POSIX + ASCII or something else is mixed in?

View 1 Replies View Related

General :: Regex Edit In Skype?

Jan 13, 2010

I am not a big skype user, but I was chatting with my sister, made a typo and habitually typed

tpyo
s/tpyo/typo/

to my surprise it actually changed the history. I am using the linux skype client 2.1.0.47-r1 and my sister is using 4.something on windows.

When she tried to do the same thing, it didn't work. Does anyone know if this is specific to the linux version?

View 1 Replies View Related

Programming :: ! For Not Matching Bash Regex?

Jan 13, 2011

In a bash-script, only the case if a regular expression does not match is relevant.herefore I used the exclamation mark !. But where to place it?

These two work fine, but are they equivalent?
Code: if ! [[ $abc =~ $pattern ]]; then or
Code: if [[ ! $abc =~ $pattern ]]; then Where is the ! placed more correct?

View 2 Replies View Related

Programming :: Program To Use Grep W/regex?

Jun 1, 2011

I'm just starting out with bash scripting (yesterday, really). I want to add a file to each user's home directory, pretty simple really, and send it out via our Apple Remote Desktop system to our Macs. Here is my script: Code: #!/bin/bash

for i in $(ls -d /Users/*)
doif [ -e $i/.tcshrc ]
thenecho "$i/.tcshrc exists!"elseecho "$i/.tcshrc does not exist"

[code]....

View 6 Replies View Related

General :: Regex Escape The Comma?

Aug 12, 2010

sometimes there are one, sometime there are two exchanges in this log file. the 100= is the stock exchange- if there are two, they are seperated by a comma. i understand how to escape a comma in a regex, but I am having trouble with combining it.

35=8 39=1 38=1000 32=13 14=754 31=1.11 44=1.1 100=AMEX,ISE
35=8 39=1 38=1000 32=151 14=205 31=1.1 44=1.1 100=AMEX
35=U 39=2 38=1000 32=45 14=184 31=1.1 44=1.1 100=AMEX,ISE

[code]...

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved