上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 29 下一页
摘要: Sort file content from Vim as shown below. 1. :sort -- Sort in ascending order 2. :sort! -- Sort in descending order 3. :sort i -- Ignore case while s 阅读全文
posted @ 2022-01-24 10:38 箫笛 阅读(974) 评论(0) 推荐(0)
摘要: global 命令类似于 shell 命令的 sed,对当前文档执行特定的命令 1. :g/^$/d 删除所有的空行 2. :g/^\s*$/d 删除具有空白字符或空白行 3. :g/^$/,/./-j 将多个空白行合并为一个空白行 4. :g/pattern/d 根据搜索模式删除特定的行 5. : 阅读全文
posted @ 2022-01-21 10:39 箫笛 阅读(258) 评论(0) 推荐(0)
摘要: help: debug-scripts Debugging scripts *debug-scripts* Besides the obvious messages that you can add to your scripts to find out whatthey are doing, Vi 阅读全文
posted @ 2022-01-02 00:26 箫笛 阅读(274) 评论(0) 推荐(0)
摘要: $ type cd 【显示cd命令的实现】 // cd is a shell buit in $ type -a pwd 【显示pwd命令的所有实现】 // pwd is a shell built in // pwd is /bin/pwd 阅读全文
posted @ 2021-12-30 11:31 箫笛 阅读(111) 评论(0) 推荐(0)
摘要: 1. 查看命令历史及写入文件 $ history 最近用过的命令列表 $ history -a 将命令历史记录写入.bash_history 文件 2. 执行命令历史中的命令 $ !! 执行上一次执行过的命令 $ !2 执行历史命令编号为2的命令 阅读全文
posted @ 2021-12-30 11:23 箫笛 阅读(494) 评论(0) 推荐(0)
摘要: 执行一个命令使其在后台运行的方式有两种: 1. 在bash 命令后加 & tar -zcvf dist.tgz dist & (tar -zcvf dist.tgz dist; cp dist.tgz ../) & 2. 利用 coproc 命令, 此命令会产生一个新的shell进程来执行命令 co 阅读全文
posted @ 2021-12-29 12:24 箫笛 阅读(3034) 评论(0) 推荐(0)
摘要: 1. 强制退出程序 command + option + esc 阅读全文
posted @ 2021-12-11 08:25 箫笛 阅读(143) 评论(0) 推荐(0)
摘要: node.js - nrm npm源管理工具 1. 安装nrm npm install -g nrm 2. 基本使用 查看可用源地址 nrm ls npm https://registry.npmjs.org/ yarn https://registry.yarnpkg.com/ tencent h 阅读全文
posted @ 2021-12-10 15:59 箫笛 阅读(144) 评论(0) 推荐(0)
摘要: 1. <Uncaught Error: Minified react error #130 >: module not export . 阅读全文
posted @ 2021-12-08 15:44 箫笛 阅读(165) 评论(0) 推荐(0)
摘要: 二叉树中的节点最多只能有两个节点:一个是左侧子节点,另一个是右侧子节点。 二叉搜索树是二叉树的一种,但是它只允许你在左侧节点存储比父节点小的值,在右侧节点存储比父节点大或者等于的值。 1. 二叉搜索树的方法 insert(key): 向树中插入一个新的键 search(key): 在书中查找一个键是 阅读全文
posted @ 2021-12-03 14:21 箫笛 阅读(127) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 29 下一页