10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. Shell Programming and Scripting
Hi All,
We are getting an external file in abc.csv format. When opened in excel spread sheet, it is opening alright. But when opened in notepad, I see the contents in a single line.
Ftp'd the file in binary mode to AIX UNIX host. When opened, I see Control M (^M) characters in place of New Line... (16 Replies)
Discussion started by: njny
16 Replies
3. Shell Programming and Scripting
Hi All,
we are doing automation for installation of oracle,
a) ORACLE_HOME_NAME
b) ORACLE_HOME
above are the argument we need to pass during the script execution, while doing this someone issue the value like
ORACLE_HOME=/optware/oracle/11g;rm -rf /optware/oracle/10g
its removing... (1 Reply)
Discussion started by: kamauv234
1 Replies
4. Shell Programming and Scripting
in a file we are getting control character in a file , is there any way that they can be removed once we have the file
for eg.
BEGIN-PROCEDURE INITIALIZE
^M
LET #row_count = 0^M
^M
^M (2 Replies)
Discussion started by: lalitpct
2 Replies
5. Shell Programming and Scripting
We have successfully created a comma delimited file, the results are correct from an sql database query. When using the following headers to print the file using print $data, an extra line feed is added and a blank row appears on the top of the data in Excel:
header("Expires: 0");
... (0 Replies)
Discussion started by: ifimbres
0 Replies
6. UNIX for Dummies Questions & Answers
Sorry to bug you, but my sed is failing me,
I have a file auto generated from abinitio, it has a string of chars ending with a line break, and then it has added a ^A character, I can remove this is vi by using the following %s/^A//g (where ^A is ctrl v and control A), however when I try to sed... (1 Reply)
Discussion started by: badg3r
1 Replies
7. Shell Programming and Scripting
Need to replace any control character in the string in perl
---------- Post updated at 04:22 PM ---------- Previous update was at 03:50 PM ----------
Any help !!!
Thanks in advance (2 Replies)
Discussion started by: hansini
2 Replies
8. UNIX for Dummies Questions & Answers
can any one say about command to find "^M" (Control M)characters in a unix text file.
^M comes when a file ftped from windows to unix without using bin mode.
I need the command to find lik this,
ex.txt:
------------------------------
...,name,time^M
go^M
...file,end^M... (5 Replies)
Discussion started by: prsam
5 Replies
9. Shell Programming and Scripting
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
10. UNIX for Dummies Questions & Answers
Hi All,
I am looking for a solution to capture any ASCII control character in a file
( where the ASCII control character is in decimal value from 0 to 31 and 127
( Hex value from 00 to 1F and 7F ) ) by returning any affected lines.
The intended good file should contain "ASCII printable... (5 Replies)
Discussion started by: cursive
5 Replies