我有这个方便的脚本来打印显示正在运行的实例的名称,类型和ID的表。
// Make sure we have a reference to the pdf API so we can getField etc.
var pdfObject = this;
// I'm assuming the day and date offset should not be hardcoded
var entries = Entry.loadAll(pdfObject, 1, "10/25/2015");
// check the entries
entries.forEach( function(entry) {
let fits = entry.checkFit(entries);
console.log('Slot check for entry '+entry.id+': '+fits);
});
aws ec2 describe-instances \
--filters "Name=instance-state-code,Values=16" \
--query 'Reservations[*].Instances[*].[Tags[?Key==`Name`]|[0].Value, InstanceType, InstanceId]' \
--output table
我试图将此命令作为别名/函数添加到我的zshrc中,但是我只是找不到一种方法来逃避最后一次出现在“名称”周围的背景。请注意,这种情况下反引号用单引号引起来。感谢您的帮助。