Search Results

Search: Posts Made By: Jodyman
1,920
Posted By Jodyman
Thanks for the help Devaraj, the answer was "NO"....
Thanks for the help Devaraj, the answer was "NO". I tried your solution in Linux and it indeed did append a LF but also appended a blank line which would cause a blank line to be processed.

Jody
1,920
Posted By Jodyman
Right tyler, LF. I'm only worried about...
Right tyler, LF.


I'm only worried about the last line. I'm not sure in what environment the file was created in. So, if DOS, CR/LF, if UNIX/LINUX LF.

We've been able to use the...
1,920
Posted By Jodyman
RE: New Line or Not New Line, That is the question.
I received the following error in SunOS:

sed: command garbled: ${/^$/!a

Sorry, did not work for me.
1,920
Posted By Jodyman
New Line or Not New Line, that is the question.
Question:

What would be the best way to add a CR|\n|LF to the last line of a file if it doesn't have one and only if it doesn't have one?

Problem:

I get a text file in unix (HP-UX) and...
5,071
Posted By Jodyman
Thanks guys. I see I have to do a little more...
Thanks guys. I see I have to do a little more awk study. The inclusion list is much smaller than the exclusion list. About 15 out of 75. As soon as I can get logged in at work, I'll let you know...
5,071
Posted By Jodyman
Reading files using grep/sed/awk
After pouring over my LTKS and Unix in a nutshell, I'm stuck!

I have a large (BMC Report File) that has breaks on DM (district managers).

After a report header, there is a DM header like:
...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 07:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy