Search Results

Search: Posts Made By: nickrick
3,194
Posted By nickrick
replace stdout line in loop
Hi,

as part of a script i have a loop that goes though a set of files.

This loop can take some time, so i'd like to show the user that something is happening by showing them the filename...
22,144
Posted By nickrick
I don't have gawk. In this instance I'm not...
I don't have gawk.

In this instance I'm not too bothered about the occasional line being corrupted so i'm just using 'cut -c1-3000' as a workaround.

Thanks again.
22,144
Posted By nickrick
Thanks vgersh99, that worked great. so...
Thanks vgersh99, that worked great.

so sprintf can be used to assign strings to vars and in awk you can reassign new strings to the field vars.

maybe I should move this to a different forum,...
22,144
Posted By nickrick
vgersh99- wonder if your still around? How would...
vgersh99- wonder if your still around? How would you alter your awk script to process the date if it appeared in the first field of a comma delimited file? i.e

JAN 03 2009...
3,437
Posted By nickrick
Hi, The variables are created from a command...
Hi,

The variables are created from a command substitution which runs an application to describe a table structure.

What i want to do is compare the output from this application to compare the...
3,437
Posted By nickrick
cmp 2 variables
Hi I have two variables contining a set of near identical lines, i'd like to list the lines that differ? Prefereably i'd like not to save the variables into a file first.

i.e
var1
tag:val1...
4,374
Posted By nickrick
Right this is my last post on this thread! ...
Right this is my last post on this thread!

Taytalus and I crossed threads in cyberspace, so in response to his last posting:

The awk directory dosen't exist, but i tried again with your code...
4,374
Posted By nickrick
Thanks to everyone for your help. the nawk...
Thanks to everyone for your help. the nawk command didn't seem to work in my version of awk, but the post by shamrock does.

This is my first time using this forum, and i'm impressed with the level...
4,374
Posted By nickrick
That looks like a neat solution. ...
That looks like a neat solution.

Unfortunately we don't have nawk on our environment for some reason. (just scanned the server to make sure)

How would you do this with awk?
4,374
Posted By nickrick
This awk example would be a little ungainly with...
This awk example would be a little ungainly with 31 parameters, what i've been trying to do is something like this, but build an array and then print out the array to a single line when I reach an...
4,374
Posted By nickrick
The simple ones are the best Tytalus! I need...
The simple ones are the best Tytalus!

I need 31 '-' in my paste but, it'll make the code far easier to maintain in the future.

I geuss this only works if i have a consistent set of value's in a...
4,374
Posted By nickrick
Sorry for not explaining it clearly. Having...
Sorry for not explaining it clearly. Having looked at your examples I don't think they quite meet what I wanted, but they're not far off. so..

I have a file that contains a set of repeating...
4,374
Posted By nickrick
use awk to append values
Hi,

I have a file like this:

tag1:value1
tag2:value2
tag3:value3

tag1:value1
tag2:value2
tag3:value3

tag1:value1
tag2:value2
tag3:value3

and what i want is:

value1...
Showing results 1 to 13 of 13

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