10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file containing ids like this (file1):
c9e2c3c6c100000000460000c02000803c63e529c3f5f5f0
c9e2c3c6c100000000460000c02002813c63e539c3f5f5f0
c9e2c3c6c100000000460000c02002ee3c63ebb1c3f5f5f4
c9e2c3c6c100000000460000c020042f3c63e549c3f5f5f0
These ids are present in muiltiple files named:... (4 Replies)
Discussion started by: niladri29
4 Replies
2. UNIX for Advanced & Expert Users
Scenario:
Command used to capture IPs on a host:
/usr/sbin/ifconfig -a | grep "inet" | egrep -v "inet6|0.0.0.0|192.168.100.2" | awk '{print $2}'
Following for loop used to capture interface names:
for INTERFACE in `/usr/sbin/ifconfig -a | nawk '$1 ~ /:$/ && $1 {sub(":$", "", $1); print... (3 Replies)
Discussion started by: ak835
3 Replies
3. Shell Programming and Scripting
/usr/sbin/ifconfig -a | grep "inet" | grep -v "inet6" | grep -v "127.0.0.1" |
grep -v "0.0.0.0"|grep -v "192.168.100.2" | awk '{print $2}'
I use above command to get IP addresses on AIX boxes.Values coming here are set to a variable "Host IPs.IP Addresses" in my fingerprinting engine.
... (4 Replies)
Discussion started by: ak835
4 Replies
4. Shell Programming and Scripting
Hi everyone,
Can ny1 help me out regarding while loop arguments
i.e. what does
-gt
-ge
-lt
-le
means?
actually i am new to while loops (2 Replies)
Discussion started by: jojo123
2 Replies
5. Shell Programming and Scripting
Dear All,
Please help me out for the below query
echo 'please input file type (i.e file1,file2,file3,file4): '
read a
cat hello.wri | grep $a | wc -l > temp1.wri
cat hello.wri | grep $a | wc -l > temp2.wri
cat hello.wri | grep $a | wc -l > temp3.wri
cat hello.wri | grep $a | wc -l >... (1 Reply)
Discussion started by: jojo123
1 Replies
6. Shell Programming and Scripting
Dear Friend,
I need a help for the below problem.. Can anyone suggest me to do...
Input file data:
rule {
name=mainrule
filt=pos
loc {
x=right + 660
y=top - 3100
}
object_kind= DRAW
... (15 Replies)
Discussion started by: vasanth_vadalur
15 Replies
7. Shell Programming and Scripting
Hi All, thanks in advance for any help you can give me.
I'm trying to get some error checking of a username in my shell script. While I have that part under control, at the moment my script just exits if the username entered doesn't match the correct syntax.
I've been googling to try and... (4 Replies)
Discussion started by: adarii
4 Replies
8. UNIX for Dummies Questions & Answers
Hi there,
i want to direct the out put return from the FOR loop statement to any log file.
code copied below.
for file in `ls *.in`
do
...
...
done
if there is no file then i need to write the log to one file.
Thanks
Arun (3 Replies)
Discussion started by: arund_01
3 Replies
9. UNIX for Dummies Questions & Answers
count2=0
var2=NOT
if
then
echo"Loop1"
command="egrep ',$var1,"
if
then
echo "the command is OR"
command=$command"|,$var3,"
echo "$command"
elif
then
command=$command"| egrep ',$var3,"
else
... (4 Replies)
Discussion started by: Syms
4 Replies
10. UNIX for Dummies Questions & Answers
i.e configuration of C compiler :confused: (4 Replies)
Discussion started by: atiato
4 Replies