Commit 5a99b6ce authored by CrioUser's avatar CrioUser
Browse files

Keep needed files only

parent 1e381fdc
FILE=/proc/meminfo
MEM_TOTAL=$(grep "MemTotal" /proc/meminfo | awk '{print $2}')
MEM_FREE=$(grep "MemFree" /proc/meminfo | awk '{print $2}')
echo "$MEM_FREE KB memory free out of $MEM_TOTAL KB"
\ No newline at end of file
PYTHON_FILE_PATH=/home/crio-user/workspace/me_linux2/resources/user_preference.py
TOTAL_LINES=$(wc -l $PYTHON_FILE_PATH | awk '{print $1}')
COMMENT_LINES=$(grep "#" $PYTHON_FILE_PATH | wc -l)
echo "Total number of lines are: $TOTAL_LINES"
echo "Number of comment lines are: $COMMENT_LINES"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment