语法示例: while 条件为真 do echo ok done #!/bin/bash while true do echo ok done while循环数字 #!/bin/bash a=1 b=9 while [ $a -lt 10 ] do sum=$((a + b)) echo $a + ...
分类:
系统相关 时间:
2021-06-02 11:02:44
阅读次数:
0
示例: for i in 1 2 3 do echo $i done #!/bin/bash for i in {1..100} do echo $i done for 循环指定分隔符 以冒号为分隔符 IFS=: 以换行符作为分隔符 IFS=$'\n' 以行为单位读取数据 #!/bin/bash I ...
分类:
系统相关 时间:
2021-06-02 11:00:55
阅读次数:
0
GeoWebCache is a Java web application used to cache map tiles coming from a variety of sources such as OGC Web Map Service (WMS). It implements variou ...
分类:
Web程序 时间:
2021-06-02 10:58:05
阅读次数:
0
给定一个包含电话号码列表(一行一个电话号码)的文本文件 file.txt,写一个单行 bash 脚本输出所有有效的电话号码。 你可以假设一个有效的电话号码必须满足以下两种格式: (xxx) xxx-xxxx 或 xxx-xxx-xxxx。(x 表示一个数字) 你也可以假设每行前后没有多余的空格字符。 ...
分类:
编程语言 时间:
2021-06-02 10:54:40
阅读次数:
0
《Windows Azure Platform 系列文章目录》 本文在CentOS 6.10安装Nginx 1.开始安装Nginx (1)安装pcre依赖 wget https://sourceforge.net/projects/pcre/files/pcre/8.44/pcre-8.44.tar ...
分类:
系统相关 时间:
2021-06-02 10:44:46
阅读次数:
0
此篇主要内容:1、代码逻辑(流程图呈现) 2、具体实现语句 3、脚本(脚本为完善后的) 一、分页逻辑图 2、语句分析与记录 3、脚本 using System; using System.Collections; using System.Collections.Generic; using Uni ...
分类:
其他好文 时间:
2021-06-02 10:37:57
阅读次数:
0
//cookie hook (function () { 'use strict'; var cookie_cache = document.cookie; Object.defineProperty(document, 'cookie', { get: function () { console. ...
分类:
Web程序 时间:
2021-06-02 10:33:51
阅读次数:
0
前言:致敬伟大的Linus Torvalds(林纳斯·托瓦兹) Linus Torvalds是开源界的珠穆朗玛峰,是一位凭自己的聪明才智改变世界的伟人。他的成就除了威名远扬的Linux系统,还有Git版本管理系统。 巧的是,Git也是因Linux系统而生。Linus当时苦于没有一个好用的版本管理系统 ...
分类:
其他好文 时间:
2021-05-25 18:33:46
阅读次数:
0
1.描述符表与socket 每个socket都有一个描述符,指向对应socket的结构,但是对这个sockfd的读写是怎么和缓冲区以及文件连接起来的呢? 数据结构: https://www.kernel.org/doc/htmldocs/networking/API-struct-socket.ht ...
分类:
其他好文 时间:
2021-05-25 18:31:55
阅读次数:
0
部署# 服务端# 安装 NFS 服务 #执行以下命令安装 NFS 服务, #apt 会自动安装 nfs-common、rpcbind 等软件包 sudo apt install nfs-kernel-server 创建共享目录 在服务器端创建 /nfs 目录。 编写配置文件 vim /etc/exp ...
分类:
其他好文 时间:
2021-05-25 18:14:09
阅读次数:
0