Search Results

Search: Posts Made By: i_am_a_robot
3,708
Posted By i_am_a_robot
well I've been trying to put it into an array...
well I've been trying to put it into an array using

split {$1, myArray, "\n"}

and

myArray{$1}

but it just throws out a load of errors.
3,708
Posted By i_am_a_robot
Newbie Awk data sorting
Hi guys, just started using awk here.

I've got a file called a.txt which contains a load of numbers on each line e.g.

35
232
654
1
9
4

I want to learn how to do three things:

1. Find...
4,892
Posted By i_am_a_robot
Jesus that was fast. I was spending hours on this...
Jesus that was fast. I was spending hours on this yesterday trying to figure it out and you did it in a minute. So let me just go through this so I understand:

sed "s/:[^:]*$//;s/.*://" file

so...
4,892
Posted By i_am_a_robot
Sorry, I'm unfamiliar using awk and I really want...
Sorry, I'm unfamiliar using awk and I really want to learn how to do this with sed. So how would I go about doing this in sed?

Thanks
4,892
Posted By i_am_a_robot
SED scripting select
Say I have a file 'example.txt' with these lines of code in it:

hello:anddasd:cheese:gerg
whatever:sdadsa:asdfasdfa:wwew
hmmmm:something:gfhfhgf:sdasdas

Question:
1. How would I write a...
Showing results 1 to 5 of 5

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