码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
shell 小技巧之修改后缀及grep
批量修改文件后缀第一种:#!/bin/bash forfnin*.$1 do mv$fn${fn%$1}$2 done第二种:find.-name"*.txt"|awk-F‘[./]+‘‘{print$2}‘|xargs-i-tmv{}.txt{}.shGREP用户小技巧文件如下:#cattest.txt Thisisatestfile agooddayandnocoludy Sithereandsingasong missagaoisting butmon..
分类:系统相关   时间:2016-04-22 16:47:48    阅读次数:207
脚本 折叠 各方向
$(this).find(".bag_tool").animate({width:‘toggle‘});//左折叠<styletype="text/css">.slide{position:relative;height:200;lightyellow;}.slide.inner{position:absolute;left:0;bottom:0;height:100;lightblue;width:100%}</style>$("#slideleftbutton").click..
分类:其他好文   时间:2016-04-22 16:39:51    阅读次数:103
Light OJ 1094 (树的直径)
Description Given a tree (a connected graph with no cycles), you have to find the farthest nodes in the tree. The edges of the tree are weighted and u ...
分类:其他好文   时间:2016-04-22 16:12:20    阅读次数:358
159. Longest Substring with At Most Two Distinct Characters
Given a string, find the length of the longest substring T that contains at most 2 distinct characters. For example, Given s = “eceba”, T is "ece" whi ...
分类:其他好文   时间:2016-04-22 13:24:06    阅读次数:159
四.文件搜索命令
locate 文件名 在后台数据库中按文件名来搜索/var/lib/mlocate(每天自动更新一次) updatedb 手动更新后台数据库/var/lib/mlocate whereis 命令名 -b 只查可执行文件 -m 只找帮助文件 which 命令名 可查看命令别名 find [搜索范围] ...
分类:其他好文   时间:2016-04-22 08:17:46    阅读次数:184
记一次在Eclipse中用Axis生成webservice服务端的过程中出现的问题
问题一、 Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd 找不到这个.wsdd的配置文件,没有自动生成! 原因是使用Eclipse自动生成axis服务端时 ...
分类:Web程序   时间:2016-04-21 20:06:39    阅读次数:235
How to delete a node in BST?
Step 1: Use the key to find this node in BST, time complexity is log(n) Step 2: after finding this node, we have 3 different conditions: 1, if this no ...
分类:其他好文   时间:2016-04-21 18:34:53    阅读次数:172
mysql平常总结
今天遇到一个问题。 查询字段内是否准确含有某个值。用到了 SELECT * FROM ft_linkadmin WHERE FIND_IN_SET('1', linkRoleId); 返回str在字符串集strlist中的序号(任何参数是NULL则返回NULL,如果str没找到返回0,参数1包含", ...
分类:数据库   时间:2016-04-21 18:31:48    阅读次数:162
235.236. Lowest Common Ancestor of a Binary (Search) Tree -- 最近公共祖先
235. Lowest Common Ancestor of a Binary Search Tree Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the ...
分类:其他好文   时间:2016-04-21 16:34:57    阅读次数:197
MySql的FIND_IN_SET()查询函数的使用
表 table的结构如下: 现在用sql语句查出来字段里包含21的所有记录怎么办? select * from table where title=21 or title like ’%,21’ or title like ’%,21,%’ or title like ’21,%’ 这样查看看有问题 ...
分类:数据库   时间:2016-04-21 15:16:28    阅读次数:245
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!