From 2437065e809e4284fcf1f0190adb0d3823ee327a Mon Sep 17 00:00:00 2001 From: k-tecchan Date: Mon, 12 Feb 2024 18:40:18 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E3=82=92=E8=AA=AD=E3=82=93=E3=81=A0?= =?UTF-8?q?=E8=A8=98=E4=BA=8B=E3=81=AE=E3=81=B2=E3=81=AA=E5=9E=8B=E4=BD=9C?= =?UTF-8?q?=E3=82=8B=E3=82=B9=E3=82=AF=E3=83=AA=E3=83=97=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- book.sh | 18 ++++++++++++++++++ .../post/book-efficient-linux-command-line.mdx | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 book.sh diff --git a/book.sh b/book.sh new file mode 100644 index 0000000..1eb943f --- /dev/null +++ b/book.sh @@ -0,0 +1,18 @@ +#!/usr/bin/bash + +echo "記事のURLを入力" +read file_name +echo "出版社を入力" +read publisher +echo "書籍名を入力" +read title +echo "タグを入力" +read tags + +FILE_NAME="./src/content/post/book-$file_name.mdx" +echo "---" > $FILE_NAME +echo "title: 「$title」を読んだ" >> $FILE_NAME +echo "published: $(date +%F)" >> $FILE_NAME +echo "description: $publisherの「$title」を読みました。" >> $FILE_NAME +echo "tags: [book, $tags]" >> $FILE_NAME +echo "---" >> $FILE_NAME \ No newline at end of file diff --git a/src/content/post/book-efficient-linux-command-line.mdx b/src/content/post/book-efficient-linux-command-line.mdx index bd45b49..ba922ce 100644 --- a/src/content/post/book-efficient-linux-command-line.mdx +++ b/src/content/post/book-efficient-linux-command-line.mdx @@ -1,7 +1,7 @@ --- title: 「Efficient Linuxコマンドライン」を読んだ published: 2024-02-11 -description: オライリージャパンの Efficient Linuxコマンドラインを読みました。 +description: オライリージャパンの「Efficient Linuxコマンドライン」を読みました。 tags: [book, linux] ---