Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本を読んだ記事のひな型作るスクリプト #38

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading