aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xlem4
1 files changed, 3 insertions, 1 deletions
diff --git a/lem b/lem
index b9cbdfb..3a8f4fe 100755
--- a/lem
+++ b/lem
@@ -13,9 +13,11 @@ else
shift
fi
+# Replace spaces with underscores in the file name
+file_name=${msg// /_}
STAMP="$(date +%G%m%d%H%M%S)"
-F_PATH="$TARGET_DIR/$STAMP-$msg.md"
+F_PATH="$TARGET_DIR/$STAMP-$file_name.md"
printf "# %s" "$msg" >> "$F_PATH"