Unix/Linux Go Back    

Showing results 1 to 25 of 500
Search took 0.12 seconds.
Search: Posts Made By: RudiC
Forum: Shell Programming and Scripting Linux 6 Hours Ago
Replies: 9
Views: 183
Posted By RudiC
My man bash says so it provides that feature.

My man bash says
so it provides that feature.
Forum: Shell Programming and Scripting Linux 7 Hours Ago
Replies: 9
Views: 183
Posted By RudiC
What does your bash's man page say about "process...

What does your bash's man page say about "process substitution"?
Forum: Shell Programming and Scripting Linux 7 Hours Ago
Replies: 9
Views: 183
Posted By RudiC
What's your shell version? "process substitution"...

What's your shell version? "process substitution" works only in recent shells.
Forum: Shell Programming and Scripting Linux 8 Hours Ago
Replies: 5
Views: 172
Posted By RudiC
Try awk ' {T[NR] = $1 } ...

Try
awk '
{T[NR] = $1
}

END {printf "select id"
for (i=1; i<=NR; i++) printf ",%s", T[i]
print " from (" ORS "select a.id,"
for (i=1; i<=NR;...
Forum: Shell Programming and Scripting Linux 9 Hours Ago
Replies: 6
Views: 182
Posted By RudiC
I second Don Cragun in his third expectation;...

I second Don Cragun in his third expectation; that's why I asked how you called the script (which unfortunately you did not answer). It looks like your parent script scrambles character (set)s as the...
Forum: Shell Programming and Scripting Linux 1 Day Ago
Replies: 5
Views: 172
Posted By RudiC
And the question is? What if the number of...

And the question is?
What if the number of columns is NOT 2, i.e. is 1 or 4? And, isn't there a table_name missing?
Forum: HP-UX Linux 1 Day Ago
Replies: 2
Views: 94
Posted By RudiC
Different approach: sed 's/^/echo useradd -m /;...

Different approach:
sed 's/^/echo useradd -m /; s/;/,/; s/:/ -c \\"/; s/$/\\"/' file redirect into a file and run / source that, or pipe the result into a shell. Remove the echo if happy with the...
Forum: Shell Programming and Scripting Linux 1 Day Ago
Replies: 6
Views: 182
Posted By RudiC
How did you call the script? What exactly is in...

How did you call the script? What exactly is in the script?
Did you mayhap use a strange dash character?


U+2013 EN DASH

System Representation
Nº 8211
UTF-8 E2 80 93
UTF-16 20 13
Forum: Shell Programming and Scripting Linux 2 Days Ago
Replies: 17
Views: 478
Posted By RudiC
I was thinking about applying some exercise and...

I was thinking about applying some exercise and creativity? How about

awk -F"[ ;]*" '
/^subnet/ {SUBNET = $2
}
/^ *host.* {/ {getline
TMP = $4
...
Forum: Shell Programming and Scripting Linux 2 Days Ago
Replies: 2
Views: 120
Posted By RudiC
Any attempts / ideas / thoughts from your side?

Any attempts / ideas / thoughts from your side?
Forum: UNIX for Beginners Questions & Answers Linux 2 Days Ago
Replies: 12
Views: 210
Posted By RudiC
Show exact details, your description is too...

Show exact details, your description is too vague. And, consider to rephrase the SQL query; you might be able to immediately output the correct command(s) to be fed into a subshell. Again: spaces in...
Forum: Solaris Linux 2 Days Ago
Replies: 7
Views: 139
Posted By RudiC
Please show the rabbitmq-server script, esp. the...

Please show the rabbitmq-server script, esp. the line 22 (and the definition of all shell variables referenced therein).

EDIT: and line 49 as requested by Don Cragun.
Forum: Shell Programming and Scripting Linux 2 Days Ago
Replies: 9
Views: 206
Posted By RudiC
Please answer the questions in Don Cragun's...

Please answer the questions in Don Cragun's post#4 applying utmost care, esp. checking for the empty line. If that doesn't help, reduce the gene file to a single line representing a single gene and...
Forum: UNIX for Beginners Questions & Answers Linux 2 Days Ago
Replies: 12
Views: 210
Posted By RudiC
First: It usually helps if people read the entire...

First: It usually helps if people read the entire responses / comments, so you might want to reconsider



As used, in awk the variables report_name and report_path are undefined, and thus in...
Forum: Shell Programming and Scripting Linux 3 Days Ago
Replies: 17
Views: 478
Posted By RudiC
From your dhcpd.conf, use subnet 192.168.0.0...

From your dhcpd.conf, use
subnet 192.168.0.0 netmask 255.255.255.0 { to identify the IP range considered. From the
host . . . { . . . blocks, extract the iptables . . . FORWARD . . . ACCEPT...
Forum: Shell Programming and Scripting Linux 3 Days Ago
Replies: 17
Views: 478
Posted By RudiC
Well, I was afraid you did so: combining multiple...

Well, I was afraid you did so: combining multiple "sub solutions" (small solutions to fulfill / resolve partial problems) collected when posting "sub questions" into an overly complex "general...
Forum: Shell Programming and Scripting Linux 3 Days Ago
Replies: 17
Views: 478
Posted By RudiC
Why not just reverse the output fields when...

Why not just reverse the output fields when producing the file?
Forum: Shell Programming and Scripting Linux 3 Days Ago
Replies: 10
Views: 181
Posted By RudiC
Sure? When I run your above command, the output...

Sure? When I run your above command, the output is not near to what you requested in post#1.
Forum: Shell Programming and Scripting Linux 3 Days Ago
Replies: 10
Views: 181
Posted By RudiC
Try also awk ' !$1 {gsub (/[ ]+/, "...

Try also
awk '
!$1 {gsub (/[ ]+/, " ")
printf "%s,", $0
TRS = ORS
}
$1 {printf TRS
}
END {printf TRS
}
Forum: UNIX for Beginners Questions & Answers Linux 3 Days Ago
Replies: 3
Views: 98
Posted By RudiC
Did you consider the -F (upper case!) option to...

Did you consider the -F (upper case!) option to tail to deal with the log file rotation?
And, your code snippet - although not too logical nor efficient - doesn't seem "wrong". So please answer...
Forum: Linux Linux 3 Days Ago
Replies: 5
Views: 146
Posted By RudiC
Try find /abc | awk '{sub (/[^\/]*\./, "*.");...

Try
find /abc | awk '{sub (/[^\/]*\./, "*."); T[$0]} END {for (t in T) print t}'
/abc/b/*.gz
/abc/b/*.txt
/abc/a/*.txt
Forum: Shell Programming and Scripting Linux 4 Days Ago
Replies: 3
Views: 188
Posted By RudiC
Welcome to the forum. Any attempts / ideas /...

Welcome to the forum.

Any attempts / ideas / thoughts from your side?
Forum: Shell Programming and Scripting Linux 4 Days Ago
Replies: 3
Views: 195
Posted By RudiC
It's highly dangerous to mess around with system...

It's highly dangerous to mess around with system files (e.g. password files) NOT using the tools designed for it. You might end up not being able to access the system.

For the sheer exercise: How...
Forum: Shell Programming and Scripting Linux 5 Days Ago
Replies: 3
Views: 284
Posted By RudiC
Do not post classroom or homework problems in the...

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum (https://www.unix.com/homework-coursework-questions/) under special...
Forum: Shell Programming and Scripting Linux 5 Days Ago
Replies: 1
Views: 277
Posted By RudiC
This is a duplicate thread....

This is a duplicate thread. (https://www.unix.com/shell-programming-and-scripting/275234-script-working-command-line-not-crontab.html)

Bumping up posts or double posting is not permitted in these...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 05:19 PM.