最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

head, tail, catI(linux) in powershell

运维笔记admin40浏览0评论

head, tail, catI(linux) in powershell

head, tail, catI(linux) in powershell

powershell提供了get-content命令,这个命令还存在3个别名,分别是gc, cat, type,这4个是等同的。

function head(){param([String]$f,[int]$n=6)$cont = cat -TotalCount $n $freturn $cont
}
head "data.txt"

转载于:.html

发布评论

评论列表(0)

  1. 暂无评论