creating file and adding the data while executing script


[prabhucloudxlab@cxln4 ~]$ cat hello.sh
#! bin/bash
cat>hello.txt


[prabhucloudxlab@cxln4 ~]$ sh hello.sh
hello bash script
hello linux learners


[prabhucloudxlab@cxln4 ~]$ cat hello.txt
hello bash script
hello linux learners