Unix/Linux Go Back    

Showing results 1 to 25 of 500
Search took 0.14 seconds.
Search: Posts Made By: RudiC
Forum: Shell Programming and Scripting Linux 7 Hours Ago
Replies: 3
Views: 153
Posted By RudiC
Does it? For your 2017 line, yes, but not for...

Does it? For your 2017 line, yes, but not for your specified task for the entire data file. To implement that, you need to tell us,
- are the records sorted in ascending / descending order?
- are...
Forum: Shell Programming and Scripting Linux 11 Hours Ago
Replies: 3
Views: 153
Posted By RudiC
After six and a half years as a member and with...

After six and a half years as a member and with more than 130 posts, some of which on average (https://www.unix.com/shell-programming-and-scripting/275793-average-select-rows.html#post303009064)...
Forum: Shell Programming and Scripting Linux 15 Hours Ago
Replies: 3
Views: 172
Posted By RudiC
Try awk -v vkey="$key" -v tagIn="$tagIn"...

Try
awk -v vkey="$key" -v tagIn="$tagIn" -vtagOut="$tagOut" '
$0 ~ vkey {print "Found: " vkey "\n"
gsub (tagIn "[^" tagOut "]*" tagOut, "")
print
...
Forum: Shell Programming and Scripting Linux 18 Hours Ago
Replies: 9
Views: 318
Posted By RudiC
Does /xyz/INVESTIG/Sadiq/ exist on the remote...

Does /xyz/INVESTIG/Sadiq/ exist on the remote node?
Is PushFileToMail_IP() executed? Correctly? You redirected its stderr to /dev/null.

@Don Cragun: I don't see a problem with the BODY variable...
Forum: Shell Programming and Scripting Linux 1 Day Ago
Replies: 17
Views: 357
Posted By RudiC
Glad you got what you need. You can see also how...

Glad you got what you need. You can see also how important a spot-on, precise, detailed specification is... once the problem is clear, help is near.
Forum: Shell Programming and Scripting Linux 1 Day Ago
Replies: 17
Views: 357
Posted By RudiC
What's your bash version? EDIT: Drop the...

What's your bash version?

EDIT: Drop the spaces when assigning the variable:

outline="$outline"$'\n'"$line"
Forum: UNIX for Beginners Questions & Answers Linux 1 Day Ago
Replies: 6
Views: 248
Posted By RudiC
How about du -sb * | sort -n

How about
du -sb * | sort -n
Forum: Shell Programming and Scripting Linux 1 Day Ago
Replies: 17
Views: 357
Posted By RudiC
It becomes a bit clearer now. You seem to read...

It becomes a bit clearer now. You seem to read lines from some text file, which by default won't contain any <new line> chars unless certain merasures taken. You don't use e.g. "command substitution"...
Forum: Shell Programming and Scripting Linux 1 Day Ago
Replies: 17
Views: 357
Posted By RudiC
e.g. a line in an input file?

e.g. a line in an input file?
Forum: Shell Programming and Scripting Linux 1 Day Ago
Replies: 17
Views: 357
Posted By RudiC
Please give REPRESENTATIVE examples. The...

Please give REPRESENTATIVE examples. The following works for me:
vara=$'Erste Zeile \n zweite Zeile'
varb=$'\n Dritter Teil'
var="$vara$varb"
echo "$var"
Erste Zeile
zweite Zeile
Dritter...
Forum: UNIX for Beginners Questions & Answers Linux 1 Day Ago
Replies: 3
Views: 148
Posted By RudiC
Welcome to the forum. Please be way more...

Welcome to the forum.

Please be way more specific, supplying sample data containing good and bad examples, if you want more than just generic statements like "Use adequate regex".
Forum: Shell Programming and Scripting Linux 1 Day Ago
Replies: 17
Views: 357
Posted By RudiC
Welcome to the forum. Why not try ...

Welcome to the forum.

Why not try
var=$'Erste Zeile \n zweite Zeile \n Dritter Teil'
Forum: Shell Programming and Scripting Linux 1 Day Ago
Replies: 9
Views: 318
Posted By RudiC
As you may infer from the lack of reactions, more...

As you may infer from the lack of reactions, more info is needed. You might want to
- set the -x option before calling the function
- print out your variables for debug purposes
and post the...
Forum: UNIX for Advanced & Expert Users Linux 2 Days Ago
Replies: 1
Views: 206
Posted By RudiC
Not sure why a virtual box environment or...

Not sure why a virtual box environment or keyboard incompatibilities should influence this. The error and its remedy are quite clear. man sudoers:
Forum: Shell Programming and Scripting Linux 2 Days Ago
Replies: 1
Views: 243
Posted By RudiC
You are using the y command the wrong way. man...

You are using the y command the wrong way. man rename:
Forum: Shell Programming and Scripting Linux 2 Days Ago
Replies: 9
Views: 339
Posted By RudiC
@rdrtx1: nice! works! But: the ./.:9 only...

@rdrtx1: nice! works!

But: the ./.:9 only works because it's the last value pair operated upon, gsubbing each and every entry that has not been changed before, as it's using two . wild cards....
Forum: Shell Programming and Scripting Linux 2 Days Ago
Replies: 1
Views: 235
Posted By RudiC
Welcome to the forum. Having read your...

Welcome to the forum.

Having read your verbal description thrice I'm not sure I understood your problem, and your function listing doesn't really help. Input / file data and / or directory...
Forum: Shell Programming and Scripting Linux 2 Days Ago
Replies: 9
Views: 339
Posted By RudiC
Try also awk ' BEGIN {for (n=split("0/0 0/1...

Try also
awk '
BEGIN {for (n=split("0/0 0/1 1/1 \\./.", TMP); n; n--) CAT[TMP[n]] = n-1
}
{for (c in CAT) gsub (c, CAT[c])
gsub (3, 9)
}
1
' file
0 0 ...
Forum: Shell Programming and Scripting Linux 2 Days Ago
Replies: 10
Views: 409
Posted By RudiC
How far would grep -Ev -e...

How far would
grep -Ev -e "/(alja|cagr|cavt|clta|cmdo|corl)/" -e "\.([013]..|2(0[0-7]|8[2-9]|9[0-9]))$" /tmp/wrkget you? By the way - wouldn't it make sense to apply this already when creating the...
Forum: Shell Programming and Scripting Linux 3 Days Ago
Replies: 7
Views: 351
Posted By RudiC
You're not too far off. Try wget -q -O-...

You're not too far off. Try
wget -q -O- "hamiltonweather.ca/traffic/" | awk -F "$textBefore" -v RS="$textAfter" '{sub(/ •/, ""); print $2}'

EDIT: Or

wget -q -O- "hamiltonweather.ca/traffic/"...
Forum: UNIX for Beginners Questions & Answers Linux 3 Days Ago
Replies: 4
Views: 198
Posted By RudiC
Is it possible that you have a "-0" (zero) in...

Is it possible that you have a "-0" (zero) in lieu of the -o option? And, the here document's redirection points the wrong direction.
Forum: Shell Programming and Scripting Linux 3 Days Ago
Replies: 2
Views: 237
Posted By RudiC
Post a hexdump of a few lines / bytes of the...

Post a hexdump of a few lines / bytes of the file, e.g. od -tx1c input.csv.
Forum: Shell Programming and Scripting Linux 3 Days Ago
Replies: 5
Views: 265
Posted By RudiC
You can take above as an example and encode every...

You can take above as an example and encode every single variable that you use in your command. like $(url_var $JSESSIONID0) etc. Give it a try and report back.
Forum: Shell Programming and Scripting Linux 3 Days Ago
Replies: 9
Views: 279
Posted By RudiC
Hmmm - we overlooked the obvious - the first ssh...

Hmmm - we overlooked the obvious - the first ssh is eating up the rest of the input file. Try adding the -n option...
Forum: Shell Programming and Scripting Linux 3 Days Ago
Replies: 9
Views: 279
Posted By RudiC
Anything special about the input file? Post a...

Anything special about the input file? Post a hexdump of a small but representative part of it.
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 10:39 PM.