Tags » Shell Script


The first day of class was great!  Class started with introductions from the team and instructors and then all of the students.  Everyone on the team seems to genuinely care about our success and that’s a great feeling.   221 more words

How to ...

Get number of lines of a text file and assign this value to a variable

num_lines=($(wc -l <file_name>))



71 more words
Shell Script

Shell Script to Add Date to Filenames

Below Shell Script will append Date to all FileNames in Directory with extension .TXT. Also it will create a folder with the Date and move the files to it. 32 more words


Some problems with array

Initialize an array

arr=(<element1> <element2> ...)
# example
arrNum=(1 2 3 4)

Access elements

# example
echo ${arrNum[1]}    # => 2

Print all elements… 28 more words

Shell Script

Glances - System Monitoring

Since I have only one (Ubuntu) server at home currently running as a PVR (personal video recorder) for recording TV shows from a OTA (over-the-air) antenna and Plex for viewing my content via the Roku (more on all that on a later post), I like to see what my server is doing as far as performance at a glance from time to time. 297 more words


[Ubuntu] PHP에서 이미지 사이즈 변경하기

PHP에서 HTML문서를 만들 때 attribute를 이용해서 연결할 이미지의 크기를 지정할 수 있지만 특정 메일 Client 프로그램에서 관련 html tag를 제대로 처리하지 못해서 HTML문서의 레이아웃이 틀어지는 경우를 자주 보게된다. 67 more words

Technical Tips

A crazy command line

Here is a piece of code from unix.stackexchange which counts the number of occurrences of words in a text file.

sed -e 's/[^[:alpha:]]/ /g' vader.txt | 202 more words