Hello everybody !
GOT SOMETHING INTERESTING...
I am trying to retain line number for a text document.. usually we get line numbers in VI using :set nu , but I want to permanently store them. It's a 4000 lines of text and I want grep/search it for a list of words/fields stored in a different... (2 Replies)
cat dailyreports | grep "Important list" | awk -F":" '{print $2}' | awk -F" " '{print $1}'
hey guys, after running the above combination of cat and awk, i get the below output:
3
4
2
9
now, i need to add these numbers up all in one line. i dont know what to add to that cat and awk one... (2 Replies)
Friends,
I have to write a shell script,the description is----
i Have to check the uniqueness of the numbers in a file.
A file is containing 200thousand tickets and a ticket have 15 numbers in asecending order.And there is a strip that is having 6 tickets that means 90 numbers.I... (7 Replies)
Suppose u have a file like
1 30
ABCSAAHSNJQJALBALMKAANKAMLAMALK
4562676268836826826868268468368282972982
2863923792102370179372012792701739729291
31 60... (8 Replies)
I want to reverse a the following:
00:11:22:33:44:55
I currently use something like below to pass it as is.
But now I want the same script to reverse the above and pass it to ethtool.
// psuedo code
i=0
skip=0
for m in $@
do
if
then
skip=1
... (1 Reply)
file A
E969K
D223L
E400L
E34L
file B
predicted 3
1 250
251 500
501 1000
The output should be
E969K 501 1000
D223L 1 250
E400L 251 500
E34L 1 250
I tried in this way (1 Reply)
Hi all;
Here is my file:
V1.3=4
V1.4=5
V1.1=3
V1.2=6
V1.3=6
Please, can you help me to write a script shell that counts the sum of values in my file (4+5+3+6+6) ?
Thank you so much for help.
Kind regards. (3 Replies)
Hello,
I would like to write script to tail a file for different environment
But the number of lines are keep changing
How can I write a script
For example:
env could : A, B or C
and log files could be a.log, b.log and c.log
with the number of lines can change
say sometimes it 100 last... (9 Replies)
Discussion started by: encrypt_decrypt
9 Replies
LEARN ABOUT CENTOS
update-cracklib
update-cracklib(8) System Manager's Manual update-cracklib(8)NAME
update-cracklib - Regenerate cracklib dictionary
SYNOPSIS
update-cracklib
DESCRIPTION
update-cracklib builds a compressed and accumulated version of wordlists stored in the directories given in cracklib's configuration file
/etc/cracklib/cracklib.conf. Programs using cracklib2 need this database to be of any use.
By default this script is called by cron every day.
RESULT
update-cracklib prints out two numbers: the number of words read from the ASCII dictionaries and the number of words eventually written
into the cracklib database; if no error occurred, these should be equal.
0 is returned on success, otherwise an error message is printed to standard error and -1 is returned.
FILES
/etc/cracklib/cracklib.conf
shell script that sets cracklib_dictpath_src which must be a space separated list of source dictionary files.
SEE ALSO cracklib(3), crack_mkdict(8)AUTHOR
This program and manual page was written by Martin Pitt <martin@piware.de> for the Debian GNU/Linux System (but may be used by others).
Martin Pitt June 09, 2003 update-cracklib(8)