b) Save the file and exit from the vi editor. c) Open the vi editor without specifying a file name d) Write some text and and save it to a file “MyData2.txt” e) Repeat point ( c ) but after writing some text don’t save and just exit “vi” 2. Create a file using vi editor and enter the following text in it: a) Save the file without exiting vi. b) Display the line number from within vi c) Move first three lines of the file to the end of the file. d) Copy 5th line and paste above the first line. e) Search the word Unix in forward direction f) Search the word Unix in backward direction g) Replace all the occurrences of the word Unix with UnixOS
Comments
Leave a comment