Skip to content

Commit

Permalink
本を読んだ記事のひな型作るスクリプト
Browse files Browse the repository at this point in the history
  • Loading branch information
K-tecchan committed Feb 12, 2024
1 parent 292de23 commit 2437065
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions book.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/content/post/book-efficient-linux-command-line.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 「Efficient Linuxコマンドライン」を読んだ
published: 2024-02-11
description: オライリージャパンの Efficient Linuxコマンドラインを読みました
description: オライリージャパンのEfficient Linuxコマンドライン」を読みました
tags: [book, linux]
---

Expand Down

0 comments on commit 2437065

Please sign in to comment.