(How) to delete all empty lines from a file: cat someFile | grep -v '^$' (How) to get all numbers that have no sign in front of them (all positive numbers, from a file where on each line there is one number only): cat someFile | grep ^[0-9] (How) to…
awk '{print $1}' someFile; The command awk '{print $1}' someFile is a command that is used to extract specific data from a file in Unix/Linux systems. It uses the awk scripting language, which is a powerful tool for text processing and data manipulation. The syntax of the command is as…
tail -n +2 someFile *Notes: You MUST include the + sign or else the last 2 lines will be printed instead. To remove N lines from the start of the file tail -n +$M someFile *NOTES: M = N + 1 You MUST include the + sign in-front of the number…