Skip to content

Instantly share code, notes, and snippets.

@iantanwx
Created June 8, 2016 15:09
Show Gist options
  • Save iantanwx/633027cbfa9106c2767e03bf0c8fa50b to your computer and use it in GitHub Desktop.
Save iantanwx/633027cbfa9106c2767e03bf0c8fa50b to your computer and use it in GitHub Desktop.
Shell
#!/bin/bash
# Get count
ps aux | grep [h]ttpd -c
# Rename files
find mig33/inner.folder -name *.txt -exec bash -c 'echo "$0" "${0%.txt}.data"' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment