12-05-2018
Hi newbie_01,
Did you try what I suggested in post #4 in this thread (perhaps replacing file everywhere it appears with xx.txt)?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Thanks for giving your time and effort to answer questions and helping newbies like me understand awk.
I have a huge file, millions of lines, so perl takes quite a bit of time, I'd like to convert these perl one liners to awk.
Basically I'd like all lines with ISA sandwiched between... (9 Replies)
Discussion started by: verge
9 Replies
2. Programming
Hi guys, I asked for help on programming forums and no one didn't helped me so I ask for help here. I am playing with some tasks from my book and I can't figure where did I get wrong.
From the first program I get a blank screen, program won't generate 10*10 matrix.
And second problem is I... (6 Replies)
Discussion started by: solaris_user
6 Replies
3. Emergency UNIX and Linux Support
Hi,
I need to run a search and replace on a large database,
what I need to change is all instances of
#### (eg. 1764 or 1964)
to
(####) (eg. (1764) or (1964))
But there might be other numbers in there such as
(1764) and I do not need those changed to ((1764))
How can I... (7 Replies)
Discussion started by: lawstudent
7 Replies
4. Shell Programming and Scripting
Hi
Input:
-
--
---
----
aa-bb-cc
aa--bb--cc
aa---bb---cc
aa----bb----cc
Output:
.
-
-.
--
aa.bb.cc (7 Replies)
Discussion started by: chitech
7 Replies
5. Shell Programming and Scripting
Hi,
I'm trying to match the front and back of a sequence. It works when there is an exact match (obviously), but I need the regex to be more flexible. When we get strings of nucleotides sometimes their prefixes and suffixes aren't exact matches. Sometimes there will be an extra letter and... (2 Replies)
Discussion started by: jdilts
2 Replies
6. Shell Programming and Scripting
I have file which contains data in the following format all in a single line:
BDW_PUBLN_ID DECIMAL(18:0) NOT NULL PRIMARY INDEX ARGO_ACCT_DEP_PI ( OFC_ID ,CSHBX_ID ,TRXN_SEQ_NUM ,PROCG_DT ) PARTITION BY RANGE_N(PROCG_DT BETWEEN DATE '2012-03-01' AND DATE '2014-12-31' EACH INTERVAL '1' MONTH );... (4 Replies)
Discussion started by: ysvsr1
4 Replies
7. Shell Programming and Scripting
Hi,
Below is my input file:
Long list of significant figure
1.757E-4
7.51E-3
5.634E-5
.
.
.
Desired output file:
0.0001757
0.00751
0.00005634
.
.
. (10 Replies)
Discussion started by: perl_beginner
10 Replies
8. Shell Programming and Scripting
I have text file like below:
a.txt
Server=abc
Run=1
Time=120.123
Tables=10
Sessions=16
Time=380.123
Version=1.1
Jobs=5
Server=abc
Run=2
Time=160.123
Tables=15
Sessions=16
Time=400.258
Version=2.0 (1 Reply)
Discussion started by: sol_nov
1 Replies
9. Red Hat
Basically what the title says. Had to replace the motherboard on an HP DL380 G6 today, of course now the embedded NICs don't work because the ifcfg-eth files have the MAC addresses for the embedded NICs from the old machine.
How can I find the new/correct MAC addresses so I can edit the... (2 Replies)
Discussion started by: xdawg
2 Replies
10. Shell Programming and Scripting
Have Pipe Delimited File:
> BRYAN BAKER|4/4/2015|518 VIRGINIA AVE|TEST
> JOE BAXTER|3/30/2015|2233 MockingBird RD|ROW2On 3rd column where the address is located, I want to add a space after every numeric value - basically doing a "s//&\ / ":
> BRYAN BAKER|4/4/2015|5 1 8 VIRGINIA AVE|TEST
> JOE... (5 Replies)
Discussion started by: svn
5 Replies
LEARN ABOUT HPUX
sem_post
sem_post(2) System Calls Manual sem_post(2)
NAME
sem_post - unlock a POSIX semaphore
SYNOPSIS
DESCRIPTION
is used to post the semaphore referenced by sem. The calling thread will not return from its call to unless it can either: increment the
semaphore value, if there are no blocked threads on this semaphore; give the semaphore to a blocked thread, if there are any blocked
threads on this semaphore; or have an error condition.
If the semaphore value is < 0, the semaphore has blocked threads, waiting for it to become available (the absolute value of the semaphore's
value indicates the number of waiters at that moment). If the semaphore value is >= 0, the semaphore has no waiters.
If the semaphore has no waiters at the time its value is checked, the semaphore's value will be atomically incremented, with respect to the
checking of its value, up to its maximum value as specified by If the semaphore has waiters at the time its value is checked, the semaphore
value is not changed. Instead, the calling thread will attempt to wake up a waiter. If the semaphore has waiters having realtime priori-
ties, the thread must wake up the highest priority waiter. Otherwise the thread at the head of the channel queue is woken up.
When a waiter is successfully woken, the semaphore being posted will be given to the woken waiter. In other words, the state of the sema-
phore remains unchanged. Instead, the semaphore being posted will be inherited by the waiter being woken from this call to
If the specified semaphore referred to by sem is a named semaphore, then this semaphore must have been opened by the calling process with
The calling process must have both read and write permissions on the semaphore to perform this operation. The routine may be called asyn-
chronously, i.e. from a signal handler.
To use this function, link in the realtime library by specifying on the compiler or linker command line.
EXAMPLES
The following call to will post the semaphore sem.
RETURN VALUE
A successful call to will return 0 and the calling thread would have posted the semaphore. Otherwise, the call to will return -1 with
errno set to the appropriate value of the error condition.
ERRORS
fails and does not perform the requested operation if any of the following conditions are encountered:
[EPERM] The calling process does not have the privileges necessary to post the semaphore.
[EINVAL] The argument sem does not refer to a valid semaphore.
SEE ALSO
<semaphore.h>.
STANDARDS CONFORMANCE
sem_post(2)