Hi,
I am trying to make a script that creates a list of all active (alive) processes sorted by size and then print this list on screen.
Could anyone help me?
Thaks a lot (7 Replies)
Hi -
I am guessing this is fairly simple for someone .. but I can not quite figure it out. I need a sed command to print just parts of lines from a file.
e.g. filea.txt
4710451 : Success : MODIFY : cn=user1,dc=org,dc=uk
Message log started
Message log ended
4710452 : Success : MODIFY :... (7 Replies)
Hey, I found a way to print the lines which is just before a regular expression, not including the expression.
sed -n '/regexp/{n;p;}' myfile
Now I'm looking for a way to print all lines, exept the regular expression and also the line before the same regular expression.
Use code tags. (1 Reply)
Hello,
I want to print a number of lines of a file after a specific expression of a line.
I have this sed command but it prints only 1 line after the expression.
How could I adapt it to print for instance 10 lines after or 15 lines after ?
sed -n '/regexp/{n;p;}'
Thx & Regs,
Rany. (5 Replies)
CA_RELEASE has a value of 6. I need to check if that this is a numeric value. if not error.
source $CA_VERSION_DATA
if * ]
then
echo "CA_RELESE $CA_RELEASE is invalid"
exit -1
fi
+ source /etc/ncgl/ca_version_data
++ CA_PRODUCT_ID=samxts
++ CA_RELEASE=6
++ CA_WEEK_NO=7
++... (3 Replies)
Dear All,
I am trying to sort an array of numbers to retrieve the mimimum and maximum values of numbers in that array, by printing the first and last elements of the sorted array. My code is @sorted_numbers = sort (@numbers);
print "@sorted_numbers\n";
print "$sorted_numbers,... (0 Replies)
Hello All,
I'm trying to extract the lines between two consecutive elements of an array from a file.
My array looks like:
problem_arr=(PRS111 PRS213 PRS234)
j=0
while } ]
do
k=`expr $j + 1`
sed -n "/${problem_arr}/,/${problem_arr}/p" problemid.txt
---some operation goes... (11 Replies)
hi All ,
I am having a large file with lots of modules as shown below
###############################################
module KKK
kksd
kskks
jsn;lsm
jsnlsn;
Ring
jjsjsj
kskmsm
jjs
endmodule
module llll
1kksd11
k232skks
j33sn;l55sm (6 Replies)
Discussion started by: kshitij
6 Replies
LEARN ABOUT CENTOS
checkrad
CHECKRAD(5) File Formats Manual CHECKRAD(5)NAME
checkrad -- See if a user is (still) logged in on a certain port.
SYNOPSIS
checkrad [-d] nas-type nas-ip nas-port login session-id
DESCRIPTION
Checkrad is used by the radius server to check if its idea of a user logged in on a certain port/NAS is correct if a double login is
detected.
Returns: 0 = no duplicate, 1 = duplicate, >1 = error.
OPTIONS -d Enable printing of debugging informations.
nas-type
Type of port/NAS. Can be one of:
o ascend
o bay
o cisco
o cisco_l2tp
o computone
o cvx
o digitro
o dot1x
o livingston
o max40xx
o mikrotik
o mikrotik_snmp
o multitech
o netserver
o other
o pathras
o patton
o portslave
o pr3000
o pr4000
o redback
o tc
o usrhiper
o versanet
The "other" type cause checkrad to skip any check and always returns 1.
nas-ip IP address of the NAS to check.
nas-port
The NAS port to check (may be ignored by some nas-type).
login The login name to check.
session-id
Session to check. (actually ignored by all nas-type)
SEE ALSO radiusd(8)AUTHOR
Written by Miquel van Smoorenburg, miquels@cistron.nl.
This manual page was written by Marco Nenciarini <mnencia@debian.org> for the Debian project (but may be used by others).
13 January 2006 CHECKRAD(5)