Advertisement
selebry

fdsafsd

Sep 15th, 2022
1,441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  1. ////3/////
  2. #!/bin/bash
  3. argString="$@"
  4. n=${#argString}
  5. echo -n '+'
  6. for((i=0;i<=$n+1;i++))
  7. do
  8. echo -n '-'
  9. done
  10. echo '+'
  11. echo -n '| '
  12. echo -n "$argString"
  13. echo ' |'
  14. echo -n '+'
  15. for((i=0;i<=$n+1;i++))
  16. do
  17. echo -n '-'
  18. done
  19. echo '+'
  20. /////5/////
  21. #!/bin/bash
  22. file="$1"
  23. chmod 777 $file
  24. cp $file /usr/local/bin
  25. //////6////
  26. #!/bin/bash
  27. str="$(head -n 1 $1)"
  28. if [[ $1 == *".py"* ]]; then
  29. if [[ $str == *"#"* || $str == *"'''"* ]]; then
  30. echo "comment"
  31. fi
  32. elif [[ $1 == *".js"* ]]; then
  33. if [[ $str == *"//"* || $str == *"/*"* ]]; then
  34. echo "comment"
  35. fi
  36. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement