Skip to content

Instantly share code, notes, and snippets.

@telatin
Created March 2, 2018 10:52
Show Gist options
  • Save telatin/7cdb0e482d2fc4f900ff91482f46e2ef to your computer and use it in GitHub Desktop.
Save telatin/7cdb0e482d2fc4f900ff91482f46e2ef to your computer and use it in GitHub Desktop.
Simple demo script counting files and directories in current position
#!/bin/bash
# A simple script counting files in "current" directory.
echo -n "You are working in: "
pwd
echo -n "Files in your current directory: "
ls | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment