Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this user
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
david
/
createBashSk
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Files
master
README.md
crSh
Breadcrumbs
createBashSk
/
crSh
Blame
Blame
Latest commit
History
History
executable file
·
39 lines (36 loc) · 558 Bytes
Breadcrumbs
createBashSk
/
crSh
Top
File metadata and controls
Code
Blame
executable file
·
39 lines (36 loc) · 558 Bytes
Raw
#!/bin/bash function usage() { if [ "$1" == "" ]; then echo "usage: $0 braucht Skriptnamen" return 1 fi return 0 } p=`which bash` usage $1 if [ $? = 1 ]; then echo "Skryptname eingeben: " read file file="${file}.sh" else file="${1}.sh" fi x="false" while [ "$x" = "false" ] do if [ ! -e ${file} ]; then x="true" else echo "existiert bereits !!!!" echo "neuen Skryptname eingeben: " read file file="${file}.sh" fi done exec 3> /dev/null touch ./${file} >&3 chmod a+x ${file} >&3 echo "#!${p}" >> ${file} geany ${file} & exec 3>&- exit 0
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
You can’t perform that action at this time.