General :: How To Delete Carriage Returns In Vi

Jan 13, 2010

i assumed :i insert mode would allow to simply back space, no appearently not? it seems none of the websites anywhere on earth mention how to delete a carriage return in vi.

View 3 Replies


ADVERTISEMENT

Ubuntu :: Delete Hard Returns With Sed?

Apr 20, 2011

I would like to be able to get rid of hard returns when they show up in files (like ocr files). Is sed the best way to do this? If so, exactly what script do I use. How do I indicate the hard returns? Tried sed s/^M// source.txt >output.txt and that doesn't seem to do it.

View 3 Replies View Related

General :: Pass Carriage Return To A Command?

Feb 18, 2011

How can I pass carriage return to a command. I am writing a shell script whcih generates ssh key pair. It ask for input from user three times. I want to pass carriage return (ie. press Enter button) to this command. Is tehre any way

View 8 Replies View Related

General :: Read Carriage Return Code?

Mar 9, 2010

I have a text file have carriage return code ^L , ^K , I can use vi to read this code , can advise if I want to see this code , what can i do

View 4 Replies View Related

Programming :: Pass Carriage Return To Command Through Script

Feb 18, 2011

How can I pass carriage return to a command in the shell script. I am writing a shell script whcih generates ssh key pair. It ask for input from user three times. I want to pass carriage return (i.e., press Enter button) to this command.

View 2 Replies View Related

General :: Translate "escape" And "carriage Return" Keys?

Nov 16, 2010

I need to send the following command to a device via the com port:

<esc>&PR1<CR>

How can I do that using the echo > /dev/ttys0 or minicom ?

In particular, I don't know how to translate the "escape" and "carriage return" keys

View 5 Replies View Related

General :: Command Returns Too Much Of System Time

Aug 20, 2009

I use the time command to measure the wall-clock time of a GPU implementation of an algorithm. When I time the CPU execution of the algorithm time returns a negligible sys time. However, when I time the GPU execution time returns a sys time that is around 20-30% of the total time. If that time was comparable with the negligible sys time of the CPU I would achieve a speedup of a few times higher.

I suspect that the increased sys time is because of the GPU usage, which, I assume, takes some time for the OS because of the drivers etc. I am not sure though, and it is important to figure this out because it will improve my results a lot if I can ignore the sys time and use just the user time for speedup calculations. Also, is there a way to see, in detail, what is the sys running and takes so much time. I am thinking that I might be able to see if it is the driver indeed that causes this delay.

View 6 Replies View Related

General :: Grep - A-Z - Returns Unmatched Lines ?

Feb 21, 2011

Does anyone know why something like:

echo lowercase | grep [A-Z]

Would still return the lowercase line even tho there is no match?

Using --color will show there is no match but the line is still returned.

I am still new but from what i've learned this should not work like that. ubuntu 10.10

View 13 Replies View Related

General :: Nc -v Somehost.example.com 22 - Returns - Nc - Getaddrinfo - Name Or Service Not Known

Nov 24, 2010

I have this issue: "nc -v <ip-address> 22" works fine, but "nc -v <fqdn> 22" fails with error message "nc: getaddrinfo: Name or service not known". However, "host <fqdn>" works fine, so name resolution works. So I have a working name resolution, but nc (netcat) doesn't seems to be using it or something. Same kind of issue with "ping <fqdn>". Does anyone know how come name resolution works, but utilities such as nc and ping doesn't?

View 2 Replies View Related

General :: Installation Of Wxpython Source Returns - Error

Jan 19, 2010

I am trying to install wxpython from source package when ran ./configure command it came up with a strange message which says

Code:

Code:

View 8 Replies View Related

General :: Shell Script Returns Error When Using 'source'

Mar 21, 2011

For some reason the script below works fine when I run it directly but when I run is using source, I get a not found error?

With source: (line 11 is where the 'test' statement is)

Quote:

gtonder@sydlnx03:~> source set_aliases.sh -v 11:31AM
1
set_aliases.sh

[Code].....

View 6 Replies View Related

General :: Using / Usr / Bin / Time Always Returns 0 When Getting Maximum Resident Memory?

Mar 5, 2010

First time here at LQ, so if the post is in the wrong place, this is a bit programming related. I've been trying to find the maximum resident memory of a process in a memory constraint situation.

