Sponsored Content
Full Discussion: Removing control-Ms (^M)
Top Forums Shell Programming and Scripting Removing control-Ms (^M) Post 100855 by bhargav on Thursday 2nd of March 2006 10:59:59 AM
Old 03-02-2006
Code:
sed 's/^M// file    # Press Ctrl-V then Ctrl-M to get ^M

 

10 More Discussions You Might Find Interesting

1. Programming

Identifying and removing control characters in a file.

What is the best method to identify an remove control characters in a file. Would it be easier to do this in Unix or in C. (0 Replies)
Discussion started by: oracle8
0 Replies

2. UNIX for Advanced & Expert Users

New to Control-M

Hi, I am very new to Control-M . If anywone know about the global conditions in Control-M. (5 Replies)
Discussion started by: oraclenerd
5 Replies

3. Shell Programming and Scripting

Job control

Hello, What is the best way to control the running of scripts? For example, i have a k1.ksh script java pgm that checks to make sure that the file counts in a particular directory are equal to a total file count value in a control file updated from my PC. If i run this k1.ksh script and... (3 Replies)
Discussion started by: bobk544
3 Replies

4. Shell Programming and Scripting

Removing Control M character

Hi, I'm using MKS tool kit to execute KSH on windows and samba to move files to unix from windows. My script is appending header record for the data file. I'm using echo "$header" > $SambaFilename cat $windowsfile >> $SambaFilename But after execution of script ,The file in Unix... (2 Replies)
Discussion started by: ammu
2 Replies

5. Shell Programming and Scripting

control variables...

Hi. I´ve a question to a running script: i=0 #fill an Array with all files in a folder ending with .sys for Par in *.sys ; do Par2="$Par" ; i=$((i... (1 Reply)
Discussion started by: Lock3
1 Replies

6. Shell Programming and Scripting

Removing special characters - Control M

I have developed a small script to remove the Control M characters that get embedded when we move any file from Windows to Unix. For some reason, its not working in all scenarios. Some times I still see the ^M not being removed. Is there anything missing in the script: cd ${inputDir}... (7 Replies)
Discussion started by: vskr72
7 Replies

7. UNIX for Dummies Questions & Answers

[Solved] Removing control-m characters from shell script

Hi All, I need to remove control m character from a file. Steps which i am doing in shell script are: 1) We are comparing the header of the file to the database table header Here the file header has control-m characters. How do i remove it. Please help. Below are the steps i am using,... (12 Replies)
Discussion started by: abhi_123
12 Replies

8. Shell Programming and Scripting

Help in removing control M and Line feed in output file.

Hi All, In my output file i am getting control m character and also the line feeds at different places and with different combinations, the content of the file is supposed to be in a single line but if there is a line feed in between then from there onwards it's going into new line. I tried... (7 Replies)
Discussion started by: Bipin Kumar
7 Replies

9. UNIX for Dummies Questions & Answers

Removing the ^M control character

I've got a file where each line is separated by ^M characters. I want to be able to cat the file without those lines. When I cat the file now what I see are blank lines. However, the blank lines are actually ^M characters; when I open the file with vi they show up. X38888 No No No... (7 Replies)
Discussion started by: newbie2010
7 Replies

10. UNIX for Dummies Questions & Answers

Removing PATTERN from txt without removing lines and general text formatting

Hi Everybody! First post! Totally noobie. I'm using the terminal to read a poorly formatted book. The text file contains, in the middle of paragraphs, hyphenation to split words that are supposed to be on multiple pages. It looks ve -- ry much like this. I was hoping to use grep -v " -- "... (5 Replies)
Discussion started by: AxeHandle
5 Replies
xfmpc(1)							   User Commands							  xfmpc(1)

NAME
xfmpc - graphical GTK+ MPD client focusing on low footprint. DESCRIPTION
Xfmpc is a MPD (Music Player Daemon) client, with focus on low footprint for the Xfce desktop environment. ENVIRONMENT
MPD_HOST - Server Hostname. MPD_PORT - Server Port. USAGE
To connect to a remote machine set the environment variables MPD_HOST and MPD_PORT. See mpc(1) for more information Default Keybindings Go backward - Ctrl+B Play/Pause -Ctrl+P Stop - Ctrl+S Go forward - Ctrl+F Volume - Ctrl+V Quit - Ctrl+Q Playlist and Filter Entry Activate selected song - Enter Clear entry and recenter to current song - Escape Database Browser Go to parent directory - BackSpace Add a multiple selection to the playlist - Enter BUGS
To report a bug against xfmpc (*not* the Debian package, but the client itself), please go to: <URL:http://bugzilla.xfce.org/enter_bug.cgi?product=Xfce%20Goodies> SEE ALSO
About mpd mpc(1) About XFCE Goodies <URL:http://goodies.xfce.org/projects/applications/xfmpc> <URL:http://goodies.xfce.org/start> AUTHOR
(c) 2008 - 2009 Mike Massonnet <mmassonnet@xfce.org> xfmpc May 2009 xfmpc(1)
All times are GMT -4. The time now is 10:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy