Sponsored Content
Full Discussion: Ctrl-M at end of each line
Top Forums Shell Programming and Scripting Ctrl-M at end of each line Post 302202062 by navi on Wednesday 4th of June 2008 01:03:47 AM
Old 06-04-2008
Ctrl-M at end of each line

I have a write a script in VI editor.whenever i open the Vi script ,it is showing ctrl-M at the end of each line.

Please tell me how to remove this Ctrl-M from each line.

Thanks in Advance
 

10 More Discussions You Might Find Interesting

1. AIX

Disable ctrl-c,ctrl-d,ctrl-d in ksh script

I wrote a ksh script for Helpdesk. I need to know how to disable ctrl-c,ctrl-z,ctrl-d..... so that helpdesk would not be able to get to system prompt :confused: (6 Replies)
Discussion started by: wtofu
6 Replies

2. Shell Programming and Scripting

Ctrl-C or Ctrl-Z causing exit the session

H! I have written script where it need to invoke the perl script in background, then write the pid in temp file then bring back the job to foreground. whenever the Ctrl-C or Ctrl-Z is pressed in the script has to exit and prompt should be dispalyed. but this script causing exit from shell session... (2 Replies)
Discussion started by: jramesh1
2 Replies

3. Shell Programming and Scripting

How to handle CTRL+Z or CTRL+C in shells script?

Hi, while executing shell script, in the middle of the process, if we kill the shell script( ctrl+z or ctrl+c), script will be killed and the files which using for the script will be in the folder. How to handle those scenarios. Is there any possibilities, if user breaks the script, I need to... (3 Replies)
Discussion started by: ckchelladurai
3 Replies

4. UNIX for Dummies Questions & Answers

How to specify beginning-of-line/end-of-line characters inside a regex range

How can I specify special meaning characters like ^ or $ inside a regex range. e.g Suppose I want to search for a string that either starts with '|' character or begins with start-of-line character. I tried the following but it does not work: sed 's/\(\)/<do something here>/g' file1 ... (3 Replies)
Discussion started by: jawsnnn
3 Replies

5. UNIX for Dummies Questions & Answers

vim copy line and paste at the beginning, middle, and end of another line

How would you do vim copy line and paste at the beginning, middle, and end of another line. I know yy copies the whole line and p pastes the whole line, but on its own separate line. Sometimes I would like to copy a line to the beginning, middle, or end of another line. I would think this would be... (3 Replies)
Discussion started by: cokedude
3 Replies

6. UNIX for Dummies Questions & Answers

Ctrl-V + Ctrl-J for newline character does not work inside vi editor

Hi friends, I am trying to add a newline char ('\n') between the query and the commit statement in the following shell script. #! /bin/sh echo "select * from tab; commit;" > data.sql I have tried typing in "Ctrl-V + Ctrl-J" combination which has inserted ^@ (NUL) character but the commit... (1 Reply)
Discussion started by: royalibrahim
1 Replies

7. Shell Programming and Scripting

Automation of keyboard inputs..like Ctrl+d and Ctrl+a

Hi..! I'm stuck with my automation of starting a process and keeping it running even after the current ssh session has exited.. So i'm trying to use command 'screen'. which is doing exactly what i wanted, But the problem is automation of the same. i will have to press Ctrl+a and Ctrl+d for... (2 Replies)
Discussion started by: chandana hs
2 Replies

8. Shell Programming and Scripting

Unable to generate Ctrl M at end of rec

Hello, I was wondering if someone can assist me. I have a file that I download from a mainframe to a RedHat Linux 5.5 server, the file is delimited by control underscore characters and the record is terminated by a control M (carriage return). The problem I am having is with the control M... (3 Replies)
Discussion started by: app1mvf
3 Replies

9. Shell Programming and Scripting

With script bash, read file line per line starting at the end

Hello, I'm works on Ubuntu server My goal : I would like to read file line per line, but i want to started at the end of file. Currently, I use instructions : while read line; do COMMAND done < /var/log/apache2/access.log But, the first line, i don't want this. The file is long... (5 Replies)
Discussion started by: Fuziion
5 Replies

10. Shell Programming and Scripting

Printing string from last field of the nth line of file to start (or end) of each line (awk I think)

My file (the output of an experiment) starts off looking like this, _____________________________________________________________ Subjects incorporated to date: 001 Data file started on machine PKSHS260-05CP ********************************************************************** Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
FvwmConsole(1)							   Fvwm Modules 						    FvwmConsole(1)

NAME
FvwmConsole - an fvwm command input interface SYNOPSIS
Module FvwmConsole [options] FvwmConsole can only be invoked by fvwm. Command line invocation of the FvwmConsole module will not work. DESCRIPTION
FvwmConsole allows the user to type fvwm configuration commands interactively, and have them executed immediately. This tool is particu- larly useful for testing new configuration ideas, or for implementing temporary changes to your environment. INVOCATION
FvwmConsole must be spawned as a module by fvwm. FvwmConsole takes all xterm(1) options. FvwmConsole can be invoked by inserting the line 'Module FvwmConsole' in the .fvwm2rc file. This can be placed on a line by itself, if FvwmConsole is to be spawned during fvwm's initialization, or can be bound to a menu or mouse button or keystroke to invoke it later. CONFIGURATION OPTIONS
FvwmConsole uses xterm(1). All resources set for xterm are inherited unless overridden by command line options. Module FvwmConsole -g 40x10 -fg black -bg green3 A different terminal emulator can be specified with the -terminal option. However, only terminal programs that understand the options -name, -title and -e can be used. Module FvwmConsole -terminal rxvt Previous versions of FvwmConsole supported a -e option to choose a different front-end. Although this option is still provided for back- wards compatibility its use is discouraged unless you know exactly what you are doing. Module FvwmConsole -e FvwmConsoleC.pl (see FvwmConsoleC.pl(1)). Also X resources can be set in your ~/.Xdefaults file: FvwmConsole*VT100*geometry: 40x4 FvwmConsole*font: 7x14 COMMAND EDITING
There are a few options. If the GNU readline library is available, it can be used. If Perl5 is installed, FvwmConsoleC.pl can be used as a command editor. This can be accomplished by either copying FvwmConsoleC.pl to fvwmlib directory as FvwmConsoleC or invoking FvwmConsole with -e option. For example: Module FvwmConsole -e FvwmConsoleC.pl If neither one is installed, a simple input reading function which doesn't have editing capabilities is used. GNU readline and FvwmConsoleC.pl have some frequent used commands in common as default. These commands are similar to emacs. For more details, refer GNU readline man and info pages, and FvwmConsoleC.pl man page. Ctrl-A - beginning of line Ctrl-B - previous char Ctrl-D - delete char Ctrl-E - end of line Ctrl-F - next char Ctrl-H - backspace Ctrl-K - erase to the end of line Ctrl-N - next line Ctrl-P - previous line Ctrl-R - search reverse Ctrl-U - delete line Meta-B - previous word Meta-F - next word Esc < - beginning of history Esc > - end of history EXITING
FvwmConsole can be stopped by entering the EOF character (usually CTRL-D). Note! Do not use the "quit" command, as this is an fvwm builtin: typing "quit" at the FvwmConsole command line will cause fvwm to exit. SEE ALSO
xterm(1), FvwmConsoleC.pl(1), GNU Readline library AUTHOR
FvwmConsole is the original work of Toshi Isogai. 3rd Berkeley Distribution 09 May 2010 (2.5.30) FvwmConsole(1)
All times are GMT -4. The time now is 11:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy