The file that you are referring here is is in the local directory i.e. /home/vinay/script/input.txt
You need to pass the HDFS uri of the file, or the HDFS file system path.
First go to localhost:50070 in your browser and find the path of the file. If the file is not uploaded to HDFS, use this command to upload the file:
hdfs dfs -put <local-filesystem-file-path> <path-on-hdfs>
Then you can use the below command to print the content of the file present in HDFS:
hdfs dfs -cat <path-on-hdfs>