Created
October 15, 2012 09:16
-
-
Save myun2/3891609 to your computer and use it in GitHub Desktop.
Bash!!!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# This sample is carrying out the loop of the result of the `ls` command. | |
for param in $(ls); do | |
echo "$param" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ps -eo args | sed 1d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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