Search Results

Search: Posts Made By: hydrabane
1,896
Posted By hydrabane
I think you can do this in a awk one liner. This...
I think you can do this in a awk one liner. This will basically just append a number corresponding to the number of times a value has appeared consecutively in each column.


awk '{ for(i=1;...
1,458
Posted By hydrabane
When I ran this code the output was: ...
When I ran this code the output was:



I ended up kludging this together:


awk '{ split($0,characters," ")
getline x < "numbers.txt"
split(x,numbers," ")
for (i in numbers) {
if...
1,458
Posted By hydrabane
Perform Operations on One File Conditional on Data in Another File
Hello all,

I am looking for a solution to the following problem. Perl or python solutions also welcome.

Given this input:



And this input:



I want to get this output.


...
2,379
Posted By hydrabane
Thanks Everyone! I like that one word per phone...
Thanks Everyone! I like that one word per phone call analogy! I now understand the problem much better.
2,379
Posted By hydrabane
Avoiding For Loop in Shell Script
I am looking to a solution to the following problem. I have a very large file that looks something like this:



Each group of three numbers on each line are three probabilities that sum to...
1,266
Posted By hydrabane
Duplicate each field in a text file
Hello all,

I am searching for a solution to the following problem:

Given input such as this:


I would like to find a way to output this:



Thanks in advance!
Showing results 1 to 6 of 6

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