Hi Folks,
I know my code works, but I'm still a newbie at arrays and how they function.
Is there is shorter way to write my code?
Hi Experts,
I am trying to split a record into multiple records based on a value.
Input.txt
Code:
"A",1,0,10
"B",2,0,10,15,20
"C",3,11,14,16,19,21,23
"D",1,0,5
My desired output is:
Code:
"A",1,0,10
"B",2,0,10
"B",2,15,20
"C",3,11,14
"C",3,16,19
"C",3,21,23
"D",1,0,5
I trie
Hi ,
I am doing some enhancements in an existing shell script.
Hi guys,
I need help in making a command to find some data.
I have multiple files in which multiple records are present..
Hello guys, I am having problems with passing an array of ip addresses into my uniq sub routine:
Here is the code:
Code:
use strict;
use warnings;
open(OUTNOMATCH, ">nomatch.out") or die "Couldn't write to file $!";
Hello,
I'm a bit stumped, for some reason when using AWK 'print' is not printing the entire date/line.
Ok - I've got an easy one for you all on this Friday. I know the answer is staring me in the face, but I can't seem to figure it out. The problem is that the following function does not return a value for me. However, if I insert a print statement before the 'return $new_id' line, the correct id is printed to the screen.
Hi,
I have created a site and on one page it uses 2 divs side by side to display text information. in the left hand div it contains 8 links. these links when clicked load up text stored in separate text files and display it in the right hand div.
The code below was working when i ran it from my mac but when i try to load it off the webhost it fails to execute.
Hi,
I have a text file with more than 100000 records.
I used the following command
Code:
awk '{if ($3<$2) print $1"\t"$3"\t"$2"\t"$4"\t"$5}' input.txt > output.txt
But, this one is printing which satisfies the condition, which are only 1000.
I would like to get all the 100000 records in the output.txt.
How do I do it?
thanks