10-24-2014
sorry about that, maybe i am not searching with the correct keywords..would you please direct me to a thread?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Could anyone help me ?
I'm trying to join two files, but no common field are on them. So I think on generate \000\ sequence to add for each line on both files, so then will be able to join these files.
Any idea?
Thanks in advance, (2 Replies)
Discussion started by: Manu
2 Replies
2. Shell Programming and Scripting
Hello!
I am very new to Linux and I do not know where to begin...
I have a column with >64,000 elements (that are not in numberical order) like this:
name
2
5
9
.
.
.
64,000
I would like to transpose this column into a row that will later become the header of a very large file... (2 Replies)
Discussion started by: doobedoo
2 Replies
3. Shell Programming and Scripting
Hello, i have a few questions which i hope you guys can address. the 1st prob:
The database i am using is a text file which displays the information like this :
Title : Quantity : Price
Persia : 30 : 20
... (5 Replies)
Discussion started by: gregarion
5 Replies
4. Shell Programming and Scripting
Hi All,
I need the command to join 2 lines into one. I found lots of threads but none give me the sollution. Probably because unix scripting is one of my best features ;)
I got a logfile where line 2 needs to be joined with line 1, lines 4 needs to be joined with line 3 etc
If you need... (16 Replies)
Discussion started by: rene21976
16 Replies
5. Shell Programming and Scripting
To give you some context of my issue the following is some sample dummy data. The field delimiter is "<-->". The 4th field is going to be tags for my notes. The tags should always be unique and sorted alphabetically.
1<-->01/20/12<-->01/20/12<-->1st note<-->1st note<-NL->2 lines... (4 Replies)
Discussion started by: adamreiswig
4 Replies
6. Shell Programming and Scripting
I do have many files of the following format.
File_1.txt
1 24
2 25
3 27
4 28
5 29
6 1
File_2.txt
2 5
3 8
4 9
5 10
File_3.txt (3 Replies)
Discussion started by: Lucky Ali
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I'm having some trouble joining these two files for some reason. Here is what they look like:
head *
I'm using:
join -a 1 -1 2 -2 1 f1 f2 -t, > joinfile.out
but unfortunately nothing is happening. I did notice that I was having trouble sorting f1 and I'm not sure why using:... (6 Replies)
Discussion started by: verse123
6 Replies
8. Shell Programming and Scripting
Hello masters,
Please help on the following.
I have a tab delimited file with subfields space delimited.
1 a b x y hhghd ghgf
2 v t f g gdgdgdg hghg
I have 3 lookup table files tab delimited, for fields 2,3 and 4 respectively
Lookup2
a 10
b 20
v 30
t 40
Lookup3 (12 Replies)
Discussion started by: ritakadm
12 Replies
9. Shell Programming and Scripting
hello gurus,
Somebody must have done this before, I couldn't find anything. Please redirect me if this was solved before, and if not please help.
To the problem now, I have multiple csv files (about 1000) which I need to concatenate by column header. The final file should have a superset... (4 Replies)
Discussion started by: abh.kumar
4 Replies
10. Shell Programming and Scripting
Hello,
I have 2 csv as follows:
a.csv:
name,phone,adress,car
xy,1234,asbd
yz,2134,asbdf
tc,6789,salkdur
b.csv:
telphone,vehicle
2134,toyota
6789,bmw
1234,honda
What is need is this:
output.csv:
name,phone,adres,car
xy,1234,asbd,honda
yz,2134,asbdf,toyota (7 Replies)
Discussion started by: Zam_1234
7 Replies
LEARN ABOUT DEBIAN
iv_tls_user_register
iv_tls(3) ivykis programmer's manual iv_tls(3)
NAME
iv_tls_user_register, iv_tls_user_ptr - thread-local storage handling for ivykis modules
SYNOPSIS
#include <iv_tls.h>
struct iv_tls_user {
size_t sizeof_state;
void (*init_thread)(void *st);
void (*deinit_thread)(void *st);
};
void iv_tls_user_register(struct iv_tls_user *tu);
void *iv_tls_user_ptr(struct iv_tls_user *tu);
DESCRIPTION
The iv_tls interface provides thread-local storage handling to ivykis modules.
An ivykis module can arrange for an amount of memory to be allocated for its use in each ivykis thread by calling iv_tls_user_register.
This must be done before any calls to iv_init have been made in this process, and is typically done from a module initialization function
marked as a constructor function.
The ->sizeof_state member of the passed-in structure indicates how many bytes of memory the module wants allocated for its use in every
ivykis thread.
When a thread calls iv_init, ->sizeof_state bytes of memory will be allocated for use by this module in that thread, and initialised to
zero. A pointer to this memory area can be obtained by calling iv_tls_user_ptr (which returns NULL in non-ivykis threads).
If the specified ->init_thread function pointer is not NULL, it will be invoked at the end of iv_init, with its argument pointing to this
thread's memory area allocation for this module.
If ->deinit_thread is not NULL, it will be invoked at the start of iv_deinit, or if the thread fails to call iv_deinit before terminating,
at thread termination time. The argument passed into ->deinit_thread is the same as for ->init_thread.
It is permitted to call any ivykis API functions from the ->init_thread and ->deinit_thread callbacks.
There is no explicit serialization on calls to ->init_thread and ->deinit_thread.
Care must be taken when calling iv_tls_user_ptr from a signal handler, as there is a time window where it will return a non-NULL value
before ->init_thread or after ->deinit_thread have been called.
Use of iv_tls for managing thread-local state is preferred over direct use of the __thread keyword, as not all platforms that ivykis runs
on provide the __thread keyword.
Use of iv_tls for managing thread-local state is preferred over direct use of the pthread_key_create and pthread_setspecific APIs, as
iv_tls provides a thread init hook as well as a destructor hook, and properly sequences ->init_thread and ->deinit_thread calls with core
ivykis initialization and cleanup.
SEE ALSO
iv_init(3)
ivykis 2012-03-30 iv_tls(3)