码迷,mamicode.com
首页 >  
搜索关键字:shell find    ( 51950个结果
【LeetCode】Two Sum
Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the...
分类:其他好文   时间:2014-05-15 10:48:59    阅读次数:322
《LINUX SHELL脚本攻略》学习(1)--shell中echo的转义符
0.echo的命令项:(默认bash支持,csh不支持) -n 不输出换行符 -e 打开反斜杠ESC转义 -E 取消反斜杠ESC转义 (默认)1.echo和printf都可以打印输出信息,区别在于echo默认是添加换行符(\n)的; echo -n "xxxx" ,也可以取消换行符2.echo可.....
分类:系统相关   时间:2014-05-15 09:58:03    阅读次数:389
shell脚本如何监控程序占用带宽?
众所周知,使用iftop能监控所有程序占用的网络带宽,一般情况下,手动执行iftop就可查看。但现在需要使用脚本来监控程序占用的带宽,遇到的问题真不是一点半点,现记录如下,希望能给其它运维人带来更多的帮助。中途所遇到的难点:1.iftop把结果重定向到文本中,是图形格式的。..
分类:其他好文   时间:2014-05-15 08:47:28    阅读次数:540
UVA之1121 - Subsequence
【题目】 A sequence of N positive integers (10 N , each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length of the subse...
分类:其他好文   时间:2014-05-15 07:58:17    阅读次数:329
grep学习笔记
grep 命令是一个很常用的命令,主要的用法如下: 格式: grep [options] ^   锚定行的开始 eg; jiangjian@jiangjian-K42JZ:~/sh$ grep '^data' data2 data11,data12,data13 data21,data22,data23 data31,data32,data33 jiangjian@jiang...
分类:其他好文   时间:2014-05-15 01:43:05    阅读次数:329
LeetCode--Single Number II
Single Number II  Total Accepted: 14472 Total Submissions: 44420My Submissions Given an array of integers, every element appears three times except for one. Find that single one. Note: Y...
分类:其他好文   时间:2014-05-15 01:23:42    阅读次数:273
Linux环境下配置真机测试
1将测试机和开发机通过usb连接2通过命令查看usb连接情况Shell命令:lsusb会将当前usb连接情况展示出来:Shell代码:Bus008Device001:ID1d6b:0001LinuxFoundation1.1roothubBus007Device001:ID1d6b:0001LinuxFoundation1.1roothubBus003Device013:ID12d1:1038HuaweiTechnologiesCo..
分类:系统相关   时间:2014-05-15 01:06:50    阅读次数:389
linux iptables添加mysql访问
用一个shell脚本添加一个IP的mysql3306端口到防火墙白名单#!/bin/bashchkconfig--level235iptablesoniptables-Fiptables-AINPUT-s127.0.0.1-ptcp--dport3306-jACCEPTiptables-AINPUT-s192.168.0.11-ptcp--dport3306-jACCEPT
分类:数据库   时间:2014-05-15 00:45:29    阅读次数:299
变量、脚本结构
vShell的作用——命令解释器,“翻译官”§介于系统内核与用户之间,负责解释命令行v用户的登录Shell§登录后默认使用的Shell程序,一般为/bin/bash§不同Shell的内部指令、运行环境等会有所区别v执行脚本文件§方法一:脚本文件路径§方法二:sh脚本文件路径§方法三:source..
分类:其他好文   时间:2014-05-15 00:32:51    阅读次数:393
【LeetCode】- Two Sum(两数相加)
[ 问题: ] Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the ta...
分类:其他好文   时间:2014-05-15 00:04:39    阅读次数:377
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!