
Bash
文章平均质量分 79
delphiwcdj
用代码改变生活
展开
-
Linux shell程序设计知识点总结 (待续)
Shell脚本 bash原创 2011-04-23 17:53:00 · 2125 阅读 · 0 评论 -
shell删除文本技巧 —— grep, cut, head, sed, awk
2011-09-19 wcdj问题描述:如何使用shell脚本删除samba的配置文件中的一个用户子项?samba的配置文件信息如下所示:[global] workgroup = MYGROUP security = user[us原创 2011-09-19 01:16:14 · 2721 阅读 · 0 评论 -
awk中使用shell命令的方法
2011-10-15awk中使用shell命令的方法:方法1:system方法2:getline (获取shell命令结果的第一行输出)[1] system#!/bin/shecho "gerry" | awk '{ system("d原创 2011-10-15 13:35:40 · 1935 阅读 · 0 评论 -
Bash中使用多行注释的方法(Here Documents)
2012-10-19 wcdj在bash脚本中的使用方法:: There are more linesin this bash fileInputComesFromHEREExample. Multi-line message using cat#!/bin/bash# 'echo' is fine for printing single lin原创 2012-10-19 09:37:38 · 2544 阅读 · 0 评论 -
格式化列表工具column和sort使用一则
2012-10-20 wcdj在对表格形式的输出数据进行处理时,column和sort工具大多可以派上用场。看一个例子:#/bin/sh# 2012-10-20 wcdjfile=test.txtcat << gerry_here_doc=================================usage:# m: the number of fields fr原创 2012-10-20 14:10:05 · 1616 阅读 · 0 评论 -
history在bash脚本中的用法
2014-03-18 wcdjQuestion:I have been bashing my head to write a simple history script for the last two days. History is a shell-built in command I couldn't able to use that within a BASH script原创 2014-03-18 12:42:27 · 1189 阅读 · 0 评论 -
[问题记录] curl: (18) transfer closed with outstanding read data remaining 原因分析
问题描述首先使用get方法请求apache的一个CGI,返回预期结果,然后换成post方法,结果返回如下错误: curl: (18) transfer closed with outstanding read data remaining错误的大致意思是:需要读取的数据还没有完成,但是传输数据的连接被关闭了。服务端CGI的代码很简单,只是构造了一个应答:#!/bin/bashecho "Co原创 2016-04-08 21:13:58 · 57621 阅读 · 0 评论