Here is a hack with sed.
The \(\([^|]*|\)\{10\}X*\) matches the first 10 fields plus already substituted Xes in field 11, and is put back as \1.
The 4 digit look-ahead \([0-9]\{4\}\) is put back as \3.
The one [0-9] is really substituted by the X.
The whole thing repeats in a loop, until nothing is left that can be substituted. (A /g option does not work because it cannot repeat on anything before the last matched character i.e. the look-ahead.)
A solution with awk or perl or bash would look simpler, because you can split on "|" and only work on field 11.
How is it possible under UNIX to restrain the number of digits of the PID number?
For instance, we have a product that generates a PID of 7 digits, and we would like to have only 6 digits maximum instead for the PID.
Thank you for your help. (1 Reply)
Hi all
Can anybody suggest me, how to get the count of digits in a word
I tried
WORD=abcd1234
echo $WORD | grep -oE ] | wc -l
4
It works in bash command line, but not in scripts :mad: (12 Replies)
Hi All,
I have a file of decimal numbers,
cat file1.txt
1.1382666907
1.2603107334
1.6118799297
24.4995857056
494.7632588468
560.7633734425
.....
I want to see the output as only 7 digits after decimal (5 Replies)
please help me write a perl program to find the difference of 1 and zeros of a 6 digit binary number.
eg If input is 111100 expected output +2
if input is 000011 expected output -2
input is 000111 expected output 0 (2 Replies)
HI all,
I have output of something like this:
crab: ExitCodes Summary
>>>>>>>>> 12 Jobs with Wrapper Exit Code : 50117
List of jobs: 1-12
See https:///twiki/something/ for Exit Code meaning
crab: ExitCodes Summary
>>>>>>>>> 5 Jobs with Wrapper Exit Code : 8001
List of... (20 Replies)
Hi,
Can anyone suggest me for the below steps.
Here the index files is nothing but a text file and In index file there are n number of pdf files.
Step 0 check out if this is for A(index file) or B(index file)
1. Read the first line of the original index file
2. Read the 9th character... (1 Reply)
Discussion started by: pavand
1 Replies
LEARN ABOUT DEBIAN
auth_enumerate
AUTH_ENUMERATE(3) Double Precision, Inc. AUTH_ENUMERATE(3)NAME
auth_enumerate - Obtain list of accounts
SYNOPSIS
#include <courierauth.h>
auth_enumerate(int (*callback_func) (const char *, uid_t, gid_t, const char *, const char *, const char *, void *), void *callback_arg);
DESCRIPTION
auth_enumerate enumerates all of the available accounts. auth_enumerate repeatedly calls callback_func, once for each account.
callback_func receives the following arguments:
o Account name.
o Account's numeric userid.
o Account's numeric groupid.
o Account's home directory.
o Account's mailbox (if defined, may be NULL, which indicates the default mailbox location).
o Account's options string (if defined, may be NULL)
o callback_arg, verbatim.
After invoking callback_func for the last account, auth_enumerate invokes callback_func one more time with all parameters set to NULL or 0.
If auth_enumerate encounters an error it will terminate without calling callback_func with all NULL or 0 parameters. This can be used to
determine whether a partial list of accounts was received.
Note
Some back-end Courier authentication modules do not implement account enumeration, so this function may not be available in all
configurations.
SEE ALSO authlib(3)[1], auth_generic(3)[2], auth_login(3)[3], auth_getuserinfo(3)[4], auth_passwd(3)[5].
NOTES
1. authlib(3)
authlib.html
2. auth_generic(3)
auth_generic.html
3. auth_login(3)
auth_login.html
4. auth_getuserinfo(3)
auth_getuserinfo.html
5. auth_passwd(3)
auth_passwd.html
Double Precision, Inc. 08/23/2008 AUTH_ENUMERATE(3)