Search Results

Search: Posts Made By: petersf
1,418
Posted By petersf
Thanks, but that didn't seem to work. ...
Thanks,
but that didn't seem to work.

Here's the code:
sed -e '/ABC3/{N;/\n *$/D;}' -e '/ABC1/{N;/\n *$/d;}' file.tmp2 > file.dup

My output was:
ABC1 012345 header
ABC3 012345 Content...
1,418
Posted By petersf
Search and Remove No data Section
Hello,

I have written a script that removes duplicates within a file and places them in another report.

File:

ABC1 012345 header
ABC2 7890-000
ABC3 012345 Content Header
ABC5 593.0000...
2,161
Posted By petersf
Yes - Thanks for the explanation. It does help...
Yes - Thanks for the explanation. It does help to know what I'm putting in the script. Thanks again!
2,161
Posted By petersf
That Worked!!!!! Thank you "radoulov" for...
That Worked!!!!!

Thank you "radoulov" for helping me out with this!

Could you explain this part?
"h=$2_[h,$2,$3]"

Thanks!
2,161
Posted By petersf
Duplicate Line Report per Section
I've been working on a script (/bin/sh) in which I have requested and received help here (in which I am very grateful for!). The client has modified their requirements (a tad), so without messing up...
1,855
Posted By petersf
Thanks Man! I appreciate your time. Don't worry...
Thanks Man! I appreciate your time. Don't worry about my leaving. This is the real work-related stuff here!
1,855
Posted By petersf
Franklin52 - You Are Awsome!!! I've spent a good...
Franklin52 - You Are Awsome!!! I've spent a good 8 hours trying to figure this out (spanding over a few days). May I ask what book I can learn more on advanced scripting?
1,855
Posted By petersf
Placing Duplicate Lines per section into another file
Hello,

I need help in putting duplicate lines within a section into another file. Here is what I'm struggling with:

Using this file “data.txt”:

ABC1 012345 header
ABC2 7890-000
ABC3...
3,327
Posted By petersf
Thank You All - I got the script going!
Thank You All - I got the script going!
3,327
Posted By petersf
Thank you both! That solved the problem and...
Thank you both!

That solved the problem and gave me a new way of removing duplicates.

Appreciate the help!
3,327
Posted By petersf
Removing Duplicate Lines per Section
Hello,
I am in need of removing duplicate lines from within a file per section.

File:

ABC1 012345 header
ABC2 7890-000
ABC3 012345 Header Table
ABC4
ABC5 ...
1,772
Posted By petersf
Thanks - I should have realized it would be so...
Thanks - I should have realized it would be so easy.
1,772
Posted By petersf
Keeping the title of a text report
I am in need of keeping a title of a report and removing duplicates from a file like the one below. I will be using the `uniq –u` command for the removal of duplicate lines (let me know if there is...
2,314
Posted By petersf
Thanks! I think I got it. I appreciate your...
Thanks!

I think I got it. I appreciate your input. You got me out of a jam!
2,314
Posted By petersf
Thanks for your response. For the first code,...
Thanks for your response. For the first code, there were no files that were created. Although there were no error messages. What am I missing?

Thanks Again!
2,314
Posted By petersf
list file content as individual variables
Hello,

I've created a couple of files within a list using the command "ls -ltr | tail -2 > list" These files are the newest files placed within a directory. From the "list" file, I need to...
Showing results 1 to 16 of 16

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