Search Results

Search: Posts Made By: samoptimus
11,308
Posted By samoptimus
expect ssh script cannot finish and exit
All
i am new to linux, and try to have a simple expect script to ssh then telnet to the network equipment, and exit itself. but dont know why i hang at the last $



#!/usr/bin/expect
set...
1,088
Posted By samoptimus
Yazu i just checked, 101.txt file is...
Yazu

i just checked, 101.txt file is manually copy and paste from putty, and works fine.
while 1.txt is a long whitespace before the $ .

thanks a lot.

vi 101.txt :set list
Filter:...
1,088
Posted By samoptimus
The full story is i use a expect script to telnet...
The full story is i use a expect script to telnet to a network equipment, and grep out some of the stuff to become 1.txt.

however i try the sed recommended by you, but still getting , what was my...
1,088
Posted By samoptimus
Combine 2 line with space issue
Hello all,
i am new to linux , and please need your help and suggestion on....
when vi 1.txt :set list, it looks like
$ is displaying the end of line

Filter: vlan1-BUM-1M ...
3
3,339
Posted By samoptimus
thanks a lot. it is perfect.
thanks a lot. it is perfect.
3
3,339
Posted By samoptimus
xargs
Dear all ,
any suggest on xargs to combine from (1.txt and 2.txt) to output.txt ?

thanks a lot.



1.txt
0123 BUM-5M BUM-5M 93490481 ...
1,254
Posted By samoptimus
-bash-3.2# sort 5.txt | uniq -c 2 apple ...
-bash-3.2# sort 5.txt | uniq -c
2 apple
4 boy
5 cat

https://www.unix.com/customavatars/avatar302054671_1.gif (https://www.unix.com/members/302054671.html) ...
1,254
Posted By samoptimus
text pattern count statistic
Hi all

is it possible to have a text pattern count statistic by using simple script instead count it one by one ?

apple
apple
boy
boy
boy
boy
cat
cat
cat
cat
cat
dog....
...
...
3,525
Posted By samoptimus
thanks a lot. i got methods of doing this. thanks...
thanks a lot. i got methods of doing this. thanks so much.
2,145
Posted By samoptimus
Guru , thanks a lot. i write a easy expect...
Guru , thanks a lot.

i write a easy expect script , and grep the telnet output.txt , and > to the file.

BUM-5M 10607963 7717
BUM-5M...
3,525
Posted By samoptimus
Padding leading zero
hi All
i am new to linux...

source txt ..
281-BUM-5M BUM-5M 0 0
282-BUM-5M BUM-5M 0 0
83-BUM-5M BUM-5M 0 0

is it possible to use bash script to convert to
(remove the "-" and fill up to 4...
2,145
Posted By samoptimus
Combine 2 lines
All,

i am new to linux script...

source
Filter: vlan281-BUM-5M
BUM-5M 0 0
Filter: vlan282-BUM-5M
BUM-5M ...
Showing results 1 to 12 of 12

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