bash bash 2,189

  1. Getting the source directory of a Bash script from within
  2. How do I tell if a regular file does not exist in Bash?
  3. How to concatenate string variables in Bash
  4. In the shell, what does “ 2>&1 ” mean?
  5. Extract filename and extension in Bash
  6. String contains in Bash
  7. Check if a program exists from a Bash script
  8. Echo newline in Bash prints literal \n
  9. How do I split a string on a delimiter in Bash?
  10. How do I parse command line arguments in Bash?
  11. How to count all the lines of code in a directory recursively?
  12. How do I reload .bashrc without logging out and back in?
  13. How can I redirect and append both stdout and stderr to a file with Bash?
  14. How to change the output color of echo in Linux
  15. How do I prompt for Yes/No/Cancel input in a Linux shell script?
  16. How to set a variable to the output of a command in Bash?
  17. How to check if a variable is set in Bash?
  18. How do I iterate over a range of numbers defined by variables in Bash?
  19. How to output MySQL query results in CSV format?
  20. Looping through the content of a file in Bash
  21. Converting string to lower case in Bash
  22. Loop through an array of strings in Bash?
  23. Difference between sh and bash
  24. Check existence of input argument in a Bash shell script
  25. Make a Bash alias that takes a parameter?
  26. Setting environment variables in OS X?
  27. echo that outputs to stderr
  28. How to pipe stderr, and not stdout?
  29. YYYY-MM-DD format date in shell script
  30. How to escape single quotes within single quoted strings?
  31. How to count lines in a document?
  32. Pipe to/from the clipboard in Bash script
  33. How to reload .bash_profile from the command line?
  34. What is the preferred Bash shebang?
  35. Listing only directories using ls in bash: An examination


  36. Defining a variable with or without export
  37. Specify private SSH-key to use when executing shell command?
  38. How to iterate over arguments in a Bash script
  39. How can I exclude all “permission denied” messages from “find”?
  40. Passing parameters to a Bash function
  41. How to trim whitespace from a Bash variable?
  42. Redirect all output to file
  43. How to redirect output to a file and stdout
  44. What are the special dollar sign shell variables?
  45. How to declare and use boolean variables in shell script?
  46. Get current directory name (without full path) in a Bash script
  47. How to compare strings in Bash
  48. Count number of lines in a git repository
  49. How do I remove all .pyc files from a project?
  50. How to use double or single brackets, parentheses, curly braces