Sponsored Content
Top Forums Shell Programming and Scripting how to get rid of ^M in the file Post 302317518 by aoussenko on Tuesday 19th of May 2009 07:51:47 AM
Old 05-19-2009
how to get rid of ^M in the file

Hi
I have a file wich contains ^M characters, looks like these are from DOS,
Is there a way to get rid of them? Thanks -A
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to get rid of blank line in a flat text file

Hi, I have a flat text file which contains blank line between each text line. Is there any command to get rid of it? Thanks for your help (11 Replies)
Discussion started by: xfang
11 Replies

2. UNIX for Advanced & Expert Users

Get rid of junk character in a file

I have a file with one of the following lines, when opened with vi 33560010686GPT£120600GBPGBP10082007DS In the above line, I want to get rid of the junk character before the £ (pound sysmbol). When I tried copying £ from windows and copy in unix vi, it prints as £ and I tried pattern replace... (2 Replies)
Discussion started by: nskworld
2 Replies

3. Shell Programming and Scripting

How can I get rid of the ` character from input file?

A sed command works most of the time however it fails sometimes. I put each line (record) I read of a file through the following command data=$(cat file | sed 's///g' | sed 's|.*ex:Msg\(.*\)ex:Msg.*|\1|' ) When I run the script I get a message that states that there is an invalid format... (6 Replies)
Discussion started by: gugs
6 Replies

4. UNIX for Dummies Questions & Answers

How to get rid of ^[[D

Hi All, Im selecting a large record from a table and putting it in a file in the unix box. The file has a hidden character "^[[D " present in it. Can any one help me in getting rid of the character Thanks in advance, (4 Replies)
Discussion started by: madhan@29
4 Replies

5. Shell Programming and Scripting

Getting rid of a field in a big file - Urgent

Hi Unix Gurus, I have a file with 100,000 lines with lines in the format: 1,35518,35518,1,2,1,72,1253889535,1253889775,240,30,152.163.141.8,US,0,00,-g 1253888723-g 1253889445 1,78973,78973,1,2,2,91,1253889535,1253889775,240,30,152.163.141.8,US,0,00,-g 1253888723-g 1253889445... (3 Replies)
Discussion started by: toms
3 Replies

6. Shell Programming and Scripting

How to get rid of cannot remove file error in bash script?

Hi Guys, I am creating a couple of temp. files in a script. After completing the script, I am using the rm command to delete these files. The files are getting deleted but I am getting "filename - cannot find file;no such file or directory" error in my bash shell terminal window. I am using... (3 Replies)
Discussion started by: npatwardhan
3 Replies

7. Shell Programming and Scripting

get rid of "^" character in a .txt file

I have a file that I ran the dos2unix utility on, it cleans up pretty well, but I noticed an occasional ^M leftover, (actual characters) these may or may not be strays from my original dos file. Either way, I want to get rid of the ^ and any character that may follow. ^M ^C or whatever. How do I... (6 Replies)
Discussion started by: ajp7701
6 Replies

8. UNIX for Dummies Questions & Answers

Any way to get rid of ^M characters in a text file using pr?

When I use vi to see what's in the file I get this: int add1(int x) {^M return x + 1;^M} ^Mint subtract1(int x) {^M return x - 1;^M} ^Mint double_it(int x) {^M return x * 2;^M} ^Mint halve_it(int x) {^Mreturn x / 2;^M} ^Mint main() {^M int myint;^M int result;^M ... (2 Replies)
Discussion started by: Nonito84
2 Replies

9. Red Hat

How to change name to get rid of name in front of file names?

admin.campaign.sql admin.cardnumber_filter.sql understand that rename is using mv command but how do I rename such that it become the following: campaign.sql cardnumber_filter.sql thanks (2 Replies)
Discussion started by: jediwannabe
2 Replies

10. Solaris

CDE, annoying file manager window. How to get rid of that

Hello, CDE workspace. How to get rid of annoying popping up file manager window which appears every time after logging in. For example.any suggestions, I would be appreciate. (3 Replies)
Discussion started by: wolfgang
3 Replies
libcaca DOS conio.h compatibility layer(3caca)			      libcaca			    libcaca DOS conio.h compatibility layer(3caca)

NAME
libcaca DOS conio.h compatibility layer - Functions __extern char * caca_conio_cgets (char *str) DOS conio.h cgets() equivalent. __extern void caca_conio_clreol (void) DOS conio.h clreol() equivalent. __extern void caca_conio_clrscr (void) DOS conio.h clrscr() equivalent. __extern int caca_conio_cprintf (const char *format,...) DOS conio.h cprintf() equivalent. __extern int caca_conio_cputs (const char *str) DOS conio.h cputs() equivalent. __extern int caca_conio_cscanf (char *format,...) DOS stdio.h cscanf() equivalent. __extern void caca_conio_delay (unsigned int) DOS dos.h delay() equivalent. __extern void caca_conio_delline (void) DOS conio.h delline() equivalent. __extern int caca_conio_getch (void) DOS conio.h getch() equivalent. __extern int caca_conio_getche (void) DOS conio.h getche() equivalent. __extern char * caca_conio_getpass (const char *prompt) DOS conio.h getpass() equivalent. __extern int caca_conio_gettext (int left, int top, int right, int bottom, void *destin) DOS conio.h gettext() equivalent. __extern void caca_conio_gettextinfo (struct caca_conio_text_info *r) DOS conio.h gettextinfo() equivalent. __extern void caca_conio_gotoxy (int x, int y) DOS conio.h gotoxy() equivalent. __extern void caca_conio_highvideo (void) DOS conio.h highvideo() equivalent. __extern void caca_conio_insline (void) DOS conio.h insline() equivalent. __extern int caca_conio_kbhit (void) DOS conio.h kbhit() equivalent. __extern void caca_conio_lowvideo (void) DOS conio.h lowvideo() equivalent. __extern int caca_conio_movetext (int left, int top, int right, int bottom, int destleft, int desttop) DOS conio.h movetext() equivalent. __extern void caca_conio_normvideo (void) DOS conio.h normvideo() equivalent. __extern void caca_conio_nosound (void) DOS dos.h nosound() equivalent. __extern int caca_conio_printf (const char *format,...) DOS stdio.h printf() equivalent. __extern int caca_conio_putch (int ch) DOS conio.h putch() equivalent. __extern int caca_conio_puttext (int left, int top, int right, int bottom, void *destin) DOS conio.h puttext() equivalent. __extern void caca_conio__setcursortype (int cur_t) DOS conio.h _setcursortype() equivalent. __extern void caca_conio_sleep (unsigned int) DOS dos.h sleep() equivalent. __extern void caca_conio_sound (unsigned int) DOS dos.h sound() equivalent. __extern void caca_conio_textattr (int newattr) DOS conio.h textattr() equivalent. __extern void caca_conio_textbackground (int newcolor) DOS conio.h textbackground() equivalent. __extern void caca_conio_textcolor (int newcolor) DOS conio.h textcolor() equivalent. __extern void caca_conio_textmode (int newmode) DOS conio.h textmode() equivalent. __extern int caca_conio_ungetch (int ch) DOS conio.h ungetch() equivalent. __extern int caca_conio_wherex (void) DOS conio.h wherex() equivalent. __extern int caca_conio_wherey (void) DOS conio.h wherey() equivalent. __extern void caca_conio_window (int left, int top, int right, int bottom) DOS conio.h window() equivalent. Detailed Description These functions implement DOS-like functions for high-level text operations. Author Generated automatically by Doxygen for libcaca from the source code. Version 0.99.beta18 Fri Apr 6 2012 libcaca DOS conio.h compatibility layer(3caca)
All times are GMT -4. The time now is 04:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy