General :: Using Grep With Accent Character Present

Jul 7, 2011

I am filtering some output from gcc with grep. But if the output contains the accent character (`) I run into a problem.Then I have to press ctrl/c to get back to a prompt.

(1) Can someone tell me what is going on? I suspect that it is trying to match up the accent with another accent. But my output is from gcc and there is no control over the fact that it uses an accent and a single quote around a name.
(2) Can someone tell me how to do the grep so it does not give the ">" prompt but instead locates "xcvr" in my example?

View 4 Replies


ADVERTISEMENT

General :: Special Character In String Variable And Grep

Apr 11, 2011

I want to match some filename in some text, but the filenames I have no control of, so "[" can "]" can appear in the filenames.so do I always have to use sed to addslashes to these variables before I have to grep them? and what other characters have I missed other than "[", "]", "."?

View 4 Replies View Related

General :: Use The Man / Info / Apropos Pages - Character Instructed The Shell To Interpret A Special Character As An Ordinary Character?

Mar 27, 2010

1.What character instructd the shell to interpret a special character as an ordinary character?

2.What directory contains some of the utilities available on the system in the form of binary files?

3. What command is used to search the location of a utility?

4. What command is used to instruct the editor to write the file and quit the editor?

5. What key quits the more utility and displays the shell prompt?

6. What command starts a child shell as the super user, taking on root's identity and environment?

7. Which wildcard characters can be used for searching all the files in the system that start with "A"?

8. The user name or login name of the super user is????

[Code]....

View 10 Replies View Related

General :: Grep A String Like "ab?c12345678" Where 3rd Character Is Unknown While Other Characters Are Known?

May 7, 2011

How to grep a string like "ab?c12345678" where 3rd character is unknown, while other characters are known.

View 2 Replies View Related

Fedora :: Grep A File For Each '#' Character And Utf-8

Aug 15, 2010

I want to grep a a file for each '#' character that starts a line, the thing is the file is utf-8 and it starts with some some characters 'ef bb bf' is there a way to have grep to work with utf-8 files ?

[Code]....

View 2 Replies View Related

Programming :: Grep Until Certain Character Or Pattern Appears

Jun 25, 2010

I have the following command that greps "/etc/cron.allow" and displays the following 9 lines of $file grep -A 9 "/etc/cron.allow" $file On the other hand I would like to grep a file for a certain text display the next couple of lines and stop when i hit a specified word or blank or pattern.Basically I would like my grep to end when the shell hits a blank, certain key word or pattern specified in command.

View 7 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

General :: Keyboard.put Orthographic Accent Wrong?

Dec 3, 2010

I have OpenSuse 11.3, KDE4 and Latin American Spanish keyboard. For several days,when I put orthographic accent (tilde) to a word and this happens:"operaci�n" or "�ltimo" or "d�as" or "operaci`on" or "`ultimo" or "d`ias", as you see puts the accent wrong

View 3 Replies View Related

Red Hat / Fedora :: LFTP From Linux To Mainframe (Data Contains Accent Characters)

Jun 9, 2010

I was wondering if someone can help me... I have a file that I am trying to LFTP from my Linux server to my Mainframe and the file is uploading but the data looks slightly corrupted..First off let me tell you the following text is French and it contains accent characters.Below is how the data looks when you view the data through vi or on the Mainframe:
factureNum

Note how the accent e is turned into a uppercase accent A and a copyright symbol.When I view the PC file in hex through Notepad ++ the turns into and the result is one character turning into two characters is a hex C3 and is a hex A9.

When I LFTP the file to the mainframe the characters are transferred and I end up with a hex 66 and a hex E4.The end result I am after is that I want to transfer my linux file, who's data looks like this on the linux server: factureNumro and like this when viewed on a PC: factureNumro to my mainframe and I want it to look the same as when I transfer it to the PC. Like this: factureNum.

View 2 Replies View Related

Programming :: Input File - Grep Within Grep

Nov 22, 2010

I need to kind of grep within grep. My input file would be something like:

[Code]....

and I need to find the first occurrence of hello before MY PATTERN (hello 9008 in this case), so the output should be:

[Code]....

View 4 Replies View Related

Ubuntu :: Frozen Panel - Messing Around With The Alternate Character Panel App And Made A Custom Character Set

Jun 12, 2011

I was messing around with the alternate character panel app and made a custom character set. I then wanted to put it on a new panel and created a new panel. I moved the character set to that panel, and then started to mess around with the panel settings (auto hide, show hide buttons, and expand, to be specific.) So far so good, until I moved the panel from the right side of the screen to the top. I already had a panel here, and it seemed not to like hiding a panel when there was already one on the top.

When the new panel hid itself, all my panels stopped responding (any clicks on them did nothing) and my processor started going at 100%. I tried a reboot and the only thing that changed is that now I can't even see my panels. I'm guessing I need to change the settings back manually through the prompt, but I don't know how to do that. I am using 10.04 and have not upgraded gnome since upgrading to 10.04.

View 1 Replies View Related

General :: Check Whether Internal Speaker Is Present Or Not?

Apr 8, 2010

I Just want to like if my system has internal speaker present or not , i'm using rhel4,i don't get any beep sound at the time of my booting,here's my some observation i made in my system

Code:
[root@malick ~]# lsmod |grep snd
snd_azx 21841 2

[code]...

View 6 Replies View Related

General :: Ubuntu: /mnt/foobar Is Not Ready Yet Or Not Present?

Dec 8, 2010

I shut down my Ubuntu 10.04 (recently upgraded from 9.04 to 9.10 to 10.04) and moved it to another location with a different monitor, keyboard, mouse. When I booted, a screen came up stating:

Quote: The disk drive for /mnt/foobar is not ready yet or not present. Continue to wait; or press S to skip mounting or M for manual recovery

View 14 Replies View Related

General :: Can't Compile A Driver Without Header Files Present?

Jun 5, 2011

I'm working with a GuruPlug...maybe you've heard of them.I'm trying to get EasyCap DC60 drivers installed on it(easycap_dc60.0.9.tar.gz), but in the README file I see that the "header files" must be present.nfortunately they are not. This little wall wart runs Debian/Lenny, probably some server oriented build.uname -r reports:2.6.32-00007-g56678ecIt boots to RunLevel 2 and stays there, incidentally.I tried apt-get install linux-headers-$(uname -r) but I am told "file not found" or something similar

View 5 Replies View Related

General :: Error Message: Device Eth0 Does Not Seem To Be Present

Jan 14, 2010

solve this error "3c501 device eth0 does not seem to be present, delaying initialization".

View 3 Replies View Related

General :: Installing Lilo Item When Drive Is Not Present

Oct 30, 2010

I have to computers: 'A' (linux) and 'B' (windos). On 'A' I have a linux system that i copy over to a movable disk on which i install the lilo bootloader. Now when I move the disk to 'B' I am able to boot into the new linux system, however I would like to have an item in the lilo boot menu from which I can boot the windows system on 'B' also. And now the tricky part: I would like to create this item when the disk is still on 'A' where windows is not present.

I have tried using "disk = /dev/hda1 inaccessible" without any luck.Is it possible to "cheat" lilo into adding an item pointing to a disk that is not present on your system ?

View 2 Replies View Related

General :: Compiling Modular Programs - Not Present Directory

Jul 6, 2010

I am trying to write modular program but when I try to compile I come to know I don't have any files in /usr/src/linux. I have installed fedora 12 which has 2.6.31.5-127.fc12.i686.PAE. I am including in my code:

linux/kernel.h
linux/module.h

Those are not present directory in /usr/src/linux is not present. My goal is to compile modular programs.

View 10 Replies View Related

General :: Recover Partition-Table Still Present In Running System?

Dec 1, 2010

I accidentially overwrote the first 1M of my harddisk on linux (using dd). So, the partition-table is gone. I can still access all partition (except the first one) using /dev/sda2 (and so on), so the data is still there. I only need the partition boundaries to restore the table. How can I do this? The Linux-Kernel must still know them because all mount-points still work. fdisk -l /dev/sda doesn't work because it acctualy reads the partition table.

View 2 Replies View Related

General :: Perfect 18th Birthday Present Ubuntu 11.04 Beta 2?

Mar 4, 2011

For those of you who have no idea, the original plan for Ubuntu 11.04 was to have only one beta release, but that has changed and there is now a Beta 1 and Beta 2. The Beta 1 has been scheduled for the time the original Beta was scheduled for, and Beta 2 has been scheduled for 20110414. For those of you who have seen my profile, that falls on the day I turn 18! (Just wanted to add my 2� here). However, I plan to be humble about it. Guys (and girls), what would you do if a Linux distro version (alpha, beta, or final) was released on your birthday?

View 14 Replies View Related

General :: 3c501 Device Etho Does Not Seem To Be Present Delaying Initialization?

Jun 7, 2010

i have problem related nici am using a dell inspiron 1545 laptop outputs are following---(1) [root@localhost ~]#lspci |grep -i ethernet 09:00.0 Ethernet Controller: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller (rev 13)

(2) [root@localhost ~]#cat /etc/modprobe.conf
alias scsi_hostadapter ahci
alias scsi_hostadapter1 usb-storage

[code]....

View 1 Replies View Related

General :: Present Working Directory Path Display - RHEL5

Jun 23, 2011

need to know, how we can display the whole (till current directory) path in below highlighted way. normally it shows only the name of current working directory after the server name.

View 3 Replies View Related

General :: VI And Vim And Set Default Character?

May 11, 2011

1,i access my server via secureCRT, when i typed the Code: vim in it, it shows Code: -bash: vim: command not found . how to install the vim? my linux version is centos.

2, when i typed some chinese characters in VI, it shows unnormal. maybe i should set the default character to UTF-8. but i don't know how to set it.

3,i want to copy a html file code to VI, how do i do?

4,how to create a file. like this? Code: mkdir filename ?how to rename the file, which i created by VI and had some contents in the file.

View 1 Replies View Related

General :: Sed Add A Character To The End Of Each Line

Aug 5, 2010

I am using the following command to add a comma to the end of each line in my file:

but for some reason the comma gets placed on a new line in between each line in the file. Why is this?

View 2 Replies View Related

General :: Bind / Map Character To Alt+?

Dec 23, 2009

In programming and various terminal programs (Screen, Vim) the [, ], { and } tends to be used a lot. I'm using a Norwegian keyboard where these are placed such that I have to stretch my fingers a bit too long for whats comfortable. To make it easier I though I'd try to make alt+[some key] be one of these characters. Is there a way that I can bind, say alt+� (Norwegian letter) to '{' system wide?Btw, is such thing called binding, mapping or something else? I'm getting a bit confused by the terms...

View 2 Replies View Related

General :: Cut Only 2nd Line And 2 Character?

Apr 6, 2010

i have a trouble here to cut a file

cut -c1-2 /etc/hasil.log
THE RESULT IS :
PI
64
64
64

[Code]....

View 10 Replies View Related

General :: 567 Is A 3 Character Number Why The O/p Is 4

Jan 11, 2011

look into the following command...

Code:
asit@ubuntu:~/script$ echo 567 | wc -c
4

though 567 is a 3 character number, why the o/p is 4 ??

View 1 Replies View Related

General :: How To Use Grep

Apr 7, 2011

I need to find file from ls - l by using grep and certain regexp.

In particular I need greep to see certain file ending, like let's say .txt but only using regex.

So it should be something like

ls -l | grep '^.+.txt$'

But that doesn't seem to work for me.

View 1 Replies View Related

General :: How To Set Character Set Per Application In Slackware

Jul 9, 2010

I am attempting to set a character set of IBM850 on slackware linux for a particular application (epic5). I am using rxvt-unicode and have setup LANG/LC_*=en_US. Now if I set the encoding to IBM850 in kde's konsole program im able to display certain characters correctly. I'd rather not use IBM850 for everything; is there a way to set/alias a command for a per application execution?

I've tried things like:
LC_CTYPE=IBM850 epic5
LC_ALL=IBM850 epic5

View 2 Replies View Related

General :: Formatting $PS1 To X Amount Of Character?

Jun 22, 2011

I'm looking for a way to force my PS1 variable to a certain number of chars.
It currently looks like:

$PS1="W $"

and I'm trying to keep the same number of characters regardless of the length of current folder name.

For example, both Documents and bin would be displayed as 10 character strings, keeping the left side of my terminal the same width all of the time.

View 1 Replies View Related

General :: Vi Command To Delete Character?

Jan 12, 2010

i need some help to solve thisif i have this , CREATE TABLE "HALOOO"in one lineafter this line they have "BRANCH INFO" how do i use the (") that is in create table line and not affect other line

View 2 Replies View Related







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