General :: Replace Expressions With Embedded Blanks?

Mar 13, 2010

I need to edit myfile in a script.I tried items below but it did not change anything.

myfile:
141 aaaa bb Jun 4'09su Jun15'09mo yyyy
206 vvv nn Jun 4'09su Jun16'09tu tt
208 bb yyyy Jun 4'09su Jun15'09mo vvvvvvvv

[Code].....

View 6 Replies


ADVERTISEMENT

General :: Using Grep And Expressions?

Mar 28, 2010

How can I use grep expressions so that i can find strings like the ones bellow:

New York, NY
Virginia, VA
Oregon, OR

As you can see each city starts with capital letter then it follows up with a comma, and then with the Abbreviation of the city. I used :

Code: grep -w '[A-Z].*[a-z][,][' '][A-Z][A-Z]' filename But i get no results.

View 2 Replies View Related

General :: Replace Function Replace More Than One Word With The Same Character(s)?

Apr 23, 2011

Can the Replace function replace more than one word with the same character(s)?

Also, do you know how to access the plugins provided by the gedit-plugins package?

View 3 Replies View Related

General :: Fullscreen GLUT App Display Blanks After Approx 30 Minutes

Apr 6, 2010

I'm running a fullscreen display app which shows a 3D scene in OpenGL. The app runs continiously throughout the day unattended.

Here's the sequence of events in how it's loaded:

1) The computer is turned on, and boots into F11 (x86_64)

2) A non-privileged user is automatically logged on

3) The gnome startup applications list contains an entry for a loading script

4) The loading script waits for the network interface (eth0) to ccome up, then starts the display program

This all works just fine, except that about 30 minutes after the computer is turned on and the app starts running, the screen blanks out. Attaching a mouse to the system and moving it around a bit brings the screen back to life. Likewise, SSHing into the machine and killing / restarting the application works as well. Once either of these fixes has been performed, it runs flawlessly for the rest of the day.

I have turned off the screen saver, and set the power settings for monitor shutdown to 'never'.

View 2 Replies View Related

General :: Using Wc And Grep With Regular Expressions?

Apr 16, 2010

I'm writing a program that works with text files, and I'm trying to create some filters with grep. I have various questions here, so I'll number them for clarity.

1) First of all, I'd like to know what wc -w is actually returning. The word count is less than what gedit is counting in Document Statistics, so obviously gedit is counting something (like newlines) that wc -w is not

2) Secondly, I was wondering if there was a way to grep x number of words. I'm looking for something like the -m option, but returning a certain number of words instead of lines. For example, to find the first 2000 words, do something like grep -someoption 2000 ".*" or using {1,2000}.

3) Finally, I'm trying to filter out headers and footers of a text file but having no luck. The text files are Project Gutenberg files, so they have standardized headers and footers. Here's an example: [URL]...

The header starts with "The Project Gutenberg EBook of" and ends with the line containing "START OF THIS PROJECT GUTENBERG EBOOK" The footers begin with: "End of the Project Gutenberg EBook of" My problem is, grep can find:

[Code]...

View 15 Replies View Related

General :: Terminal - Using Regular Expressions With Grep

Aug 3, 2011

I can't get this simple regular expression to work for matching emails: 'w*(?:.w*)*@w*(?:.w*)*w{2,5}'

It should be working as I have tested it with regex pal and it works just fine. I think there's a problem with optional character class but I'm not sure.

View 1 Replies View Related

General :: Global Expressions Using Vi And Shell Scripting?

Jul 29, 2010

I am trying to learn more about global expressions and how it is needed in changing stuff in vi and in shell scipting in general.My question is basic:

How can I add a " # " pound sign at the beginning of every line in a file. So if I want to remark out every line in a file, what would be the global expression for that? Is there a global expression cheat sheet?

View 4 Replies View Related

General :: Regular Expressions In Batch Script?

May 5, 2010

I am pretty new at this topic but I would like to learn it from example. The first thing I am working on is to modify the command date to be shown as DD/MM/YY only using regular expression but I dont know how to combine what there is in the regexp tutorials online and the syntax for batch scripting. Any help?

Here is what I what.
run a file test: ~# ./test
Where file test is:
#!/bin/bash
#
DATE=$( date )

[Code]..

Also if you can point me to good regexp tutorials (directed towards batch scripting), that will be great.

View 8 Replies View Related

