Search Results

Search: Posts Made By: bobo
1,837
Posted By bobo
Wow! it works! Beautiful mind!
Wow! it works! Beautiful mind!
1,837
Posted By bobo
file d1 contain: 1 A 2 B 3 ...
file d1 contain:

1 A
2 B
3 C
4 D
5 E
6 F
7 G
8 H
9 I

I have this script: test.script

#!/bin/ksh

DAY=`date +%y%m%d`
H=`date...
1,837
Posted By bobo
Add a column to a file
Hi,
I have this data file that contains:
1 A
2 B
3 C
4 D
5 E
6 F
7 G
8 H
9 I
I want the results to be:
1 A A
2 B A
3 C A
4 D A
5 E A
6 F A
7 G A
8 H A
2,089
Posted By bobo
sed in a while loop with special characters
I have the foolowing data file:
File1
<p name="A">5004</p>
<p name="B">5004</p>
<p name="C">5004</p>
<p name="A">15004</p>
<p name="B">15004</p>
<p...
1,106
Posted By bobo
paste - - - - - < <( cut -f2 -d" " data1 ) this...
paste - - - - - < <( cut -f2 -d" " data1 ) this code does not work!
1,106
Posted By bobo
Arranging data
I have thousand lines of data...:
A 1
B 2
C 3
D 4
E 5
A 21
B 22
C 23
D 24
E 25
A 31
B 32
C 33
D 34
E 35

...........
ON AND AND ON
1,213
Posted By bobo
thanks!
cut -f2,4 -d"\"" filename | tr "\"" " "

This great coding!!!! Thanks!
1,213
Posted By bobo
get data
Hi friends,

I have a large of this similiar data:

<INF n="data" z="22" />

I need to get:

data 22

please let me know if you can help!
2,083
Posted By bobo
Great codes!! Work nicely!Thank you
Great codes!! Work nicely!Thank you
2,083
Posted By bobo
Great codes! It works..although I still have...
Great codes! It works..although I still have problems since my data is no longer that simple. Here is the new data:

MIN 0007
TOM_HA_M, 10
JOHN_U_A_IM, 0
WHAT_A_PROBLEM_J, 400

MIN 0839...
2,083
Posted By bobo
I need selectively to get data we need...can I...
I need selectively to get data we need...can I do?

nawk '/^[B3]/{close(f);f=$0}{print >f}' myFile will this just give me B3 or


nawk '/^[B5]/{close(f);f=$0}{print >f}' myFile and just get...
2,083
Posted By bobo
This's beautiful code; it works wonderly!!!!!!! I...
This's beautiful code; it works wonderly!!!!!!! I still have problems...What if I have these data in the file....

1B
1
2
3
C2
20
30
40
B3
7
8
D4
100
B5
21
22
23
2,083
Posted By bobo
sed/awk or help please
I have a file that contain the data below:

B1
1
2
3
B2
20
30
40
B3
7
8
B4
100
B5
21
22
23How can I retrieve the data for B1 into a seperate file.
2,347
Posted By bobo
I tried this already and it doen't work. Please...
I tried this already and it doen't work. Please reply with solution not a run-around!!!

many thanks!
2,347
Posted By bobo
Arrange data
I have a following data:

100 200
300 400

I want the data to be arranged:

100 200 300 400

What is the best way to do this?

Thanks!
8,619
Posted By bobo
grep -v
I have 2 data files:

file1 contains:

A
H
C
B

file2 contains:

H
D
F
I
A
M
O
B
W
7,452
Posted By bobo
Thanks Annihilannic
it works great!
7,452
Posted By bobo
i know how to use paste. I can't paste more then...
i know how to use paste. I can't paste more then 12 files or more. That is why I tried to see any one have other solustions.

nawk '{l[FNR]=l[FNR] $0 OFS} FNR>max {max=FNR} END {for...
7,452
Posted By bobo
thanks for the reply but it is not working. ...
thanks for the reply but it is not working.
Example:

file1
cat file1
1

file2
cat file2
2
3

file3
cat file3
3
4

awk '{l[FNR]=l[FNR] $0 OFS} FNR>max {max=FNR} END {for...
7,452
Posted By bobo
Thanks Jim! I know this technique already....
Thanks Jim!

I know this technique already. I am interested in:

somecommand file* (1 command line if possible no PIPE involve)

that will give me the results

1 2 3 4 5 6 7 8 9 10 11 12...
7,452
Posted By bobo
friends: Thank you for the replies. After...
friends:

Thank you for the replies. After look at all the replies, I think I din't make my questions clear. Here, it is again:
I have 13 files of data.
file1
cat fiel1
1

file2
cat file2...
7,452
Posted By bobo
Friends: Solution 1 is ok. I am more...
Friends:

Solution 1 is ok. I am more interested in syntax using AWK to replace PASTE or other paste option to allow me to paste more than 12 files.

paste limit of only 12 files.

...
7,452
Posted By bobo
paste more than 12 files together
Hi,

1. How can I get around the issue with pasting more than 12 files together?

2. paste file1 file2 > file3........how can I do this with awk??

Thanks!
4,532
Posted By bobo
This formula will yield the distance between 2...
This formula will yield the distance between 2 coordinates.
Can this be done in UNIX?? Anyone knows how???

Lat1 = 43.335
Lon1 = -70.9884

Lat2 = 43.4829
Lon2 = -71.246

distance...
4,532
Posted By bobo
not 2 points in excel. It's 2 points at...
not 2 points in excel. It's 2 points at different locations in a city. The result was done in excel spreadsheet.
Showing results 1 to 25 of 161

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