Search Results

Search: Posts Made By: alister
17,397
Posted By alister
Your original post uses find -print0 and xargs...
Your original post uses find -print0 and xargs -0. Is your customer using a GNU userland? If not, those extensions are probably not supported. If they are using a GNU userland and if that's all that...
3,494
Posted By alister
vgersh99 did not just post man output, he posted...
vgersh99 did not just post man output, he posted the answer. What part of it did you not understand?
Did you even make an attempt.to put that man quote into practice? If so, show us the code and the...
Forum: Programming 05-26-2014
4,207
Posted By alister
You can repeat it until you're keyboard is dust,...
You can repeat it until you're keyboard is dust, but the number of repetitions won't change the fact that you have misunderstood my proposal. Unions aren't complicated and I understand how they work...
Forum: Programming 05-26-2014
8,224
Posted By alister
If, in fact, the problem is that the loader's...
If, in fact, the problem is that the loader's lookup process is finding the default system library, an alternative to modifying the environment, and to using -L and -l, is to provide an absolute path...
2,962
Posted By alister
The awk for-in loop has no defined ordering. ...
The awk for-in loop has no defined ordering.

Regards,
Alister
Forum: Programming 05-26-2014
4,207
Posted By alister
I'm assuming that you misunderstood what I meant...
I'm assuming that you misunderstood what I meant by 'tagged union'. It's the final data structure in my previous post, following the text which you quoted. In C, a tagged union is not a union; it is...
17,397
Posted By alister
First, you should explain to us. How did it not...
First, you should explain to us. How did it not work? Show us the error messages. If there weren't any, then at least show us an example of the file hierarchy before running the command, after...
Forum: Programming 05-25-2014
8,224
Posted By alister
Does the runtime linker/loader know about...
Does the runtime linker/loader know about /home/richj/product/zlib/lib/?

Regards,
Alister
4,511
Posted By alister
What's the purpose of making it a single line? ...
What's the purpose of making it a single line?

Regards,
Alister
Forum: Ubuntu 05-24-2014
2,655
Posted By alister
Just in case, note that the OP specified...
Just in case, note that the OP specified sendemail, not sendmail. Perhaps it's a typo, but there is such a program and it is available via ubuntu's package repositories.
...
2,379
Posted By alister
sed has an insert command, i. Use the closing...
sed has an insert command, i. Use the closing bracket as an address for the insertion.

Regards,
Alister
4,267
Posted By alister
If you are going to specify the path to the...
If you are going to specify the path to the target directory in your redirection, then you need to strip directories from $f and only use the basename.

Regards,
Alister
1,721
Posted By alister
Polling the folder and hoping that everything is...
Polling the folder and hoping that everything is done is asking for trouble. If you actually care about not copying over a half-written file, you need an atomic step.

First of all, the directory...
2,319
Posted By alister
Hi, Don. Can you elaborate? Regards, ...
Hi, Don. Can you elaborate?

Regards,
Alister

---------- Post updated at 05:56 PM ---------- Previous update was at 05:52 PM ----------








Makes sense. Last I heard, default sed...
2,319
Posted By alister
If the file uses a tab delimiter and there is...
If the file uses a tab delimiter and there is only 1 per line:
sed 's/\./\t/3; s/\t.*\t/\t/' file
That isn't portable sed, because \t is primarily a GNU extension. However, if it worked for you,...
Forum: Programming 05-23-2014
4,207
Posted By alister
CS and DS do not need a type member. Whenever CS...
CS and DS do not need a type member. Whenever CS and DS are being used directly, the code using them already knows what they are. Only ignorant code inspecting the union needs access to a type flag....
4,267
Posted By alister
There are no upper case letters in bash keywords....
There are no upper case letters in bash keywords.

Second, your awk command line options are improperly quoted so that they and the awk script form a single token behind a leading dash.

Did...
Forum: Programming 05-22-2014
4,207
Posted By alister
Without knowing more, a NULL pointer is a good...
Without knowing more, a NULL pointer is a good guess.

Regards,
Alister
1,174
Posted By alister
If you are using bash, and if there's no...
If you are using bash, and if there's no bash-specific code, try dash or ksh93. Bash isn't an efficient shell.

We can't possibly make any targeted recommendations without knowing something about...
7,346
Posted By alister
If this task is performed regularly, you should...
If this task is performed regularly, you should consider using a dedicated filesystem. When the time comes to wipe it, instead of rm use mkfs (or newfs, or whatever tool your system uses to create a...
15,222
Posted By alister
echo is usually a shell built-in and not subject...
echo is usually a shell built-in and not subject to that limit.

Regards,
Alister
1,138
Posted By alister
This may sound harsh, but you could not have been...
This may sound harsh, but you could not have been any lazier if you tried. We are here to help, at no cost to you, so why don't you take the time to explain your data instead of leaving your dump for...
6,070
Posted By alister
AWK's arrays are associative and its subscripts...
AWK's arrays are associative and its subscripts are strings. i does pop into existence, but, in that string context, its undefined value is converted to an empty string.

awk 'BEGIN { a[i]=5; print...
2,005
Posted By alister
There is not a single comma in your sample input...
There is not a single comma in your sample input data.

Please stop using icode for everything you type. Use code only for code and data.

I recommend that you start over with data that actually...
2,192
Posted By alister
If the entire script is one logical task, then...
If the entire script is one logical task, then the simplest solution is to use kill 0 to terminate the entire process group.

Regards,
Alister
Showing results 1 to 25 of 500

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