Instead of using top, or ps, which gives me real-time snapshot at the memory usage of a process, is there a way to determine the maximum resident memory used by a process? /usr/bin/time seem to provide this functionality within the format string

[Code]...

The minor page-fault is suspicious, does that mean memory is being used.. but not recorded? if so, how can I know how much memory is being mapped?

View 3 Replies View Related

Programming :: Termios Programming - Without Removing Carriage Return / Enter Key

Jun 30, 2010

I trying to write a UART(interfacing of serial devices) to linux machine but after I execute the following code to receive data I need to enter key (carriage return).... but I don't want to remove carriage return/enter key

[Code]....

View 13 Replies View Related

General :: Change Boot Sequence - Returns A Blank Screen

Sep 26, 2010

I want to change the Boot sequence in Ubuntu 10.04.

In the past I have used

Quote:

But with 10.04 this returns a blank screen. I assume something has changed.

View 3 Replies View Related

General :: Startvnc, Arch, E17, Returns Error, Picture Inside?

Mar 20, 2011

When I type the command

Code:
startvnc
I get the following error

[code]....

View 8 Replies View Related

General :: Python Script Using Tar From A List Returns Error: Has No Attribute 'startswith'

Apr 4, 2011

create a tar file from a list? My script returns the error: AttributeError: 'list' object has no attribute 'startswith' I want to create a compressed tar file containing the directory /usr/lib and the files in the list assigned to variable b.

code:

import tarfile
tar = tarfile.open("backup.gz", "w:gz")

[code]....

View 3 Replies View Related

General :: SSH Command Mode - Flow Of Execution Returns To Bash Shell

Aug 13, 2009

I want to use ssh to execute a command and to wait endlessly to log everything (in file) that comes as a stream of the connected server. But unfortunately, in the manual its written "If command is specified, it is executed on the remote host instead of a login shell"

So what happens is that when I specify my command:
ssh user@server "my_command"

It executed the command and the flow of execution returns to bash shell. So basically my session ends right after the command is executed. This happens only in case I specify command in the command line. If I login into ssh manually and then type "my_command", then the session doesn't end. I want the ssh not to exit, because after "my_command" executes, I want to capture everything in the session.

View 3 Replies View Related

General :: Boot Disk - Returns Kernel Panic - Not Syncing Cpu Context Corrupt

Mar 6, 2010

I am a Windows 7 user. I have two machines a laptop & a new bench top. Both machines run & boot Windows 7 very well. I use a very good program to clone my Hard Drive to an external USB drive. called Macrium Reflect. It is free and is a dream to use & very fast. This program creates a Linux based boot disk, which will allow you to find a backup clone file on an external drive to restore your hard drive. It works a treat on my laptop & has saved my bacon many times when I have messed things up fiddling with the registry etc.

The problem I am having is that my new desktop will not boot from the start up CD & returns the error kernel panic,not syncing cpu context corrupt. & then just tries to reboot again. I don't know what this problem relates to whether it is the computer hardware or the Linux CD or both. My laptop with the same OS does not have a problem, It is an Acer Aspire 5920G with 1.6ghz Intel dual core processor & 2gig Ram. The bench top has an Intel Dual core 3.3ghz processor, Zotac mother board & 4gig of Ram. both machines are running 32 bit OS.

I have browsed through the posts on this forum with people having the same error at boot, but as I am not using Linux & only using a boot CD I didn't think it appropriate to but into their threads. So I am hoping if some one can tell me is this a hardware issue or a Linux/New dual core CPU/ or Bios/Mother board issue. If it is a Linux issue then my Laptop surely would not boot would it? My bench top is only a week old and guaranteed, should I be sending it from Adelaide back to Sydney(purchased online from MWave) for fault inspection? or just take to a local Technician for a diagnosis. I am not having any hardware problem running Windows 7.

View 4 Replies View Related

General :: Access The Dbxml From The Command Line And It Returns Command Not Found?

Apr 30, 2011

I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found

path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found

Can someone point me in the right direction

View 1 Replies View Related

General :: When Adding Snbpasswd It Returns "failed To Find Entry For User Root"?

Apr 12, 2011

When adding snbpasswd it returns "failed to find entry for user root",who knows why?

View 1 Replies View Related

Ubuntu :: Change Delete Button To Delete Instead Of Move To Trash

Apr 18, 2010

Instead of moving to trash, how can i make the delete button delete? Delete is already enabled on the right click menu.

View 7 Replies View Related

Ubuntu :: Folder Wont Delete \ Whenever Try To Press Delete Noting Happens?

May 9, 2010

SO after using Testdisk to recover some images, the folders recup_dir.1 & 2 have saved in my FIle System area, when ever I try to press delete noting happens. I have also tried rm -f -rrm -f -fIt still dont delete, I have also deleted my user account and made a new one, but the files are still there.

View 4 Replies View Related

Ubuntu :: Rsync --delete Doesn't Delete Superflous Files

Sep 25, 2010

I am trying to use an old box as backup server. I have tried a couple of possibilities along the lines of:

Quote:

rsync -a --delete --progress --log-file=/home/$USER/info.txt -e ssh /home /etc root@192.168.0.106:/mnt/back

The problem is it does not delete files that has been removed from my local system?
I run the command as root on the local system.

(I realize I should properly not ssh into the server as the server's root but I'm having trouble with the permissions and I want to make sure everything else works before messing around with it)

View 2 Replies View Related

Ubuntu :: Delete File - No Right Click Delete Option?

Feb 18, 2010

Why is there no Delete when I right click like there is with Windows in ubuntu? Pretty much everything else is there like new folder and so on Is there some way to add it? Also why when i delete something does it not ask me if I am sure that i want to delete that file?

View 6 Replies View Related

Ubuntu :: Can Delete These 'un-delete-able' Files In Trash?

Nov 1, 2010

I just can't stand knowing that there's a slight problem with my PC.I have roughly 12.5 Gigs of files, mostly movies that are multiple clones of a particular movie (which was an entirely different problem altogether) and I CANNOT DELETE THESE THINGS! There has to be a simple way to do it from terminal, problem is, I can't seem to find the trash directory in terminal.

View 3 Replies View Related

General :: When Type"import WxPython" In "python Environment It Returns?

Jan 26, 2011

I have installed wxPython on my Ubuntu 9.10. But when I type"import wxPython" in "python environment it returns the followingerror.Does it need a PATH to be added in ".bashrc"? If so what should I write as a PATH for it?

>>> import wxPython
Traceback (most recent call last):
File "<stdin>", line 1, in <module>

[code]....

View 1 Replies View Related

General :: Can't Delete In VI

Mar 15, 2011

I'm taking a C programming class in college and we use VI text editor. I installed ubuntu on my computer so I can study. Every time I try to use Vi on my computer I'm able to type and delete using the delete button, but I can't delete using the backspace button. Every time I press it it only moves back on character. How can I solve my problem?

View 9 Replies View Related

Fedora :: Allow User To Save/edit/delete Documents In A Folder But Not Delete That Folder?

Sep 6, 2011

Recently I setup a system for a non-technical user. He is only using Firefox, Pidgin and OpenOffice for about 2 hours a day. I have created a folder "/home/jim/myFiles" where he can save his document files. But Jim has accidentally deleted his myFiles folder on 2 occasions. He had intended to delete a file in that folder. Is there a way to lock the folder so that the user and create/read/write documents in that folder but not delete the folder itself?

View 14 Replies View Related

Fedora :: Firefox Will Returns An Error

Mar 11, 2011

I am unable to run firefox on my Hp mini 110 running FC14. This happened, I think, after an update that I have done.

When ever I run firefox I get the following messages.

Code:

View 5 Replies View Related

Fedora :: XAWTV Cannot Run - Returns Error

May 9, 2011

I am using Fedora 14 (64 bit version): Can't Start XAWTV. Returns the error.
$ xawtv
This is xawtv-3.99.rc6, running on Linux/x86_64 (2.6.35.12-90.fc14.x86_64)
xinerama 0: 1920x1080+0+0
WARNING: No DGA direct video mode for this display.
WARNING: keeping fbuf pitch at: 7680, as no base addr was detected
WARNING: couldn't find framebuffer base address, try manual
configuration ("v4l-conf -a <addr>")
v4l2: WARNING: framebuffer base address mismatch
v4l2: me=(nil) v4l=(nil)
Warning: Missing charsets in String to FontSet conversion
Warning: Missing charsets in String to FontSet conversion
Oops: can't load any font

View 1 Replies View Related







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