Search Results

Search: Posts Made By: gctex
2,659
Posted By vgersh99
A variation of Don's theme - to handle both...
A variation of Don's theme - to handle both cases:

:g/\(.* \)\([^.]*[.]*\)\(table_name\)/s//\1\2test_\3/
2,659
Posted By Don Cragun
Try: :g/\(.*[...
Try:
:g/\(.*[ .]\)\(table_name\)/s//\1test_\2/which will look for a space or a period before "table_name" instead of:
:g/\(.* \)\(table_name\)/s//\1test_\2/
Which only accepts a space before...
2,936
Posted By Scrutinizer
Hi, you would need to use the POSIX version of...
Hi, you would need to use the POSIX version of awk on Solaris: /usr/xpg4/bin/awk
2,936
Posted By Scrutinizer
Try something like this: awk ' NR==1{ ...
Try something like this:
awk '
NR==1{
n=NF
}
NR==FNR{
for(j=2; j<=n; j++) A[$1,j-1]=$j
W[$1]
next
}
{
r=$0
for(j=1; j<n; j++) {
$0=r
...
2,936
Posted By Scrutinizer
You are welcome.. You could try changing the...
You are welcome.. You could try changing the second part to this:
r=$0
for(j=1; j<n; j++) {
$0=r
f="create_" A["Name",j] ".txt"
if(FNR==1) print f
for(i in W)...
14,088
Posted By Corona688
What's your system? What's your shell? If...
What's your system? What's your shell?

If you have bash or ksh, you can do something like:

#!/bin/bash

PROCS=5 ; WAIT=0 ; END=0

# Wait for next thread.
function...
14,088
Posted By Chubler_XL
If you feel like debugging it just run jobs with...
If you feel like debugging it just run jobs with output to the terminal before the sleep:

#!/bin/ksh
PROCS=6
SLEEP=20
while read LINE
do
while true
do
NUM=$(jobs | wc...
Showing results 1 to 7 of 7

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