- Dapatkan link
- X
- Aplikasi Lainnya
cat(英文全拼:concatenate)命令用于连接文件并打印到标准输出设备上。
使用权限
所有使用者
语法格式
cat [-AbeEnstTuv] [--help] [--model] fileName
参数说明:
-n 或 --variety:由 1 开始对所有输出的行数编号。
-b 或 --variety-nonblank:和 -n 相似,只不过对于空白行不编号。
-s 或 --squeeze-blank:当遇到有连续两行以上的空白行,就代换为一行的空白行。
-v 或 --show-nonprinting:使用 ^ 和 M- 符号,除了 LFD 和 TAB 之外。
-E 或 --show-ends : 在每行结束处显示 $。
-T 或 --display-tabs: 将 TAB 字符显示为 ^I。
-A, --show-all:等价于 -vET。
-e:等价于"-vE"选项;
-t:等价于"-vT"选项;
实例:
把 textfile1 的文档内容加上行号后输入 textfile2 这个文档里:
cat -n textfile1 > textfile2
把 textfile1 和 textfile2 的文档内容加上行号(空白行不加)之后将内容附加到 textfile3 文档里:
cat -b textfile1 textfile2 >> textfile3
清空 /etc/test.txt 文档内容:
cat /dev/null > /etc/take a look at.txt
cat 也可以用来制作镜像文件。例如要制作软盘的镜像文件,将软盘放好后输入:
cat /dev/fd0 > OUTFILE
相反的,如果想把 photograph report 写到软盘,输入:
cat IMG_FILE > /dev/fd0
注:
1. OUTFILE 指输出的镜像文件名。
2. IMG_FILE 指镜像文件。
three. 若从镜像文件写回 device 时,device 容量需与相当。
four. 通常用制作开机磁片。
Linux 命令大全
');
var statusdiv=$('#comment-popularity');
commentform.publish(feature(e)
e.preventDefault();
var noteContent = editor.getValue();
// console.log(noteContent);
noteContent = noteContent.update(//g,"");
noteContent = noteContent.replace(//g,"");
// 系列化表单数据
var comment_parent = 0;
var is_user_logged_in = $("#is_user_logged_in").val();
var comment_post_ID =8981;
var _wp_unfiltered_html_comment = $("#_wp_unfiltered_html_comment").val();
var remark = noteContent;
var creator = $("#writer").val();
var url = $("#url").val();
var email = $("#e mail").val();
if(isBlank(writer) && is_user_logged_in==zero)
statusdiv.html('
请输入昵称!').display();
else if(isBlank(email)&& is_user_logged_in==0)
statusdiv.html('
请输入邮箱!').display();
else
// var formdata=commentform.serialize() + "&remark=" + noteContent ;
// 添加状态信息
statusdiv.html('
Processing...').show();
// 获取表单提交地址
var formurl=commentform.attr('movement');
// 异步提交
$.ajax(
type: 'submit',
url: formurl,
dataType:'json',
facts: "comment_parent":comment_parent,"comment_post_ID":comment_post_ID, "_wp_unfiltered_html_comment":_wp_unfiltered_html_comment,"comment":comment,"url":url, "email":e mail,"writer":creator,
blunders: feature(XMLHttpRequest, textStatus, errorThrown)
statusdiv.html('
数据不完整或表单提交太快了!').show();
,
fulfillment: function(statistics, textStatus)
if(statistics.errorno=="zero")
$("#submit").prop('disabled', authentic);
statusdiv.html('
笔记已提交审核,感谢分享笔记!').display();
alert('笔记已提交审核,感谢分享笔记!');
else
statusdiv.html('
'+information.msg+'').show();
commentform.find('textarea[name=remark]').val('');
);
setTimeout(characteristic()
$("#put up").prop('disabled', fake);
, 10*one thousand);
return fake;
);
$(".comt-author").click on(characteristic()
href = $(this).children("a").attr("href");
if(href.indexOf("/observe/")!=-1)
var win = window.open(href, '_blank');
win.consciousness();
);
$(".comt-meta span").hover(feature()
$(this).children(".tooltip").css( "opacity": 1, "pointer-activities": "auto");
,characteristic()
$(this).youngsters(".tooltip").removeAttr("fashion");
);
/*
$(".wrapper i").hover(characteristic()
$(this).siblings(".tooltip").css( "opacity": 1, "pointer-occasions": "automobile");
,function()
$(this).siblings(".tooltip").css( "opacity": zero, "pointer-activities": "car");
);
*/
//Upvote.create('runoobvote-id', callback: vote_callback);
var ajaxurl = 'https://www.runoob.com/wp-admin/admin-ajax.personal home page';
var callback = characteristic(statistics)
//console.log($('#runoobvote-id').upvote('upvoted'));
//console.log($('#runoobvote-identity').upvote('downvoted'));
//console.log(records);
_vote_action = records.action;
id_arr = data.identity.cut up('-');
um_id= id_arr[2];
//console.log(um_id);
var re = /^[1-nine]+/;
if (re.take a look at(um_id))
var ajax_data =
_vote_action: _vote_action,
action: "pinglun_zan",
um_id: um_id,
um_action: "ding"
;
//console.log(ajax_data);
$.publish(ajaxurl,ajax_data,characteristic(status)
//if(fame.vote_num>999)
// _voteHtml = ''+kFormatter(reputation.vote_num) +'';
// $("#runoobvote-identity-" + um_id + " .rely").conceal().after(_voteHtml);
//
);
;
if($('#feedback').duration && $('.upvotejs').duration)
$('.upvotejs').upvote(identification: 8981, callback: callback);
$.post(ajaxurl,"movement":"pinglun_zan","postid":8981,function(data)
$(records).every(feature(key,cost)
$("#runoobvote-id-" + fee.commid + " .upvote").addClass(fee.upvotejs_class);
$("#runoobvote-id-" + value.commid + " .downvote").addClass(fee.downvote_class);
$("#runoobvote-identity-" + fee.commid + " .matter").text(price.upvote_count);
)
,'json');
);
characteristic isBlank(str)
go back /^\s*$/.test(str));
function kFormatter(num)
// return num;
go back Math.abs(num) > 999 ? Math.signal(num)*((Math.abs(num)/1000).toFixed(1)) + 'ok' : Math.signal(num)*Math.abs(num)
Komentar
Posting Komentar