码迷,mamicode.com
首页 >  
搜索关键字:awk rs ors fs ofs    ( 8409个结果
将url下载到本地
const axios=require('axios') const fs = require('fs-extra'); const https=require('https') const path=require('path') function resolve (dir) { return p ...
分类:Web程序   时间:2021-05-24 17:11:19    阅读次数:0
egg.js文件下载实现
多文件合并下载 依赖于 https://github.com/feross/multistream const streams = []; for (const file of files) { streams.push(fs.createReadStream(file)); } this.ctx. ...
分类:Web程序   时间:2021-05-24 14:10:30    阅读次数:0
windows中的换行符和Linux中的换行符
# cat -A tmp.tmp 120.4987 12.717858^M$ ^M 对应的字符是 \r # cat tmp.txt | awk -vRS='\r\n' '{print $2,$1}' 或者转换格式文件 yum install dos2unix -y dos2unix tmp.tmp ...
分类:Windows程序   时间:2021-05-24 13:41:55    阅读次数:0
3. linux常用命令及三剑客 grep sed awk 用法
linux 常用命令:文件、网络、性能 一.常用命令 文件 ls cd pwd mkdir cp rm mv 文件属性 # 授权 r: 读权限 4; w: 写权限 2; x: 操作权限 ; r+w+x=7,是最高权限 chomd 777 文件名 网络 ping # 测试网络连接情况 ping -c ...
分类:系统相关   时间:2021-05-24 10:00:59    阅读次数:0
解决挂载mount: wrong fs type, bad option, bad superblock on
错误如下: mount: wrong fs type, bad option, bad superblock on 192.168.1.7:data/nfsdir2, missing codepage or helper program, or other error (for several fi ...
分类:其他好文   时间:2021-05-24 06:40:25    阅读次数:0
node.js createServer
const http=require('http') const fs=require('fs') const path=require('path') const server=http.createServer(function(req,res){ const {url}=req console ...
分类:Web程序   时间:2021-05-04 15:44:00    阅读次数:0
修改官方cubestore 支持minio s3
支持s3是cubestore 一个很不错的特性,可以提高系统的扩展性 参考修改 主要是添加endpoint 以及配置使用path格式请求 s3.rs impl S3RemoteFs { pub fn new( dir: PathBuf, region: String, endpoint:String ...
分类:其他好文   时间:2021-05-04 15:33:00    阅读次数:0
shell逐行读取替换
#!/bin/bash while read linedo echo $line txt=`echo $line |awk -F' ' '{print $1}'` id=`echo $line|awk -F' ' '{print $3}'` echo $txt echo $id sed "s/ws2 ...
分类:系统相关   时间:2021-05-03 12:39:24    阅读次数:0
rust环境配置
安装cargo curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh vscode插件 ext install rust-lang.rust ext install vadimcn.vscode-lldb 调试配置 launsh ...
分类:其他好文   时间:2021-04-29 12:07:59    阅读次数:0
c++ (文件读写操作)
文件读写操作「c++」 #include <fstream> void test01() { //ofstream ofs("./test.txt",ios::out | ios::trunc); //后期指定打开方式 ofstream ofs; ofs.open("./test.txt",ios: ...
分类:编程语言   时间:2021-04-27 15:05:25    阅读次数:0
8409条   上一页 1 2 3 4 5 6 ... 841 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!