10-08-2013
It didn't work Corona688...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I grepped for a string from a directory of very large files. This took quite a long time (not a problem). When I grepped for a different string from the same files immediately after, the output was MUCH quicker.
My question is, does anybody know why the second grep was so much quicker than the... (1 Reply)
Discussion started by: davirime
1 Replies
2. Filesystems, Disks and Memory
Hello,
I have a Supermicro server with a P4SCI mother board running Debian Sarge 3.1. This is the "dmidecode" output related to RAM info:
RAM speed information is incomplete.. "Current Speed: Unknown", is there anyway/soft to get the speed of installed RAM modules? thanks!!
Regards :)... (0 Replies)
Discussion started by: Santi
0 Replies
3. UNIX for Advanced & Expert Users
I am doing "ps -f" to see my process.
but I get lines that one of it represents the ps command itself.
I want to grep it out using -v flag, but than I get another process that belongs to the GREP itself :
I would like to exclude
# ps -f
UID PID PPID C STIME TTY TIME CMD... (2 Replies)
Discussion started by: yamsin789
2 Replies
4. Shell Programming and Scripting
Hello
Ive written 2 programs in shell and I need to compare their speed (Compile) against one another.
what methods could I go about doing this?
Is there a feature in shell do accommodate this? (2 Replies)
Discussion started by: Darklight
2 Replies
5. Shell Programming and Scripting
i want to search in the current directory all the files that contain one word for example "hello"
i want to achieve it with the grep command but not with the grep * (2 Replies)
Discussion started by: aintour
2 Replies
6. Filesystems, Disks and Memory
I analysed disk performance with blktrace and get some data:
read:
8,3 4 2141 2.882115217 3342 Q R 195732187 + 32
8,3 4 2142 2.882116411 3342 G R 195732187 + 32
8,3 4 2144 2.882117647 3342 I R 195732187 + 32
8,3 4 2145 ... (1 Reply)
Discussion started by: W.C.C
1 Replies
7. Shell Programming and Scripting
hi
i'm greping the files with sepefic keyword, where the file is of too big. Assume there are 10 days log file each of more than 200mb. i've to grep all those files with a specific keywords.
for example,
1. i'll grep for error message
2. after the i'll do one more grep for keyword... (4 Replies)
Discussion started by: vij_krr
4 Replies
8. Shell Programming and Scripting
Hi,
I have to grep string from 20 - 30 files each carries 200 - 300 MB size and append to the
file. How to speed the
grepping time.
cat catalina.out_2012_01_01 | grep "xxxxx" >> backup.txt
PLZ, Suggest me,
Regards,
Nanthagopal A (5 Replies)
Discussion started by: nanthagopal
5 Replies
9. Shell Programming and Scripting
Hi,
file1.txt
AAA
BBB
CCC
DDD
file2.txt
abc|AAA|AAAabcbcs|fnwufnq
bca|nwruqf|AAA|fwfwwefwef
fmimwe|BBB|fnqwufw|wufbqw
wcdbi|CCC|wefnwin|wfwwf
DDD|wabvfav|wqef|fwbwqfwfe
i need the count of rows of file1.txt present in the file2.txt
required output:
AAA 2 (10 Replies)
Discussion started by: mdkm
10 Replies
10. Shell Programming and Scripting
Hello,
I am running below command as root user
#nodetool cfstats tests | grep "Memtable switch count"
Memtable switch count: 12
Where as when I try to run same command as another user it gives different result.
#su -l zabbix -s /bin/bash -c "nodetool cfstats tests | grep "Memtable switch... (10 Replies)
Discussion started by: Pushpraj
10 Replies
LEARN ABOUT DEBIAN
krb5_acl_match_file
KRB5_ACL_MATCH_FILE(3) BSD Library Functions Manual KRB5_ACL_MATCH_FILE(3)
NAME
krb5_acl_match_file, krb5_acl_match_string -- ACL matching functions
LIBRARY
Kerberos 5 Library (libkrb5, -lkrb5)
SYNOPSIS
krb5_error_code
krb5_acl_match_file(krb5_context context, const char *file, const char *format, ...);
krb5_error_code
krb5_acl_match_string(krb5_context context, const char *string, const char *format, ...);
DESCRIPTION
krb5_acl_match_file matches ACL format against each line in a file. Lines starting with # are treated like comments and ignored.
krb5_acl_match_string matches ACL format against a string.
The ACL format has three format specifiers: s, f, and r. Each specifier will retrieve one argument from the variable arguments for either
matching or storing data. The input string is split up using " " and " " as a delimiter; multiple " " and " " in a row are considered to
be the same.
s Matches a string using strcmp(3) (case sensitive).
f Matches the string with fnmatch(3). The flags argument (the last argument) passed to the fnmatch function is 0.
r Returns a copy of the string in the char ** passed in; the copy must be freed with free(3). There is no need to free(3) the
string on error: the function will clean up and set the pointer to NULL.
All unknown format specifiers cause an error.
EXAMPLES
char *s;
ret = krb5_acl_match_string(context, "foo", "s", "foo");
if (ret)
krb5_errx(context, 1, "acl didn't match");
ret = krb5_acl_match_string(context, "foo foo baz/kaka",
"ss", "foo", &s, "foo/*");
if (ret) {
/* no need to free(s) on error */
assert(s == NULL);
krb5_errx(context, 1, "acl didn't match");
}
free(s);
SEE ALSO
krb5(3)
HEIMDAL
May 12, 2006 HEIMDAL