码迷,mamicode.com
首页 >  
搜索关键字:shell find    ( 51950个结果
注册表添加多级菜单
案例:添加.EXE文件右键菜单父菜单项【DC编程助手】,子菜单项【PEiD】【OllyDbg】Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\exefile\shell\DC]"SubCommands"="PEiD;OllyDbg""MU...
分类:其他好文   时间:2014-07-22 23:17:14    阅读次数:531
[Leetcode] Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:其他好文   时间:2014-07-22 23:16:14    阅读次数:408
shell脚本遍历目录及其下子目录
用shell写了个递归遍历目录的脚本,本脚本实现递归遍历指定目录,打印目录下的文件名(全路径)。#!/bin/sh function scandir() { local cur_dir parent_dir workdir workdir=$1 cd ${workdir} if [ ${w...
分类:其他好文   时间:2014-07-22 23:14:53    阅读次数:563
《Ubuntu标准教程》学习总结
第6章 ShellShell就是一个命令解释器,负责完成用户与内核之间的交互。目前流行电Shell主要有:Bourne Shell( sh )、Bourne Again Shell( Bash )、C Shell( csh )和Korn Shell( ksh ),Ubuntu Linux默认支持电s...
分类:其他好文   时间:2014-07-22 23:12:54    阅读次数:481
Nginx使用(配置开机启动)
环境: 系统:CentOS 6.5 Final 安装目录:/usr/local/nginxNginx开机自启:①编写shell实现控制vi /etc/init.d/nginx添加内容:#!/bin/bash# nginx Startup script for the Nginx HTTP Ser.....
分类:其他好文   时间:2014-04-30 16:34:10    阅读次数:582
对rsync进行封装的shell脚本
抓取#!/bin/bash. push.sh# 错误处理:尝试查找备份文件function onError(){ local errFile="err" local serverInfo=($1 $2 $3) # ip username password l...
分类:其他好文   时间:2014-04-30 16:23:25    阅读次数:449
【HDOJ】3560 Graph’s Cycle Component
并查集的路径压缩。 1 #include 2 #include 3 4 #define MAXNUM 100005 5 6 int deg[MAXNUM], bin[MAXNUM]; 7 char isCycle[MAXNUM]; 8 9 int find(int x) {10 i...
分类:其他好文   时间:2014-04-29 17:22:46    阅读次数:308
six solutions to a single symmetrical problem
Problem description:given a string, find the longest palindrome string in itSolution:1.brute force O(n^3)just enumerate start and end of the substring...
分类:其他好文   时间:2014-04-29 17:22:46    阅读次数:308
VC6微软正则表达式greta使用案例
#include#include"regexpr2.h"usingnamespacestd;usingnamespaceregex;//greta库的命名空间//若链接出错,设置MFC静态链接//查找匹配串//返回结果匹配串(CStringArray数组指针类型)CStringArray*Find(...
分类:其他好文   时间:2014-04-29 17:15:48    阅读次数:363
android下使用adb启动程序或者服务
使用 adb install hello.apk可以安装一个apk但并不能启动它,启动它要使用adb shell am的方法启动Activity:adb shell am start -n 包名/包名+类名(-n 类名,-a action,-d date,-m MIME-TYPE,-c catego...
分类:移动开发   时间:2014-04-29 16:33:46    阅读次数:541
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!