scripting 366

  1. How do I tell if a regular file does not exist in Bash?
  2. How do I split a string on a delimiter in Bash?
  3. How do I parse command line arguments in Bash?
  4. How to mkdir only if a dir does not already exist?
  5. How do I prompt for Yes/No/Cancel input in a Linux shell script?
  6. YYYY-MM-DD format date in shell script
  7. How to count lines in a document?
  8. How to declare and use boolean variables in shell script?
  9. Propagate all arguments in a bash shell script
  10. How to run a PowerShell script?
  11. Stopping scripters from slamming your website hundreds of times a second
  12. In a Bash script, how can I exit the entire script if a certain condition occurs?
  13. How do I know the script file name in a Bash script?
  14. How can I remove the first line of a text file using bash/sed script?
  15. How do I compare two string variables in an 'if' statement in Bash?
  16. How can you find and replace text in a file using the Windows command-line environment?
  17. How does “cat << EOF” work in bash?
  18. How do I get cURL to not show the progress bar?
  19. How do I get the path and name of the file that is currently executing?
  20. Why do you need to put #!/bin/bash at the beginning of a script file?
  21. Find and Replace Inside a Text File from a Bash Command
  22. How to set current working directory to the directory of the script?
  23. Scripting Language vs Programming Language
  24. Get just the filename from a path in a Bash script
  25. SQL Server - stop or break execution of a SQL script
  26. Is there replacement for cat on Windows
  27. How to get a password from a shell script without echoing
  28. Add a prefix string to beginning of each line
  29. How to urlencode data for curl command?
  30. Remove the last line from a file in Bash
  31. With Bash Scripting, how can I suppress all output from a command?

  32. How to get current username in Windows Powershell?
  33. How to simulate the environment cron executes a script with?
  34. How to delete items from a dictionary while iterating over it?
  35. How do I create a nice-looking DMG for Mac OS X using command-line tools?
  36. What is the $? (dollar question mark) variable in shell scripting?
  37. How to resolve symbolic links in a shell script
  38. Best way to simulate “group by” from bash?
  39. How do I write a bash script to restart a process if it dies?
  40. How to run a shell script in OS X by double-clicking?
  41. How to execute a bash command stored as a string with quotes and asterisk
  42. Copy folder recursively, excluding some folders
  43. Bash script to execute command on all files in a directory
  44. How do I use Ruby for shell scripting?
  45. How can I ssh directly to a particular directory?
  46. How to redirect the output of a PowerShell to a file during its execution
  47. How do you execute an arbitrary native command from a string?
  48. How to make a Python script run like a service or daemon in Linux
  49. Random number from a range in a Bash Script
  50. How to tell if a string is not defined in a bash shell script?