Whi I'm getting control-M's


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Whi I'm getting control-M's
# 1  
Old 06-26-2007
Whi I'm getting control-M's

Hi,

I'm copying a tar file from one linux machine to my aix machine.I'm getting control-M's in all my files.If i try to remove them using a script some of my jar files are getting corrupted.I used binary mode to transfer the data.Can anyone suggest me about how can i aviod these control-M's.As far as i observed this problem is specific to AIX in my case.

Thanks in advanace
Padmavathi
# 2  
Old 06-26-2007
Why I'm getting control-M's while copy

Hi,

I'm copying files from some other linux machine to aix machine.I'm getting control-M's in all my files.My destination machine is AIX and i'm getting problem with AIX only.Can anyone suggest me how to avoid this problem.
# 3  
Old 06-26-2007
Threads merged.

Please read the forum rules, and do not cross-post.
# 4  
Old 06-26-2007
try using dos2unix untility on the file once it is on AIX.
# 5  
Old 06-26-2007
how to avoid control-M's while copying

Hi,

I'm getting problem after copying some files from linux machine to aix machine.control-M characters are coming in the files which i copied.I used bin mode to copy but still I'm getting the same problem.Any idea about to how to avoid these characters while copying
# 6  
Old 06-26-2007
didn't get you....how to use this dos2unix utility on aix
# 7  
Old 06-26-2007
When you copy files between two different *nix systems, you shouldn't be facing this problem. The newline representation on *nix is just '\n'. It is the DOS/Windows representation of '\r\n' that causes the ^M to show up. Are you sure that the files weren't taken from some Windows system to begin with?

Also, most *nixes give you a dos2unix/dos2ux utility that will take care of this problem for you. Check what it is called on AIX and you should be good to go.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Error control

I have the following bashwhile read -r line; do dcs_dportal_utl get all for $line >>file.txt if CONTROL=$(date +"%d%m%Y_%H%M%S") echo -e $line 'Created_'$control >> control.txt done < list.txt sed '/^$/d' file.txt>list_jac.txt echo '------------------ DONE' >> control.txt this... (7 Replies)
Discussion started by: viviblue1
7 Replies

2. Shell Programming and Scripting

Job Control

Using a named pipe. Run a find in the background starting in the working directory While this is happening wait for input from the user to ask him which file to find. If the user does not enter any data in 10 seconds ask the user again. Then see if the requested file name is found from the output... (0 Replies)
Discussion started by: kattak1511
0 Replies

3. Shell Programming and Scripting

Control Characters

Can somebody please help me with the query. ? I want a part of program of which should look for control characters in the flat file , when it finds it, displaying message that Control Characters found..! Please help me (13 Replies)
Discussion started by: iamnoone
13 Replies

4. 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

5. Shell Programming and Scripting

for loop control

Hi, I have taken a piece of code from a book, which is working as per the specification. The code.... for entry in * do if then echo $entry fi done The sub-directories present in the current directory will be displayed while executing. ... (3 Replies)
Discussion started by: saravanakumar
3 Replies

6. 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

7. UNIX for Advanced & Expert Users

control the process

I found that in my system , there are some strange process , it will make the system crash so I would like to control the system no such process is running , this is if the system process that its process name is "ora" AND its ppid is not "2" , then it will crash the system, can suggest how to... (2 Replies)
Discussion started by: ust
2 Replies

8. Linux

Control Panels

I'm running Linux FC 3. I'm still pretty green with the admin and am looking for solutions for control panels like cPanel and webmin. Any other freebies out there like Webmin? Thanks in advance! (1 Reply)
Discussion started by: frawsty
1 Replies
Login or Register to Ask a Question