General :: Difference Between Regular Expressions And Globbing?

Aug 26, 2010

As the subject says, can anyone explain to me what is the difference between Regular Expressions and Globbing?

View 9 Replies View Related

General :: Process Multi-line Regular Expressions?

Feb 23, 2010

How to make tools like sed operate on the whole file, instead of line-by-line?

View 14 Replies View Related

General :: Regular Expressions Match 2 File Names?

Nov 20, 2010

How can we do a simple match by regular expressions on two filenames. I plan to use it in the command 'find -regex'

Code:
hosts.txt
ipaddress.txt

View 4 Replies View Related

General :: Delete Files On The Command Line With Regular Expressions?

May 6, 2010

Lets say I have 20 files named FOOXX, where XX is the number of the file, eg 01, 02 etc. At the moment, if I want to delete all files lower than the number 10, this is easy and I just use a wildcard, eg rm FOO0* However, if I want to delete specific files ina range, eg 13-15, this becomes more difficult. rm FPP[13-15] does not work, and asks me if I wish to delete all files. Likewse rm FOO1[3-5] wishes to delete all files that begin with FOO1 So, what is the best way to delete ranges of files like this? I have tried with both bash and zsh, and I don't think they differ so much for such a basic task?

View 2 Replies View Related

General :: Installing SDK On Embedded Platform?

Jun 7, 2011

I'm trying to install a SDK iso image onto an embedded linux platform. I was able to mount the image on the platform without problems. I also created a symbolic link called "bash" in the bin directory and had that point to busybox to satisfy the first line of code in the installer: "#!/bin/bash". However, when I run the installer, I get an error: "installer: applet not found"

I get the same error when I type "bash" on the command line. Is there a way to fix this? Here is the first few lines of code that causes the error:

#!/bin/bash
DEBUG=${DEBUG:="0"} # Enables debugging options
LC_OPTION=${LC_OPTION:="prompt"} # Licensing related variable
INSTALL_PATH=${INSTALL_PATH:=$HOME} # Default installation path
declare -r SCRIPT_NAME="`basename $0`"
declare -r SCRIPT_CALLED="$0 $*"

[Code]...

View 1 Replies View Related

General :: Ubuntu - Removing Embedded Features From A PDF?

Jun 8, 2011

I'm looking for a way to remove embedded features from a PDF document. I recently purchased a Kindle DX. When I try to open some of my PDF files on the device, I get a message saying: this pdf cannot be opened due to embedded features not yet supported by kindleI'm looking for a way to remove the use of these features from the document so I can view it on my Kindle. I'm a Ubuntu Linux user. (I tried opening the PDF in Document Viewer and printing it to a PDF file by going to File->Print. This make it so I could open it on the Kindle DX, but the font is messed up and very difficult to read. This won't do.)

View 4 Replies View Related

General :: Compile C Programs For Embedded On Windows?

Nov 1, 2010

I am using embedded linux (xlinux) and i need to compile the programs on desktop pc.i am currently using eclipse.can someone suggest me how I can configure, to make a project thats compile the programs for the embedded linix where I need to run them.

View 1 Replies View Related

General :: Use Xdelta Tool On Embedded Target?

Jan 15, 2010

I need to use xdelta tool in my shell script for creating and patching diff files. My PC Linux environment (Ubuntu) has a package installer, and when I try typing xdelta on my commandline, it prompted to try "sudo apt-get install".. after which it directly accessed the packages from the Internet and installed it. So I am able to use xdelta from the command-line in my Ubuntu environment.

I need to also use xdelta on my target. I am using a NFS. The bootloader and kernel are on the target and the RFS is referred from the PC. How can I install the xdelta package on my target so that it recognises the command xdelta. On Ubuntu, "sudo apt-get install", fetched the below packages:[URL]..

View 1 Replies View Related

General :: Develop Embedded In ARM9 Controller?

Nov 14, 2010

But started to develop Embedded linux in ARM9 controller.

View 12 Replies View Related

General :: System Distribution For Learning Embedded?

Feb 12, 2010

Which linux is best for learning embedded systems which has ide like MCU8051ide, piklab and ide for arm processor.

View 2 Replies View Related

General :: Mount - Filesystem Handling For Embedded Device?

Jan 21, 2011

I am developing a device that will run Linux as its operating system.The device is a small form factor X86 device with a flash drive exposed as a SATA-device. So it is not very dissimilar from any other PC running Linux.For several good reasons I am building my own "distribution", instead of using an existing one.What confuses me is how mount/umount of the root file system is handled.I boot my kernel with the commandline "root=/dev/sda1 rw" which works fine. But everytime I do poweroff or reboot Busybox complained about no /etc/fstab, so I decided to build one.Should I have an entry for my root file system? It seems like this is shadowed by the rootfs anyway. I.e. if I have the fstab entry "/dev/sda1 / ext2 1 1" mount still reports rootfs on / type rootfs (rw)/dev/root on / type ext2 (rw,relatime,errors=continue)My questions are:Do I need to worry? Will the drive be correctly unmounted by the kernel on poweroff/reboot?If I want to perform file system checking on boot, can I do that without resorting to an initrd?

View 1 Replies View Related

General :: Dealing With NonVolatile Memory In Embedded Applications

Nov 5, 2010

I currently work within an RTOS environment without an MMU and thus have access to the entire memory map of whatever application I'm working on. As is common in the embedded world, different parts of the memory map relate to different peripherals or different types of memory. For our next generation hardware, my company is looking at moving to an MMU-enabled processor and using Linux in some shape or form. Most of us in the dept are familiar with Linux, but we are not Linux gurus by any means. So how to explicitly indicate to Linux that we need certain portions of an application to be stored in NVRam and other portions of the application to NOT be based in NVRam has us confused. None of us have a clear understanding of how user memory is delved out by Linux and how we can influence Linux to use specific portions of the memory map at specific times.

For example in this new application, we expect to have 2 memory chips, both that are DDR3 interfaces. One is a standard DDR3 chip. The other is a non-volatile MRAM with a DDR3 interface so it can be accessed by a DDR3 controller and coexist with conventional DDR3 memory. But because the portion of the memory map that the MRAM will represent will be the only portion of non-volatile memory, we are unclear how we explicitly access MRAM addresses in an MMU-controlled environment. My hail-mary guess was that we would want to somehow tell Linux that we want the MRAM's memory space to be mounted as a RAM Drive and then we access that memory as though it is a file on a HD, except it is much higher speed since it will be at DDR3/MRAM speeds. Is there a better, more straight forward way to do this? Coming from an RTOS world, Linux is going to pose some serious challenges for us, but I think it will be the right move once we are all up to speed and are thinking Linux-centric.

View 1 Replies View Related

General :: Virtual Memory Concept In Embedded System

Dec 20, 2010

We have designed a board with Cirrus Logic(arm) processor, A Flash memory and some other peripherals have been connected to that. While building kernel we have selected MMU support. We have written few custom drivers for keypad,LED,LCD. But I would like to know how virtual memory mechanism can be helpful here even though there is no any hard disk has been connected. Where will be the virtual memory reside.

View 2 Replies View Related

General :: Open Embedded - No Machine Record Defined

Feb 13, 2011

I am trying to; "bitbake base-image" and get the following:
Build Configuration:
BB_VERSION = "1.10.2"
METADATA_BRANCH = "master"
METADATA_REVISION = "8d22023"
TARGET_ARCH = "arm"
TARGET_OS = "linux-gnueabi"
MACHINE = "at91sam9g45ekes"
DISTRO = "angstrom"
DISTRO_VERSION = "2010.7-test-20110214"
TARGET_FPU = "soft"

