Search Results

Search: Posts Made By: elilmal
1,803
Posted By elilmal
SWO=switch_ports_online for [ $i = ${SWO}1.txt...
SWO=switch_ports_online
for [ $i = ${SWO}1.txt ]; do
echo $i $e

done
ù

does not work
1,803
Posted By elilmal
i would like to have a way to increase the number...
i would like to have a way to increase the number of files scanned without writing them all
1,803
Posted By elilmal
Complex if then else
for i in $(condition ONE);do for e in $(CONDITION TWO);do

if [ $i = switch_ports_online1.txt ]; then
command 1
command 2
command 3
...
1,127
Posted By elilmal
thanks works!
thanks works!
1,127
Posted By elilmal
[Solved] Problem with if-then-else loop
Hi,

i have a problem with this script:

for i in $(cat list_ip_switch)
do
if
if [ $i -eq "10.155.249.173" ]; then
echo "found ip"
else
...
4,086
Posted By elilmal
thanks :)
thanks :)
4,086
Posted By elilmal
no, i'm sorry, i need to remove the line with...
no, i'm sorry, i need to remove the line with this field:

er_enc_out 0 er_bad_os 0
4,086
Posted By elilmal
How to print with awk specific field different from specific character?
Hello,

i need help with awk.
I have this file:

cat number
DirB port 67 er_enc_out 0 er_bad_os 0
DirB port 71 er_enc_out 56 er_bad_os 0...
1,486
Posted By elilmal
For me this is the best: data=$(symcfg list...
For me this is the best:

data=$(symcfg list -v |grep "Symmetrix Data Encryption"|head -n 1|awk '{print $5}' )

# grep some value and if some line include also Enable then okay.
case "$data" in...
1,486
Posted By elilmal
Sorry, but can i insert in to this cycle a...
Sorry, but can i insert in to this cycle a command like this?

#!/bin/bash

SID=xx
symcfg list -sid $SID -pool -gb -det -thin |grep pool |awk '{print $1}' >list_vmax_xx_pools

while read i
do...
1,486
Posted By elilmal
Cycle for with for-then-else
Hi,

i would like to insert a if-then-else function in to cycle for

--------------
cat test
--------------
[root@EmcSanServer ~]# cat test
ALFA
BETA
GAMMA
-----------------------

This...
8,368
Posted By elilmal
#!/usr/bin/expect set hostlist [open...
#!/usr/bin/expect
set hostlist [open /home/user/ip_switch]
set ipaddrs [read $hostlist]
set user "user"
set pass "xxxxxxx"

foreach line [split $ipaddrs \n] {

spawn ssh $user@$line ...
8,368
Posted By elilmal
it works: #!/usr/bin/expect set hostlist...
it works:
#!/usr/bin/expect
set hostlist [open /home/user/ip_switch]
set ipaddrs [read $hostlist]
set user "user"
set pass "xxxxxxx"

foreach line [split $ipaddrs \n] {

spawn ssh...
8,368
Posted By elilmal
10.155.249.135 can't read "LINE": no such...
10.155.249.135
can't read "LINE": no such variable
while executing
"set HOST $LINE "
(file "/home/user1/expect_script2" line 3)

i modified my expect script like that:
cat...
8,368
Posted By elilmal
Input in expect script
Hi,

i have one problem with this script:

-------------------------------
cat hostid_gathering

#!/bin/bash

cat /home/user1/ip_switch | while read LINE; do

echo $LINE...
1,207
Posted By elilmal
thanks! It's work
thanks! It's work
1,207
Posted By elilmal
awk if then "insert"
I have this output:

FA-7H
5001438004c224b8
5001438005692b18
5001438005694778
500143800569491c
50014380056952e0
c0507604cc5c00a2
FA-10H
5001438004c224ba
5001438005692b1a
5001438005694372...
3,467
Posted By elilmal
thanks, with sed my script works!
thanks, with sed my script works!
3,467
Posted By elilmal
how exactly?
how exactly?
3,467
Posted By elilmal
i want replace || with one |
i want replace || with one |
3,467
Posted By elilmal
great it's work! thanks ---------- Post...
great it's work! thanks

---------- Post updated 07-12-12 at 10:33 AM ---------- Previous update was 06-12-12 at 01:45 PM ----------

at the end i have this other question. In my complex script...
3,467
Posted By elilmal
SG_LNX_JOKER_PRE01 SG_LNX_PENGUIN_PRE01...
SG_LNX_JOKER_PRE01 SG_LNX_PENGUIN_PRE01 VP_Cattivi_pre01

SG_LNX_JOKER_PRE01 SG_LNX_PENGUIN_PRE01 VP_Cattivi_pre01
3,467
Posted By elilmal
SG_LNX_JOKER_PRE01 SG_LNX_PENGUIN_PRE01 ...
SG_LNX_JOKER_PRE01
SG_LNX_PENGUIN_PRE01
VP_Cattivi_pre01

SG_LNX_JOKER_PRE01
SG_LNX_PENGUIN_PRE01
VP_Cattivi_pre01


it's changed in one row:

SG_LNX_JOKER_PRE01 SG_LNX_PENGUIN_PRE01...
3,467
Posted By elilmal
Script: Convert row in to column
Hi,

i need to convert

SG_ERP1
SG_ERP2
SG_ERP3

in to:

SG_ERP1 SG_ERP2 SG_ERP3

It's possibile?
Showing results 1 to 24 of 24

 
All times are GMT -4. The time now is 08:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy