Editing Content of file
Case 1: To collect data from a file that contains continuous lines of text.
# Example:
# Suppose we have data like this
──(kali㉿kali)-[/tmp/temp_workspace]
└─$ cat note.txt
Dave's password list:
Window
rickc137
dave
superdave
megadave
umbrella
Note to myself:
New password policy starting in January 2022. Passwords need 3 numbers, a capital letter and a special character
Case 2: If we want to delete last few lines from file.
Case 3: Deleting particular line number and displaying its content.
Last updated