zoukankan
html css js c++ java
shell ping一个IP,延时大于5,输出延时大于5s,打印输出
# ping一个IP,延时大于5,输出延时大于5s,打印输出
#!/bin/bash
ip=$*
echo $ip
num=`ping -c 10 ${ip}|grep icmp_seq|awk '{print $7}'|cut -d= -f2`
for snum in $num
do
if [ `echo "${snum}>5"|bc` -eq 1 ];
then
echo "延时大于5s,现在为${snum}";
fi
done
贵有恒,何必三更起五更睡;最无益,只怕一日暴十寒
查看全文
相关阅读:
[leetcode] Palindrome Number
[leetcode] Find Minimum in Rotated Sorted Array
[leetcode] Word Search
[leetcode] Construct Binary Tree from Preorder and Inorder Traversal
[leetcode] Flatten Binary Tree to Linked List
[leetcode] Recover Binary Search Tree
[leetcode] Unique Binary Search Trees II
[leetcode summary] Dynamic Programming
[leetcode] Generate Parentheses
[leetcode summary] Backtracing
原文地址:https://www.cnblogs.com/rayong/p/6839808.html
最新文章
leetcode 73. Set Matrix Zeroes
leetCode 63 Unique Paths II
LeetCode198 House Robber
LeetCode 64 Minimum Path Sum
LeetCode 123 Best Time to Buy and Sell Stock III
leetCode 122 Best Time to Buy and Sell Stock II
leetCode 121 Best Time to Buy and Sell Stock
LeetCode 62 Unique Paths
LeetCode 70 Climbing Stairs
LeetCode: 53 Maximum Subarray
热门文章
450. Delete Node in a BST
288. Unique Word Abbreviation
408. Valid Word Abbreviation
166. Fraction to Recurring Decimal
222. Count Complete Tree Nodes
36. Valid Sudoku
319. Bulb Switcher
220. Contains Duplicate III
316. Remove Duplicate Letters
295. Find Median from Data Stream
Copyright © 2011-2022 走看看