-
Notifications
You must be signed in to change notification settings - Fork 5
/
mkweb
executable file
·50 lines (36 loc) · 1.09 KB
/
mkweb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# Written By Woland
# Makes Web Project & Appends Basic Skeleton To The Relative Files
# The project dir will be named using current date and time
# https://github.com/wolandark
# https://github.com/wolandark/BASH_Scripts_For_Everyone
mkdir web"$(date +"%e-%R-%S")"
touch web"$(date +"%e-%R-%S")"/index.html
touch web"$(date +"%e-%R-%S")"/script.js
mkdir web"$(date +"%e-%R-%S")"/style && touch web"$(date +"%e-%R-%S")"/style/style.css
mkdir web"$(date +"%e-%R-%S")"/img
mkdir web"$(date +"%e-%R-%S")"/fonts
echo "<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel=stylesheet href=style/style.css>
<title>Document</title>
<style>
</style>
</head>
<body>
<p> </p>
<div> </div>
<script src="script.js">
</script>
</body>
</html>
" >> web"$(date +"%e-%R-%S")"/index.html
echo "*{
padding: 0;
margin: 0;
left:0;
}" >> web"$(date +"%e-%R-%S")"/style/style.css