Search Results

Search: Posts Made By: tugar
28,484
Posted By tugar
Hi vgersh99, Yes, it works perfectly now!
Hi vgersh99,

Yes, it works perfectly now!
28,484
Posted By tugar
Hi vgersh99, They should be the same as...
Hi vgersh99,

They should be the same as there are only 3 pages in total in my sample file. It looks like the final output has the original 3 pages without the string "This is the last line of the...
28,484
Posted By tugar
That's perfect almost! For some reason, the...
That's perfect almost!

For some reason, the output file is inserting the original 3 pages without that last line followed by the desired output of the 3 pages with the page numbers. So for 3...
28,484
Posted By tugar
Thanks again, That string is actually the...
Thanks again,

That string is actually the last line in a report print. It's a footer so every single page will have that line. The idea was to insert page numbers "Page 1 of X" on the next line...
28,484
Posted By tugar
Thanks for this. Can you please explain the...
Thanks for this.

Can you please explain the last line of code using the original file twice before the last output?



Using your snippet solves the issue although the final outfile only has...
28,484
Posted By tugar
Thanks for this, this works but it looks like the...
Thanks for this, this works but it looks like the whole document is being repeated?

#!/usr/local/bin/awk -f
#
#

BEGIN {FS=";"}

/This is the last line of the page/{a++;$0=$0"\n ...
28,484
Posted By tugar
Awk: Page number with total number of pages, EG Page 1 of 5
So I've worked how to add page numbers based on regex. It's using the footer text.

How do we get the total amount added so we have page number with the total number of pages?


Desired...
2,428
Posted By tugar
Worked flawlessly! Thank you Ravinder.
Worked flawlessly!

Thank you Ravinder.
2,428
Posted By tugar
Using awk to remove duplicate line if field is empty
Hi all,

I've got a file that has 12 fields. I've merged 2 files and there will be some duplicates in the following:

FILE:

1. ABC, 12345, TEST1, BILLING, GV, 20/10/2012, C, 8, 100, AA, TT,...
1,577
Posted By tugar
UNIX one line cmd join 2 sets of data from 2 files
Hi all,
This is my first and undoubtedly many posts to come. I'm new to using unix and would like a hand with this problem I have. What i'm trying to do is match 2 sets of data from 2 files and...
Showing results 1 to 10 of 10

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