I want to modify the command
somecommand >> file1.txt
in a way that only the first line of the command output be saved to the file.
How is it possible, what script is needed?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community