新建文件夹bash

#!/bin/bash for line in `cat apple.txt` # 将 cat apple.txt的输出作为字符串,for逐个读取赋值line变量 #``为反引号 #也可以使用取值符号$(cat apple....

October 14, 2022 · 1 分钟 · 102 字 · swimminghao

命令行的艺术

命令行的艺术 前言 基础 日常使用 文件及数据处理 系统调试 单行脚本 冷门但有用 仅限 OS X 系统 仅限 Windows 系统 更多资源 免责声明 熟练使用命令行是一种常常被忽视,或...

April 15, 2022 · 24 分钟 · 11705 字 · swimminghao

shell效率

§1效率 输入相似文件名太麻烦 用花括号括起来的字符串用逗号连接,可以自动扩展,非常有用,直接看例子: $ echo {one,two,three}file onefile twofile threefile $ echo {one,two,three}{1,2,3} one1 one2 one3 two1 two2 two3 three1 three2 three3 你看,...

February 28, 2022 · 4 分钟 · 1912 字 · swimminghao

shell效率0

[toc] §1效率 输入相似文件名太麻烦 用花括号括起来的字符串用逗号连接,可以自动扩展,非常有用,直接看例子: $ echo {one,two,three}file onefile twofile threefile $ echo {one,two,three}{1,2,3} one1 one2 one3 two1 two2 two3 three1 three2 three3 你看...

February 28, 2022 · 4 分钟 · 1913 字 · swimminghao

shell知识点

$1易混淆点 一、标准输入和参数的区别 这个问题一定是最容易让人迷惑的,具体来说,就是搞不清什么时候用管道 符| 和文件重定向> ,< ,什...

February 28, 2022 · 3 分钟 · 1338 字 · swimminghao