06-10-2005
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have output a file and need to remove blank spaces in the first lines only so the file is left end justified. I need to do this while keeping the rest of the file intact.
Example of file that needs spaces removed:
space
space space
space space space
space... (3 Replies)
Discussion started by: tioray
3 Replies
2. Shell Programming and Scripting
Hi friends
i have problem
6000000001| CDC049| 109| CDC| 02/02/2006| Auto| New Add| 02/03/2006
6000000002| CDC033| 109| CDC| 02/02/2006| Auto| New Add| 02/03/2006
6000000003| CDC037| 109| CDC| 02/02/2006| Auto| New Add| 02/03/2006
6000000004| CDC031| ... (6 Replies)
Discussion started by: vishnu_vaka
6 Replies
3. Shell Programming and Scripting
hey..
i had a problem with the unix command when i want to remove the white spaces in a string..i guess i cud do it with a sed command but i get an error when i give space in the square brackets..
string="nh hjh llk"
p=`echo $string | sed 's/ //g'`
i donno how to give space charater and... (2 Replies)
Discussion started by: sahithi_khushi
2 Replies
4. UNIX for Dummies Questions & Answers
Hey,
I'm using the command from this thread https://www.unix.com/unix-dummies-questions-answers/590-converting-list-into-line.html
to convert vertical lines to horzontal lines. But I need to remove the spaces that is created. Unfortunately I can't figure out where the space is in the code..
I... (2 Replies)
Discussion started by: lost
2 Replies
5. Shell Programming and Scripting
Hi,
I want to remove spaces from data.
Data is:
1,aa ,21, 22
2,a a ,23 ,24
3, ,25 ,26
output should be:
1,aa,21,22
2,a a,23,24
3, ,25,26
i.e
i have to remove leading and trailing spaces.Not the space between data and also i dont want to remove the space if data is... (4 Replies)
Discussion started by: monika
4 Replies
6. Shell Programming and Scripting
I want a user to be able to paste in a string like "01 3F 20 1F" and have the script reformat it to "013F201F" to pass it on to the next step.
I was trying to figure it out with awk but wasnt working well.
Never mind, found answer. did not know about tr :) (7 Replies)
Discussion started by: ippy98
7 Replies
7. Shell Programming and Scripting
Hello All,
I am trying to remove all tabspaces and all blankspaces from my file using sed & awk, but not getting proper code. Please help me out.
My file is like this (<b> means one blank space, <t> means one tab space)-
$ cat file
NARESH<b><b><b>KUMAR<t><t>PRADHAN... (3 Replies)
Discussion started by: NARESH1302
3 Replies
8. Shell Programming and Scripting
Hi All,
I have a line like this
" field1;field2;field3 " (single space after and before double quotes).
Now i have to remove these single space . Kindly help me.
Thanks in advance (2 Replies)
Discussion started by: krishna_gnv
2 Replies
9. UNIX for Dummies Questions & Answers
Consider my input string as "abc|b f g|bj gy"
I am expecting the output as "abc|bfg|bj gy".
Please let me know how to achieve this in unix?
Thanks (8 Replies)
Discussion started by: pandeesh
8 Replies
10. Solaris
Hi ,
I want to go out of vi editor temporarily and execute a command in command prompt and again going back to the editor . Is it possible . Any help on this is really helpful.
1. Need to open vi
2. Temporarily come out and execute a command and go back to vi editor (6 Replies)
Discussion started by: rogerben
6 Replies
LEARN ABOUT OPENSOLARIS
pthread_detach
pthread_detach(3C) Standard C Library Functions pthread_detach(3C)
NAME
pthread_detach - detach a thread
SYNOPSIS
cc -mt [ flag... ] file... -lpthread [ library... ]
#include <pthread.h>
int pthread_detach(pthread_t thread);
DESCRIPTION
The pthread_detach() function is used to indicate to the implementation that storage for the thread thread can be reclaimed when that
thread terminates. In other words, pthread_detach() dynamically resets the detachstate attribute of the thread to PTHREAD_CRE-
ATE_DETACHED. After a successful call to this function, it would not be necessary to reclaim the thread using pthread_join(). See
pthread_join(3C). If thread has not terminated, pthread_detach() will not cause it to terminate. The effect of multiple pthread_detach()
calls on the same target thread is unspecified.
RETURN VALUES
If successful, pthread_detach() returns 0. Otherwise, an error number is returned to indicate the error.
ERRORS
The pthread_detach() function will fail if:
EINVAL The implementation has detected that the value specified by thread does not refer to a joinable thread.
ESRCH No thread could be found corresponding to that specified by the given thread ID.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
pthread_create(3C), pthread_join(3C), attributes(5), standards(5)
SunOS 5.11 23 Mar 2005 pthread_detach(3C)