I think this happens when text file is transferred an BINARY mode J B Vashisht
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, March 21, 2005 12:39 PM To: ilugd@lists.linux-delhi.org Subject: [ilugd] Query Hi all, When I ftp some components from one node to another , I found some control characters in the end of all lines. Here is copy paste : ------------------------------------- ROCEDURE PR_BOOKING_TEMPLATE_CREATION^M (P_TEMPLATE_NO IN VARCHAR2^M ,P_BOOK_NO IN SR_CURCOMMBOOKS.BOOK_NO%TYPE^M ,P_BOOK_VERSION IN SR_CURCOMMBOOKS.VERSION%TYPE^M ,P_DST_PICKUP IN sr_create_firmbooking.dst_pickupdtls^M ,P_DST_DELIVERY IN sr_create_firmbooking.dst_deliverydtls^M ,P_RETURN_CODE OUT NUMBER^M ,P_RETURN_MESG OUT VARCHAR2^M );^M PROCEDURE PR_CREATE_UPDATE_SO_BILL^M (P_REC_BILL IN OUT NOCOPY SR_PUBTYPES.DSR_BILL_DTLS^M ,P_REC_BLMULTI IN SR_PUBTYPES.DSR_BLMULTI_DTLS^M ,P_TAB_SO_ROUTES IN OUT NOCOPY SR_PUBTYPES.DST_SO_ROUTES^M ,P_SO_NUMBER OUT SR_SERVICE_ORDERS.SO_NUMBER%TYPE^M ,P_SO_NEWVERSION OUT SR_SERVICE_ORDERS.VERSION%TYPE^M ,P_REC_SOAMENDOUT OUT NOCOPY SR_AMENDMENTS.DSR_SOAMENDOUT_REC^M ,P_RETURN_CODE OUT NUMBER^M ,P_RETURN_MESG OUT VARCHAR2^M ----------------------------------- I want to remove these characters from all components in one shot by making a script. Can some one help me out, because I am unable to remove them by usual substitution commands of sed at command line. Sadeep Saxena Tata Consultancy Services Limited C - 56, Phase 2 Dist. Gautam Budh Nagar Noida - 201305,Uttar Pradesh India Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you _______________________________________________ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/ _______________________________________________ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/