General :: Identify The Single Quotes As Literals?

Mar 9, 2009

I want to grep for $_POST['whatever']. I've done enough googling and trying different things (and failing) to where I felt it appropriate to post here. How do I identify the single quotes as literals? slashes don't seem to do it.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Double Quotes And Single Quotes Not Working In 11.04?

Aug 2, 2011

I am not sure If anybody has faced this issue, my keyboard is less responsive when pressing the double quote/single quote key, I have to press it twice for it to print the quote( and that too it prints some other data and not exactly a double-quotes). Initially I thought it was issue with my keyboard, but later I see that it is working fine in Windows XP. It looks some kind of setting issue. If you check the below two examples, example a) is the double quote printed in Ubuntu, it doesnt exactly looks like a double-quotes and b) is the one printed in Windows.

View 1 Replies View Related

General :: Printing Single Quotes With Awk?

Jul 27, 2011

I have the following command, which works fine:ll /backup/PROD |grep PROD_ |awk -F" " '{print "catalog backuppiece /backup/PROD/"$9";"}'The output is:catalog backuppiece /backup/PROD/PROD_29mi42vn_1_1;BUT... I want single quotes in the result. One before /back.. and one before the ;Like this:catalog backuppiece '/backup/PROD/PROD_29mi42vn_1_1';How do I do that? I tried using ' but it does not work.The following command works, but I get an error message, which prevents me from using the command in a bash file:ll /backup/PROD |grep PROD_ |awk -F" " '{print "catalog backuppiece '''/backup/PROD/"$9"''';"}'awk: warning: escape sequence `'' treated as plain `''

View 3 Replies View Related

General :: Replacing Single Quotes In Filenames With Another Character

Jan 26, 2011

Can anyone offer a code snippet to recursively go through directories and replace any single or double quotes quotes found in a filename with another character (e.g. "_").If any of the filenames contain a single quote or double quote, then replace it with an underscore.

View 7 Replies View Related

Fedora :: Keyboard: Single And Double Quotes Not Working?

Jan 21, 2010

I have a problem with my keyboard. I�m unable to type single or double quotes, at least not the regular sort that you need to write code in almost any programming language ever invented -which makes it pretty useless.A demonstration.Single left and right tilted quotes:Double quotes: m not able to type a single straight quote at all.I just want my keyboard layout to be standard US like everyone elses so I can get on with my work so does anybody know how to just reset it to a normal layout?

View 4 Replies View Related

Debian :: X: Unable To Open Display '' (two Single Quotes)?

Jun 10, 2010

I'm experimenting with old linux Distributions again, and while trying tostart an x server, I get the following error message:X: unable to open display ''That makes me think that the config file is incomplete, but I would have no idea how to make it. If there is an auto configuration utility that I do not know about for X, it would be great to hear about. Here are some other specifications that might help:*Host: VMWare Workstation on Windows XP Home*Distribution: Debian 2.2 (potato) (Yes, I know it's old.)*Connection: Local. I've heard of people having difficulties like this on remote connections, but I am on the physical computer

View 7 Replies View Related

Programming :: Python - String To Omit The Single Quotes (')?

Mar 18, 2011

After I assign a string to a variable, I know that the print function will remove the single quotes around the value, but is there a way to assign a variable without the quotes around the value? for example:

a = open('/usr/lib', 'r+')
b = f.read()
c = x.replace('.xx','yy')
d = ?

c returns the value with quotes around it print c returns the value without the quotes Is there a way to assign a new variable (d) which will equal c without the quotes? I need a new variable which has the quotes omitted because from there the script will take the value of the last variable (which is a path to a file), and tar up that file. It won't recognize the path to the file if the value has quotes around it.

View 1 Replies View Related

Software :: Escape Single Quotes In Sed For Multi Line Pattern?

Jul 18, 2011

I have some code written in VHDL that looks as follows:

Code:
foo = "bar";
foo <= 'bar',

[code]...

View 1 Replies View Related

Programming :: Double Quotes Inside Double Quotes?

Jun 6, 2010

In bash I need to use some equivalent of double quotes inside double quotes (or the other way around.)I need to run the following statement to get the output of foo and store it in a variable while passing foo the $file which probably contains spaces.

Code:
variable=$(foo "$file")
The problem is that foo might return an empty string and if it does I need to catch it

[code]...

View 6 Replies View Related

General :: Difference Between Find Name With And W/o Quotes?

Feb 17, 2011

I was going to file a bug to findutils on gnu.org when I saw a notice that asked me whether I knew the difference between these two commands:find -name *.c and find -name "*.c".I use find command quite often but I don't think these two have any difference.

View 2 Replies View Related

General :: Add Quotes Between Words In A Cvs File?

Mar 8, 2010

I exported a spreadsheet file into cvs format.

The cvs file is formatted this way

field1,field2,field3,..etc

I want it to be in a Quote delimited format like so

"field1","field2","field3",..etc

View 2 Replies View Related

General :: Surround A Line With Quotes On Bash?

Apr 24, 2010

When I run for i in $(find -name '*.ogg'); do echo '$i'; done I don't get one line per file as I expected. Instead, when a file name has a space in it, each word comes out in a separate line, so I can't run commands on the files.

View 4 Replies View Related

General :: How To Use Rsync When Filenames Contain Double Quotes

Jan 29, 2011

I am trying to synchronize the content of the directory my_dir/ from /home to /backup. This directory contains a file which name has a double quote in it, such as to"to. Here is my rsync command:
rsync -Cazh /home/my_dir/ /backup/my_dir/

And I get the following message:
rsync: mkstemp "/backup/my_dir/.to"to.d93PZr" failed: Invalid argument (22)
For info, rsync works well when the synchronized filenames contain single quote, parenthesis and space. Thus, why is it bugging with a double quote?

View 3 Replies View Related

General :: Escaping Double Quotes In A File?

Dec 12, 2010

I know it is pretty trivial but anyway...I have php file that I am trying to read it looks like this

...
add_item_tabulky("Klaun-PF 2011","klaun_pf2011.jpg","","","");
add_item_tabulky("Pras�tko-�ťastn�

[code]...

View 3 Replies View Related

General :: Removing Quotes When Dragging Files To Terminal

Feb 18, 2010

The following script will work when I type the path to the file I want to checksum, but not when I drag the file to the terminal because the linux terminal (unlike the Mac) automatically puts quotes around the file path, which causes an error. I did not find anything in gconf-editor or anywhere else to alter this behaviour, and my post in Launchpad is unanswered so far. (the script in itself is not very useful, I just stumbled upon this error when experimenting with bash).

So, is there a workaround for stripping the quotes from the input, or can I configure the terminal to not quote the input when I drag a file into it (which I would prefer?)I am currently logged in from Mac OS, but the question refers to ubuntu karmic with which I dual boot.ADMINISTRATORS: Thanks for the quick reply to my newbie question about posting new threads. Actually I don't see now what the difficulty was; I guess I was tired from trying to debug the above script (not funny).

View 1 Replies View Related

General :: How To Identify A HDD In A Server

Jun 6, 2011

Are there any identifiers on an HDD that can be either seen physically on a "sticker" on the HDD, and the same number/identifier could be read with software solutions?

I mean if I see with e.g.: S.M.A.R.T. that an HDD (in RAID) is failing, then I give out the command:

SOMEMAGIC

then I get an OUTPUT, e.g.: 9835923759237489

and then are ther any stickers on the HDD that has a label: 9835923759237489 ? so the hdd that has to be changed could be identified.

View 2 Replies View Related

General :: How To Identify Red Hat Version

Jul 18, 2011

I have a Red Hat Linux system that does not boot. The boot partition is damaged and files cannot be recovered.

I would like to know how to find out which version of Red Hat was installed from the program/data partition which is undamaged and accessible from Fedora Live CD. I assume this is available in a configuration file somewhere.

View 2 Replies View Related

General :: Identify Whether Process Is 32 / 64 Bit?

Dec 28, 2010

On my 64 bit Linux box, i have many processes which are 32 bit and some are 64 bit, how to identify which process is 32 bit and which is 64 bit?

View 2 Replies View Related

General :: Identify Pen Drive With 'blkid'?

Aug 21, 2010

I just 0 & 1'd a pen drive, and now I dont see it in 'blkid' output. Is there a way to know where the device is on the system, so that I can format it with a filesystem?

View 3 Replies View Related

General :: Identify Newly Installed O/s?

Aug 16, 2010

how to identify freshly installed linux o/s

View 7 Replies View Related

General :: Syslog Events To Identify Particular?

May 24, 2011

I know about syslog and /var/log/* log files but I don't know what kind of events means particular problem.

E.g.
- hardware issues (?)
- security problem (/var/log/security)

[code]....

View 1 Replies View Related

General :: Ubuntu Can Not Identify My Netcard

Jul 21, 2009

I want to turn to Ubuntu, but when I install it using Ubuntu CD, It is found that Ubuntu can not identify my netcard (Intel Pro 10/100), Can not identify by sound card, Even it can not identify my video card. Anyone has a simple introduction on how to install these hardware drivers?

View 11 Replies View Related

General :: How To Identify Customizations To Installed Packages

May 11, 2011

I need to replicate my Ubuntu laptop as a VirtualBox guest. To replicate in the guest the packages currently installed in my laptop, I plan to follow the recipe given here:[URL]What I need now is a way to identify all the packages that have customizations (e.g. changes to config files, etc.)What's the best way to do this? Can dpkg figure this information out and report it?

View 2 Replies View Related

General :: How To Identify Reason Of Reboot / Shutdown?

Mar 13, 2010

i have a server which was halt on last Thursday(may be halt by some one). using Oracle Enterprise Linux 5.3.

View 2 Replies View Related

General :: Identify If A Disk Is SATA / ESATA?

Mar 9, 2010

As we know in Linux both SATA and eSATA disks are enumerated on /dev/sd[x] path. Is there a way using which i can identify if the device is an internal SATA or eSATA?

View 1 Replies View Related

General :: Identify The Target Architecture Of A Prebuilt Ko?

Mar 19, 2010

I am trying to insert a .ko into my kernel and I am getting the 'invalid module format' error. But the kernel object is being generated from or is included in a binary which sets up and populates a driver path when run. How can I tell what architecture/target/anything that .ko is meant for?

I know that I can use the uname and /proc/cpuinfo to see my current info, but I am also not sure what I might need to do to get them to sync up. I am running on a minimal, cli-install of Ubuntu8.10 right now. It's freshly installed (onto a 2GB USB drive) & imaged, so bring on the drastic changes.

View 9 Replies View Related

General :: How To Identify Current CPU In A Parallel Machine

Sep 1, 2010

I do not know much about parallel computing, but I do have access to a few cpus.I am trying to write a program compatible for multiple cpus, but to do it, I need to ensure unique directories. I have figured out that the time of creation, process id, and cpu id form a unique combination I can use to name files (up to the degree of accuracy of the internal timer).Anyway, I am using perl. I know how to find the process id and I know I can get the time pretty easily, but as I said, I do not know much about hardware or parallel computing. All I need is a way to identify each cpu in the system and I am set for half of my program (the other half is significantly more straightforward and is mainly about text parsing.)

So anyway using terminal, perl, etc., I could access this identification? Or could someone at least tell me the name of what I am looking for? I have seen the words "ip" "MAC" "hostid" and a bunch of other "id" things come up in my googling, but I really cannot figure out which is the one relevent to me

View 6 Replies View Related

General :: Identify The PID Number Of Login Shell?

Oct 12, 2010

what are the two ways you can identify the PID nimber of your login shell

View 14 Replies View Related

General :: Identify Which Grub Setting Is Used When Booting My Computer?

Apr 21, 2011

I have a computer with several Linux variants installed, each of them using a GRUB or GRUB2 setting.

How can I identify which GRUB setting is used when booting my computer?

View 1 Replies View Related

General :: Identify The USB Device Repeatly Being Reset In Syslog?

Apr 13, 2010

I noticed there're lots of "usb 3-1: reset low speed USB device using uhci_hcd and address 2" warnings in two of our server's syslog. They occur roughly every 20min. The server is a Dell R710 with CentOS 5.4 X86_64 installed. I suspect it's the virtual CD device of the iDrac6 but not sure. How Can I identify which USB device triggering these warning? The related syslog is as following:

Code:

Apr 13 23:32:47 bak2 kernel: usb 3-1: reset low speed USB device using uhci_hcd and address 2
Apr 13 23:42:44 bak2 kernel: usb 2-3: USB disconnect, address 3
Apr 13 23:45:53 bak2 kernel: usb 2-3: new high speed USB device using ehci_hcd and address 4

[code]....

View 2 Replies View Related







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