Skip to content

Instantly share code, notes, and snippets.

@myun2
Created October 15, 2012 09:16
Show Gist options
  • Save myun2/3891609 to your computer and use it in GitHub Desktop.
Save myun2/3891609 to your computer and use it in GitHub Desktop.
Bash!!!
#!/bin/sh
#
# This sample is carrying out the loop of the result of the `ls` command.
for param in $(ls); do
echo "$param"
done
#!/bin/sh
ps -eo args | sed 1d
#!/bin/sh
for param in "$*"; do
echo "$param"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment