上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 49 下一页

2019年10月11日

Batch - %~dp0 vs %cd%

摘要: 总结 %~dp0 只表示将要“运行的”bat命令的folder,不包含bat自己的名称。 %cd%表示,“运行处”的folder 。 示例脚本内容 cd-dp0.bat存放在f盘 在C:\Users\Administrator执行脚本 执行: 结果: 在F:\执行脚本 执行: 结果: 阅读全文

posted @ 2019-10-11 17:41 frank_cui 阅读(300) 评论(0) 推荐(0)

Batch - windows batch 常用命令(cheat sheet)

摘要: 原文地址:https://www.oschina.net/code/snippet_158297_4964 阅读全文

posted @ 2019-10-11 17:19 frank_cui 阅读(503) 评论(0) 推荐(0)

Batch - %~dp0 modifiers

摘要: %~dp0 简易解释 The variable %0 in a batch script is set to the name of the executing batch file. The ~dp special syntax between the % and the 0 basically 阅读全文

posted @ 2019-10-11 17:02 frank_cui 阅读(430) 评论(0) 推荐(0)

2019年10月7日

手写代码注意点 -- 判断参数合法性

摘要: leetcode官方示例: 阅读全文

posted @ 2019-10-07 21:12 frank_cui 阅读(272) 评论(0) 推荐(0)

Batch - FINDSTR

摘要: 总结 Searches for strings in files. 在文件中寻找特定的字符串 官方文档 阅读全文

posted @ 2019-10-07 14:34 frank_cui 阅读(315) 评论(0) 推荐(0)

Batch - 重定向符号Redirection >

摘要: 总结 Don't use a piping operator, which is what ">" Redirection is. 不要使用管道运算符,即“>”。 Display text 文本显示 To display a text on screen we have the ECHO comma 阅读全文

posted @ 2019-10-07 14:32 frank_cui 阅读(437) 评论(0) 推荐(0)

Batch - FOR %%a %%b

摘要: 总结 %%a refers to the name of the variable your for loop will write to. Quoted from for /?: Example 中文 1: Example 中文 2: Example 1: Above snippet would 阅读全文

posted @ 2019-10-07 14:18 frank_cui 阅读(793) 评论(0) 推荐(0)

Batch - FOR /F Delims 和 Tokens 用法

摘要: 原文地址: for /f命令之—Delims和Tokens用法&总结 作者:别逗了好么 在For命令语踞饽参数F中,最难理解的就是Delims和Tokens两个选项,本文简单的做一个比较和总拮。“For /f”常用来解析文本,读取字符串。分工上,delims负责切分字符串,而tokens负责提取字符 阅读全文

posted @ 2019-10-07 13:40 frank_cui 阅读(2907) 评论(0) 推荐(0)

2019年9月27日

Batch - 忽略FORFILES “no files found” error

摘要: ref:https://stackoverflow.com/questions/16820681/suppress-forfiles-no-files-found-error Solution: The solution is to capture the output of the FORFILE 阅读全文

posted @ 2019-09-27 18:04 frank_cui 阅读(879) 评论(0) 推荐(0)

Batch - forfiles 命令详解

摘要: forfiles 命令详解 注意: 这些命令是等价的: /S 等同于 -s, /M 等同于 -m 阅读全文

posted @ 2019-09-27 17:28 frank_cui 阅读(771) 评论(0) 推荐(0)

Linux下可以运行bat文件么?

摘要: bat是批处理文件,在windows和linux上都可以使用。 不过在linux的命令行中不可以直接敲"xxx.bat",系统会去找所有的命令。 想要调用bat文件,需要写绝对路径,比如"/home/myDir/xxx.bat",或者是切换到bat文件所在的目录,然后键入:"./xxx.bat".这 阅读全文

posted @ 2019-09-27 16:54 frank_cui 阅读(56874) 评论(0) 推荐(1)

Batch pk Shell - WindowsBatch与LinuxShell比较 [变量符号和关键字]

摘要: 原文地址:WindowsBatch与LinuxShell比较[变量符号和关键字] 一 简单实例1)batch file 小结:- batch file一般以bat或cmd为后缀。- 第一行为@echo off表示关闭运行时batch file本身输入,只输出运行的结果。- rem和::表示注释。2) 阅读全文

posted @ 2019-09-27 16:47 frank_cui 阅读(700) 评论(0) 推荐(0)

Unix、Linux、Windows操作系统的区别

摘要: 1.操作区别 原文地址: https://blog.csdn.net/qq_41026740/article/details/96018808 linux区分大小写,windows在dos界面命令下不区分大小写; linux所有内容均以文件形式保存包括硬件,用户,而windows文件和硬件没什么关系 阅读全文

posted @ 2019-09-27 16:43 frank_cui 阅读(5815) 评论(0) 推荐(0)

2019年9月18日

Leetcode - K Sum

摘要: List<List<Integer>> kSum_Trim(int[] a, int target, int k) { List<List<Integer>> result = new ArrayList<>(); if (a == null || a.length < k || k < 2) return result; Arrays.sort(a); kSum_Trim(a, target, 阅读全文

posted @ 2019-09-18 23:20 frank_cui 阅读(186) 评论(0) 推荐(0)

算法 - 快速排序

摘要: 1.算法解析 ref: https://blog.csdn.net/adusts/article/details/80882649 假设我们现在对“6 1 2 7 9 3 4 5 10 8”这个10个数进行排序。首先在这个序列中随便找一个数作为基准数(不要被这个名词吓到了,就是一个用来参照的数,待会 阅读全文

posted @ 2019-09-18 00:13 frank_cui 阅读(237) 评论(0) 推荐(0)

2019年9月16日

手写代码注意点 -- HashMap

摘要: 1.定义 <String,String>只需要写一遍 2.获取key和value 3.遍历 阅读全文

posted @ 2019-09-16 22:11 frank_cui 阅读(287) 评论(0) 推荐(0)

2019年9月9日

Batch - C:\Progra~1是什么意思

摘要: 就是那种DOS下的8.3的规范,可以这样写 C:\Progra~1也可以这样写全名字的 "C:\Program File",因为这个路径中的文件夹名有空格,要用两个英文输入法下的双引号来引上 Progra~2 refers to Program Files Progra~1 refers to Pr 阅读全文

posted @ 2019-09-09 11:03 frank_cui 阅读(1720) 评论(0) 推荐(0)

Batch - Windows Batch 常用命令

摘要: 比较符号(不能用 < , >) The reason operators like > are not used is because they have special meanings in shell scripts. The > is used to redirect output; < u 阅读全文

posted @ 2019-09-09 10:30 frank_cui 阅读(1558) 评论(0) 推荐(0)

2019年9月8日

Tomcat - 基本知识

摘要: 基本概念 Tomcat是接收和解析http请求,并将结果返回客户端的应用程序 轻量级的web应用服务器 适用于并发性不是很高的系统中 开发和调试jsp的首选 类似的应用程序:Jetty, JBoss/WildFly, Glassfish, Weblogic Tomcat原理 Server服务器: 是 阅读全文

posted @ 2019-09-08 11:32 frank_cui 阅读(226) 评论(0) 推荐(0)

2019年8月29日

微服务 - 基础知识

摘要: 微服务的定义 微服务颗粒度:把因为同样原因变化的功能,内聚为一个微服务;把因为不同原因变化的功能,拆分为为不同的微服务 独立进程:互不影响,独立运行 轻量级通信:和与语言无关,和平台无关 去中心化:和与语言无关,和平台无关 阅读全文

posted @ 2019-08-29 23:37 frank_cui 阅读(256) 评论(0) 推荐(0)

上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 49 下一页

导航

levels of contents