Unix Programming - how to get rid of /n from file accept the one at the end of the line

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > August 2004 > how to get rid of /n from file accept the one at the end of the line





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to get rid of /n from file accept the one at the end of the line
Ryan Gaffuri

2004-08-19, 5:58 pm

I have a file of the form

hello|goodbye|hello /n goodbye| /n

I need to remove all /n accept for the one at the end of the line.
Problem is /n determines what the end of the line.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com