Search Results

Search: Posts Made By: buddyme
3,506
Posted By buddyme
Thank you Ygor. Now I can optimize my script...
Thank you Ygor.
Now I can optimize my script because it creates 2
files every hour and I use paste. Now this is better.

If you have other ideas just post it here.
I just want you to know...
3,506
Posted By buddyme
Merge two strings not from files
str1="this oracle data base record"
str2="one two three four five"

Output:
this one
oracle two
data three
base four
record five

str1 and str2 have the same column but they are not fixed...
1,669
Posted By buddyme
Storing data to many files
Please help me store the content of Input file to many files.

Input file:
record
a
b
c
record
d
record
e
f
record
.....

Create file1:
a
b
c
Create file2:
4,214
Posted By buddyme
Thanks ripat and era. ripat, your script...
Thanks ripat and era.

ripat, your script will work fine but the problem is sometimes
I get only open or close within the begin and end script.

era,
Your script works beautifully. I just need...
4,214
Posted By buddyme
Thank you so much era. :b: It is very close,...
Thank you so much era. :b:
It is very close, sorry I know my example is so confusing.
Let me give another example. Basically when you see the last "open" you count 2 rows to get that line.
Below,...
4,214
Posted By buddyme
This is what I have so far. $ awk -F " "...
This is what I have so far.

$ awk -F " " /open/'{getline;getline;print $0}' openclose
data1
data3
data5

The problem is, I have to compare data1 and data3 and decides data3 is the last one.
...
4,214
Posted By buddyme
Search a line then display next 2 rows
Get occurence of "open" considering duplicates(get the last open).
Once you are pointing to the last open count 2 rows to get the correct data.

Every begin and end statement, there is a "close"...
9,151
Posted By buddyme
I find your post very helpful! bakunin,...
I find your post very helpful!

bakunin, Thank you!
rubin, Thank you!
ghostdog74, Thank you!
ShawnMilo, Thank you!
matrixmadhan, Thank you!

Now I can drink my beer. :D
9,151
Posted By buddyme
This works but it removes the comma of the 3rd...
This works but it removes the comma of the 3rd column only.
sed 's/,//3' myfile1

aaaaa,bbbbb,ccccccddddddd
aaaaa,bbbbb,cccccc
aaaaa,bbbbb,ccccccddddddd,eeeeee...
9,151
Posted By buddyme
Removing comma after 3rd column
I have 10,000 lines to remove the commas after the 3rd column. Any help will be appreciated!

Removing commas after the 3rd column

Input
aaaaa,bbbbb,cccccc,ddddddd
aaaaa,bbbbb,cccccc...
1,644
Posted By buddyme
Inserting in sorted rows
Hello Friends,

I have a file with many many rows and I want to insert some numbers in between numbers.
The number must be inserted in "correct sorted order".

1. Input = 1055555

0000001...
Showing results 1 to 11 of 11

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