-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux 相关(vim、shell、shell script) #2
Comments
sed 流式文本编辑器推荐阅读实践#!/bin/bash
# 将 #import "/Users/xianglongchen/Desktop/Playground/ObjCLibA/ObjCLibA/ObjCLibA-Bridging-Header.h" 替换成 #import "ObjCLibA-Bridging-Header.h"
sed -i "" "s/^#import.*ObjCLibA-Bridging-Header\.h\"$/\#import \"ObjCLibA-Bridging-Header\.h\"/g" /Users/xianglongchen/Desktop/Playground/ObjCLibA/ObjCLibA-Swift.h
|
awk 文本处理工具 |
grep 文本搜索命令行工具 |
Shell 脚本Shell 脚本学习总结FAQ1. 如何将一个字符串转成大写?y="HELLO"
val=$(echo "$y" | tr '[a-z]' '[A-Z]')
# 或者 val=$(echo "$y" | tr '[:upper:]' '[:lower:]')
string="$val world" 2. 在linux下怎么把一个文件的内容复制到另一个文件的末尾?cat file1.txt >> file2.txt 参考: 2. Mac 终端执行
|
常用 Mac/Linux 终端命令指定特定程序打开文件
|
Bash Shell 常用快捷键移动光标
编辑命令
其它
zsh
Vim移动光标
删除
参考 |
如何在 Mac 的 Command Line Tool 上使用 Linux 命令?问题尽管都是源于 Unix,但是 Mac 上的终端命令跟 Linux 上的命令还有有些细微的差别。 比如
解决使用 homebrew 在某个目录下安装 GNU utilities,主要是 coreutils。
一些问题
可以通过新建
为了让
如果需要恢复 Mac 自带的 shell 命令,从 参考
|
Linux
|
Mac OS 环境变量设置 |
相关总结
The text was updated successfully, but these errors were encountered: