码迷,mamicode.com
首页 >  
搜索关键字:bash shell read    ( 57440个结果)
Binder杂记
1. Binder的系统日志文件 # ps -A | grep suspend system 699 1 2184444 4564 binder_ioctl_write_read 0 S android.system.suspend@1.0-service # ls /proc/699/fd -l ...
分类:其他好文   时间:2021-04-19 15:59:18    阅读次数:0
git第一次使用
配置git: git config --global user.name "XXX" git config --gloaal user.email "XXX@...com" 文件在用户目录下 .gitconfig 中,可以手动删除 关联远程仓库 转到工程目录下 为了下次连接远程仓库不用输入密码,设置 ...
分类:其他好文   时间:2021-04-19 15:55:18    阅读次数:0
多开发机别名跳转脚本片段
#! /bin/bash # @author # @breif auto ssh function show_usage(){ echo -e " This is Usage " echo -e " -h: which host to go,for example dev041" } functio ...
分类:其他好文   时间:2021-04-19 15:50:26    阅读次数:0
python使用panda读取txt文件
Panda模块读取txt文本文件 使用pandas.read_csv函数 1. 如果txt文本中有表头(标题行) import panda as pd data = pd.read_csv('data.txt') print(data) 2. 如果txt文本中无表头 import panda as ...
分类:编程语言   时间:2021-04-19 15:38:55    阅读次数:0
shell-script - shell 如何获取 nginx 配置文件位置?
通过nginx -t获得 nginx=`nginx -t 2>&1 | grep configuration` if [ ! -z "$nginx" ];then nginxtmp="${nginx#*file}" nginxf="${nginxtmp%test*}" echo $nginxf fi ...
分类:系统相关   时间:2021-04-19 15:38:16    阅读次数:0
Explorer.EXE该文件没有与之关联的应用来执行该操作
Explorer.EXE该文件没有与之关联的应用来执行该操作。请安装应用,若已经安装应用,请在"默认应用设置"页面中创建关联。 添加如下注册表信息即可解决: Windows Registry Editor Version 5.00 [[HKEY_CLASSES_ROOT\Folder\shell\e ...
分类:其他好文   时间:2021-04-19 15:11:29    阅读次数:0
Linux_服务器_禁止国外IP访问
这里我们以禁止美国地址段为例,可以根据自己的需要将us.zone改为相应国家缩写 #/bin/bash wget -O /tmp/us.zone http://www.ipdeny.com/ipblocks/data/countries/us.zone for ip in `cat /tmp/us. ...
分类:系统相关   时间:2021-04-19 15:10:27    阅读次数:0
变量,元字符,流程判断if,while、for循环
一: shell编程介绍 1、一个shell脚本运行必须要拥有r和x权限; chamod u+x 1.txt 2、运行一个shell脚本的3个步骤: (1)启动bash解释器 (2)bash把文件内容从硬盘读入内存 (3)bash把读入到内存的内容进行语法解释,控制操作系统执行shell代码 写脚本 ...
分类:其他好文   时间:2021-04-16 12:25:54    阅读次数:0
[LG P3676]小清新数据结构题
题目 点这里看题目。 分析 直接来做这个有趣的问题似乎显得太过棘手,不妨考虑一个较弱的问题: \[ \sum_{u=1}^n s_u \] 假如当前根确定为 \(r\) ,那么就有: \[ \sum_{u=1}^ns_u=\sum_{u=1}^n(\operatorname{dist}(u,r)+1 ...
分类:其他好文   时间:2021-04-16 12:12:11    阅读次数:0
shell 引用
不会忽略的意思是shell当做特殊字符处理 1. 单引号 会忽略其中的所有特殊字符 包含空格 需要用单引号 2. 双引号 不会忽略$ 反引号 \ 3. 反斜线 转义 续行 4. 反引号 使用命令输出代替 $() 执行命令 这种写法要比反引号要好 ...
分类:系统相关   时间:2021-04-16 12:03:08    阅读次数:0
共57440条   上一页 1 ... 38 39 40 41 42 ... 5744 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!