1. sed
$ echo "one two three" | sed 's/ /\n/g'2. awk
one
two
three
$ echo "one two three" | awk '$1=$1' RS= OFS="\n"3. tr
one
two
three
$ echo "one two three" | tr -s ' ' '\n'3 ways to do it, have fun
one
two
three
$ echo "one two three" | sed 's/ /\n/g'2. awk
one
two
three
$ echo "one two three" | awk '$1=$1' RS= OFS="\n"3. tr
one
two
three
$ echo "one two three" | tr -s ' ' '\n'3 ways to do it, have fun
one
two
three
$ echo 'Mary had a little lamb' | sed -e 's/little/big/' -e 's/lamb/cow/'where -e is for expression flag, 's/little/big/' is the first expression and 's/lamb/cow/' is the second expression
Mary had a big cow
# yum install python
2. Once done, browse to any directory that you want to be your document root directory, in this example I'll use /home/myuser# cd /home/myuser
3. Run the below command to start the simple http server, where 8000 is the port number the server will use# python -m SimpleHTTPServer 80004. Now open a browser, and type http://192.168.1.2:8000 to access the server, where 192.168.1.2 is your machine's ip address
Serving HTTP on 0.0.0.0 port 8000 ...