Search Results

Search: Posts Made By: Jonny2Vests
2,800
Posted By Jonny2Vests
Wow, now thats what I call terse. I'll have a...
Wow, now thats what I call terse. I'll have a play, thanks.
2,800
Posted By Jonny2Vests
That pastes one file alongside the other. I'd...
That pastes one file alongside the other. I'd like to pluck a single value from file 2 based on the line number of a pattern match from file1.
2,800
Posted By Jonny2Vests
awk with two files
I have two files, 1 column each and both are n lines long, eg

-12
-11.836734693877551
-11.673469387755102
...

and

02
04
06
...

I'd like to pattern match line i in file 1, determine...
3,420
Posted By Jonny2Vests
awk with really big files
Hi,

I have a text file that is around 7Gb which is basically a matrix of numbers (FS is a space and RS is \n). I need the most efficient way of plucking out a number from a specified row and...
5,260
Posted By Jonny2Vests
Cheers guys, I'll have a play with perl.
Cheers guys, I'll have a play with perl.
5,260
Posted By Jonny2Vests
Reading Numerical Binary Data using KSH
Hi,

I've searched and couldn't find anyone else with this problem. Is there anyway (preferably using ksh - but other script languages would do) that I can read in binary float data into a text...
2,027
Posted By Jonny2Vests
Automatic Arrays in ksh
Given a line of text in ksh:

string1 string2 string3 .....stringn

is there a way of automatically assigning each string to an array element? Or just different variables would do.

Thanks,
...
17,594
Posted By Jonny2Vests
Thanks guys and thanks for this ynixon, which is...
Thanks guys and thanks for this ynixon, which is quite elegant and what I was looking for. I'm using:

awk '/phrase/ {system("command "$1" ");print $3" "$4}' file > output

...the only problem is...
17,594
Posted By Jonny2Vests
awk pipes & print
Hi,

I need to awk some data from some text files, basic stuff, eg:

awk '/phrase/ {print $1,$2,$3}' file

Which will print columns 1 to 3 of all lines containing "phrase"

But what if I...
2,692
Posted By Jonny2Vests
Wow, thanks everyone, plenty to play around with.
Wow, thanks everyone, plenty to play around with.
2,692
Posted By Jonny2Vests
Thanks, but never used expr before, had a go, but...
Thanks, but never used expr before, had a go, but dont really have the syntax, could you give me the whole line?

Did it with awk and cut but it was messy. Cant find a way to awk or cut the two...
2,692
Posted By Jonny2Vests
Shortening Numbers
Hi,

I'm using ksh and I'm trying to shorten a column of figures. For example, I'd like to turn:

3456789.9876 to 89.98
567.4956 to 67.49
4669493932.34564 to 32.34
...
4,402
Posted By Jonny2Vests
Much appreciated.
Much appreciated.
4,402
Posted By Jonny2Vests
This results in the error: sed: -e...
This results in the error:

sed: -e expression #1, char 81: unknown option to `s'
4,402
Posted By Jonny2Vests
Replacing lines in text files
Hi,

I have 2 sets of text files. I need to take a field from a certain line in set 1 and put it in the same place in set b. The line appears once per file, in different places but is a set...
Showing results 1 to 15 of 15

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