【osx 下的 sed】 处理这类 error : command i expects \\ followed by text https://stackoverflow.com/questions/14846304/sed-command-error-on-macos-x 解决办法:brew install gnu-sed * 注意 alias sed=gsed don’t work for bash script, as “ Aliases are not expanded when the shell is not interactive, unless the expand_aliases shell option is set using shopt (see the description of shopt under SHELL BUILTIN COMMANDS below) ” in bash manpage. The best way is: https://unix.stackexchange.com/questions/1496/why-doesnt-my-bash-script-recognize-aliases just use a variable in the script. GSED = /usr/loca/bin/gsed $GSED ‘script’ file sed的替换 【如何安装 fortran】 https://www.zhihu.com/question/26534875 荆棘林荫的回答。 实际安装: after you type brew install gcc Installing dependencies for gcc: gmp , mpfr , libmpc , isl /usr/local/Cellar/gmp/6.1.2_2: 18 files, 3.1MB, built in 4 minutes 16 seconds /usr/local/Cellar/mpfr/4.0.1: 28 files, 4.6MB, built in 2 minutes 58 seconds /usr/local/Cellar/libmpc/1.1.0: 12 files, 358.9KB, built in 1 minute 1 second /usr/local/Cellar/isl/0.19: 66 files, 3.8MB, built in 1 minute 49 seconds /usr/local/Cellar/gcc/7.3.0_1: 1,485 files, 290.0MB, built in 72 minutes 15 seconds just be patient~ 【vim配置】 set ruler set number等 https://blog.csdn.net/YZHY_Ocean/article/details/7272222 各种快捷键: http://www.cnblogs.com/smstars/archive/2013/05/18/3085342.html u:撤销删除 【grep使用】 grep -v 用于反向选择! https://stackoverflow.com/questions/3548453/negative-matching-using-grep-match-lines-that-do-not-contain-foo
这里介绍的方法是可用的: http://blog.imfer.me/#!/post/2014-12-27-open-terminal-here-OSX 我们还可以为这个操作制定一个快捷键,找来找去终于找到一个跟系统不冲突的: ⌘+\ 另外一个小tip是,这一操作是针对一个选定的文件夹,并不像Linux系统中常见的 Open terminal here 是针对当前目录打开终端窗口。一个解决方案是“⌘+↑”回到父目录再“⌘+\”打开窗口。也不算太麻烦。