Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////3/////
- #!/bin/bash
- argString="$@"
- n=${#argString}
- echo -n '+'
- for((i=0;i<=$n+1;i++))
- do
- echo -n '-'
- done
- echo '+'
- echo -n '| '
- echo -n "$argString"
- echo ' |'
- echo -n '+'
- for((i=0;i<=$n+1;i++))
- do
- echo -n '-'
- done
- echo '+'
- /////5/////
- #!/bin/bash
- file="$1"
- chmod 777 $file
- cp $file /usr/local/bin
- //////6////
- #!/bin/bash
- str="$(head -n 1 $1)"
- if [[ $1 == *".py"* ]]; then
- if [[ $str == *"#"* || $str == *"'''"* ]]; then
- echo "comment"
- fi
- elif [[ $1 == *".js"* ]]; then
- if [[ $str == *"//"* || $str == *"/*"* ]]; then
- echo "comment"
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement