Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dennyzhang committed Aug 3, 2017
1 parent 5321a9b commit 9144946
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion python/parameters_tool/strip_comments.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
#!/usr/bin/python
## File : strip_comments.py
## Created : <2017-08-03>
## Updated: Time-stamp: <2017-08-03 18:09:41>
## Updated: Time-stamp: <2017-08-03 18:12:22>
## Description :
## For a block of string, remove useless stuff
## 1. Remove leading whitespace
## 2. Remove tailing whitespace
## 3. Remove any lines start with #
##
## Sample:
## export server_list="# server ip
##
## ## APP
## 138.68.52.73:22
## ## loadbalancer
## #138.68.254.56:2711
## #138.68.254.215:2712"
## server_list=$(echo "$server_list" | python ./strip_comments.py)
## server_list: "138.68.52.73:22"
##-------------------------------------------------------------------
import os, sys

Expand Down

0 comments on commit 9144946

Please sign in to comment.