Hello A friend of mine posted this on another site that I follow. It is to advanced for me to figure out. If solved I will give credit where credit is due:
NOTE: Does not have to be AWK. Any Language will work,
Hi. I need a little assistant to write an awk script on linux that reads a file that looks something like this:
I need to write a script that reads the sequence of letters under each description heading and count +1 if the letter "J" is missing from the sequence. If the sequence has at least one J, then skip to the next sequence.
I have a school project to create a shell program same as calendar i must create
a txt file with celebrations with vi i know this but the problem is i don't know awk
and grep.
The object of object is to create a program who read a date an appear the celebration.
Can you help me please !!!... (1 Reply)
I'm trying to take a list of domains, find out the MX resolve it to IP then find out what the NS is and output the contents to a new file.
The only problem i'm having is when checking the Ip or host of the MX i can only get it to print the column with the MX record and the results of the host... (1 Reply)
I am writing a script that ssh's out to our various servers and extracts diskspace info to generate into a report. With the mix of servers linux/solairs 8-10/AIX the easiest way is to use df -k (though I much rather prefer df -h).
I have pasted the relevant code:
dfdata=`ssh -q -o... (1 Reply)
Hello,
Please advise. Scoured this site, as well as google for answers. However if you do not know what to search for, it's a bit hard to find answers.
INPUT:
ACTASS=
802
BASECOS=
279
COSNCHG=
3
CUSCOS=
52
UPLDCOS=
2
DESIRED OUTPUT:
ACTASS=802
BASECOS=279 (13 Replies)
Hi,
I would like to know the awk command that gets the below o/p:
File contents:
Board1;9a;60;36;60.0;60;0;0.0
Board2;96;60;35;58.3;55;0;0.0
Board3;92;60;60;100.0;60;60;100.0
Used awk script:
#!/bin/awk -f
BEGIN {
FS = ";";
printf (" Device | ... (1 Reply)
Hoping for some assistance.
my source file consists of:
os, ip, username
win7, 123.56.78, john
win7, 123.56.78, paul
win7, 10.1.1.1, john
win7, 10.2.2.3, joe
I've been trying to run a script that will only return ip and username where the IP address is the same and the username is... (3 Replies)
---------- Post updated at 11:48 AM ---------- Previous update was at 11:46 AM ----------
Hello all
I have an awk code that successfully creates separate text files based on the first six letters of the second field. What it doesn't do is preserve the header into each resulting file.
... (6 Replies)
Hello there,
I am trying to get my head around the section below of a script we use that incorporates AWK and Regular Expressions.
{ match($0,"The broker*");print $1,$2,$3 ":", substr($0, RSTART,RLENGTH)}
I have a basic understanding of how match works, what I am struggling with is the... (2 Replies)
HI Folks -
I have a business need to check weather or not there are "active" sessions within a particular application I interact with prior to running any automation.
I have built a function that first exports all "sessions" from my respective application to a text file. The output is as... (2 Replies)
Hello all,
I have searched high and low for a solution to this, many have come really close but not quite what I'm after.
I have 2 files. One contains GUID's, for example:
8121E002-96FE-4C9C-BC5A-6AFF20DACECD
84468F30-F3B7-418B-81F0-0908E80792BF
A second file, contains a path to the... (8 Replies)
Discussion started by: tirmUK
8 Replies
LEARN ABOUT CENTOS
pwquality.conf
PWQUALITY.CONF(5) File Formats Manual PWQUALITY.CONF(5)NAME
pwquality.conf - configuration for the libpwquality library
SYNOPSIS
/etc/security/pwquality.conf
DESCRIPTION
pwquality.conf provides a way to configure the default password quality requirements for the system passwords. This file is read by the
libpwquality library and utilities that use this library for checking and generating passwords.
The file has a very simple name = value format with possible comments starting with # character. The whitespace at the beginning of line,
end of line, and around the = sign is ignored.
OPTIONS
The possible options in the file are:
difok
Number of characters in the new password that must not be present in the old password. (default 5)
minlen
Minimum acceptable size for the new password (plus one if credits are not disabled which is the default). (See pam_pwquality(8).)
Cannot be set to lower value than 6. (default 9)
dcredit
The maximum credit for having digits in the new password. If less than 0 it is the minimum number of digits in the new password.
(default 1)
ucredit
The maximum credit for having uppercase characters in the new password. If less than 0 it is the minimum number of uppercase char-
acters in the new password. (default 1)
lcredit
The maximum credit for having lowercase characters in the new password. If less than 0 it is the minimum number of lowercase char-
acters in the new password. (default 1)
ocredit
The maximum credit for having other characters in the new password. If less than 0 it is the minimum number of other characters in
the new password. (default 1)
minclass
The minimum number of required classes of characters for the new password (digits, uppercase, lowercase, others). (default 0)
maxrepeat
The maximum number of allowed same consecutive characters in the new password. The check is disabled if the value is 0. (default
0)
maxsequence
The maximum length of monotonic character sequences in the new password. Examples of such sequence are '12345' or 'fedcb'. Note
that most such passwords will not pass the simplicity check unless the sequence is only a minor part of the password. The check is
disabled if the value is 0. (default 0)
maxclassrepeat
The maximum number of allowed consecutive characters of the same class in the new password. The check is disabled if the value is
0. (default 0)
gecoscheck
If nonzero, check whether the words longer than 3 characters from the GECOS field of the user's passwd entry are contained in the
new password. The check is disabled if the value is 0. (default 0)
badwords
Space separated list of words that must not be contained in the password. These are additional words to the cracklib dictionary
check. This setting can be also used by applications to emulate the gecos check for user accounts that are not created yet.
dictpath
Path to the cracklib dictionaries. Default is to use the cracklib default.
SEE ALSO pwscore(1), pwmake(1), pam_pwquality(8)AUTHORS
Tomas Mraz <tmraz@redhat.com>
Red Hat, Inc. 10 Nov 2011 PWQUALITY.CONF(5)