Log data follows:
| NOTE: make -j 4 include/linux/version.h
CC=arm-angstrom-linux-gnueabi-gcc
-mno-thumb-interwork -mno-thumb
LD=arm-angstrom-linux-gnueabi-ld
| CHK include/linux/version.h
| NOTE: make -j 4 uImage
CC=arm-angstrom-linux-gnueabi-gcc
-mno-thumb-interwork
-mno-thumb LD=arm-angstrom-linux-gnueabi-ld
| CHK include/linux/version.h
| SYMLINK include/asm -> include/asm-arm
| make[1]: `include/asm-arm/mach-types.h' is up to date.
| CHK include/linux/utsrelease.h
| CALL scripts/checksyscalls.sh
| <stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
| <stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
| <stdin>:1321:2: warning: #warning syscall pselect6 not implemented
| <stdin>:1325:2: warning: #warning syscall ppoll not implemented
| <stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
| CHK include/linux/compile.h
| GEN .version
| CHK include/linux/compile.h
| UPD include/linux/compile.h
| CC init/version.o
| LD init/built-in.o
| LD .tmp_vmlinux1
| arm-angstrom-linux-gnueabi-ld: no machine record defined
| arm-angstrom-linux-gnueabi-ld: no machine record defined
| make: *** [.tmp_vmlinux1] Error 1
| FATAL: oe_runmake failed
| ERROR: Function do_compile failed
NOTE: package linux-2.6.30-r6: task do_compile: Failed

View 1 Replies View Related

Ubuntu :: Screen Blanks - Computer Still On ?

Jul 17, 2010

We have a computer, was windows, we installed ubuntu. It worked well for several months, but once in a while the screen would blank out. The computer was still on, the lights on the computer box are still on, but I can't get the screen to show anything. In the last couple of days, it now does this a couple of times a day. I have to hit the computer off switch, do a shut down, and reboot.

Any particular set of keys I can switch to get the screen to go back on? Like ctrl alt delete?

Also, how do I check the computer to see if there are any problems with the computer? There is system, system testing, does that check the hard drive, start up sequence, anything else? What else can I use to test the computer, system.

View 2 Replies View Related

Ubuntu :: Screen Blanks After 10 Minutes?

Dec 14, 2010

Since upgrading to 11.04, my screen goes blank if I am not active for 10 mins. This is really annoying if I'm sat on the sofa watching a movie through the computer!

The screensaver is set to 1 hour and the power management settings are set to 'never'. I never had this problem with the previous Ubuntu version. I'm on a desktop rather than a laptop.

View 5 Replies View Related

General :: Looking For Tools For Static / Dynamic Code Analysis For Embedded

Sep 11, 2010

I am looking for tools for static/dynamic code analysis for embedded Linux system development (both device driver and user space apps). We will use Eclipse IDE and C++ lanuage. I hope the tools are easy-to-use, reliable, popular, better with good
supports, and not-too-expensive. I already find a list of tools at WiKi, however, I don't have time to try them all. Could anyboy please recommend me a few? If you can tell
me briefly about their pros and cons, that will be the bet.

View 1 Replies View Related

General :: Solve An Intermittant Serial Port On An Embedded Medical Monitor?

May 16, 2011

I'm trying to solve an intermittant serial port problem on an embedded medical monitor. We have determined that the port is receiving characters from the external device but the serial thread is not transferring the chars from the buffer. Has anyone seen this before? Looking for some guidance on what to look for. this problem happens at start up about 1 in 50 boots. We're using kernal 2.6.29.6.

View 1 Replies View Related

General :: Looking For Tools To Analyze Code Complexity / Unit Testing For Embedded

Sep 11, 2010

I am looking for tools for static/dynamic code analysis for embedded Linux system development (both device driver and user space apps) with ARM-based processor. We use Eclipse IDE and C++ lanuage for development. Does anybody have recommendation for tools to analyze code complexity? The tools is better to support McCabe complexity metric, however, we may also consider others. Does anybody have recommendation for unit testing?

View 1 Replies View Related

General :: Preventing Screen Blank In Busybox(embedded) On A KERN Board?

Sep 24, 2010

I'm trying to run a shell script on a kern board (av1100) that shows some text output on the attached screen. The big problem is that the screen goes to blank in like 2 minutes.I'd just like to have the script showing it's output while the thing is on.Isn't there a command to stop the screen from going to blank?p.s. there is no bash available, just #!/bin/sh

Code:
#!/bin/sh
###########################################################

[code]....

View 2 Replies View Related

General :: Display Boot Splash Image On Embedded Device Using Fbsplash?

May 13, 2011

I'm working on a project to have our company logo image display on the screen during bootup. Our platform is an embedded Linux device running on a custom configured linux kernel 2.6.38.2. Our development distro is Ubuntu 10.04. I am currently trying to get fbsplash to work on our device with no luck so far.

View 1 Replies View Related

Debian :: Screen Blanks When Playing Mahjong?

Sep 24, 2015

During idle moments the last two evenings I thought I would try out Mahjong on my laptop. At first it worked ok then on the subsequent games it blanks my laptop screen after say 10mins and I have to reboot. I am using the updated Jessie. Is this a screen burnout?? My display in "settings" is showing unknown

Correction it now blanks using Iceweasel too

View 1 Replies View Related







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