Search Results

Search: Posts Made By: nwalsh88
1,356
Posted By nwalsh88
Hi Guys, Thanks for your quick responses. ...
Hi Guys,

Thanks for your quick responses.

Both of the above work as the files are now.

However if I make a change to file2 like remove b. I am returned with a blank line.

I should have...
1,356
Posted By nwalsh88
Compare 2 files using third file as an exception
Hi All,

Is it possible to compare 2 files using the contents of a third file as a guide using a bash script?

I have 2 files I want t compare (1 and 2 below) the difference between the two is...
8,238
Posted By nwalsh88
Hi balajesuri, That's perfect, thanks for...
Hi balajesuri,

That's perfect, thanks for your help
8,238
Posted By nwalsh88
sed to replace specific positions on line with file contents
Hi, I am trying to use an awk command to replace specific character positions on a line beginning with 80 with contents of another file.

The line beginning with 80 in file1 is as follows:



I...
3,295
Posted By nwalsh88
head -3 totals.txt|od -bc output = ...
head -3 totals.txt|od -bc output =


---------- Post updated at 02:38 PM ---------- Previous update was at 02:18 PM ----------

Sorry Guys,

That awk command provided worked!

There was an...
3,295
Posted By nwalsh88
Hi Guys, Thanks for the help. The awk...
Hi Guys,

Thanks for the help.

The awk command now returns

I need it to return:

Both numbers in the file end with a number followed by 00.
The Awk command seems to remove the final 0...
3,295
Posted By nwalsh88
awk sum entire string
Hi I am trying to carry out a sum on a file (totals.txt).

The file looks like:


So far i have this command


this returns 20610

I however want it to return 000000206100

Any help...
2,444
Posted By nwalsh88
Thanks Guys, Both of the above solved my...
Thanks Guys,

Both of the above solved my issue.

Best Regards to both of you
2,444
Posted By nwalsh88
Same again pamu Everything is perfect apart...
Same again pamu

Everything is perfect apart from the final line of the file which should be the 80 record but is the 70 record
2,444
Posted By nwalsh88
It's getting there now That edit to the...
It's getting there now

That edit to the script removes all the 80 records including the last one.

How could i get it to leave the last 80 record there??
2,444
Posted By nwalsh88
Thanks for your reply. Yes that is along the...
Thanks for your reply.

Yes that is along the lines of what i need.

That script removes the 00 records except the 1st

I also need it to remove all the 80 records but leave the last one as it...
2,444
Posted By nwalsh88
Remove certain lines from file based on start of line except beginning and ending
Hi, I have multiple large files which consist of the below format:



I am trying to write an awk or sed script to remove all occurrences of the 00 record except the first and remove all of the...
Showing results 1 to 12 of 12

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