answersLogoWhite

0

Yes, the 'sed' command is designed for that purpose (among other reasons, of course).

As long as you know what the unwanted lines consist of you can create a search pattern to match it. Then, have sed delete the line by not copying it to the output stream.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What command will remove text from a documents?

cut


What command on a computer will remove selected text from a document?

To remove selected text from a document, you can use the "Delete" key on your keyboard. Alternatively, you can cut the text by pressing "Ctrl + X" (or "Command + X" on a Mac), which removes the selected text and places it on the clipboard for potential pasting later.


What command is used to connect lines of different text files to one line?

cat input1 input2 ... > output


What is WC command?

The wc command, short for "word count," is a utility in Unix and Unix-like operating systems used to count lines, words, and characters in text files. When executed, it can provide statistics such as the number of lines, words, and bytes in a file or standard input. The command can be customized with options like -l for lines, -w for words, and -c for bytes. It's commonly used in scripting and data processing tasks to analyze text data.


Where can one find information about UNIX grep command?

The grep command is used to search for text, or lines containing certain words or strings of words. Stackoverflow, techonthenet, linux are a few sites that tell more about this command


What can we replace the selected text with new text by?

To replace the selected text with new text, you can simply highlight the text you want to change and then type the new text directly. Alternatively, you can use the "Cut" command to remove the selected text and then use the "Paste" command to insert the new text in its place. In many applications, you can also right-click on the selected text and choose "Replace" or "Edit" options to facilitate the replacement process.


Which command will display the last lines of the text file called file1in Linux?

Tail command is used to display the last lines of the file.Syntax:tail -n 3 file1-n 3 = no. of linesfile1 = filename


How do you navigate and edit within the command window in gstarcad?

You can edit text in the command window to correct or repeat commands.Use the standard keys:UP.DOWNHOME.ENDBACKSPACEYou can repeat any command used in the current session by cycling through the commands in the command window with UP ARROW and DOWN ARROW and pressing ENTER. By default, pressing CTRL+C copies highlighted text to the Clipboard. Pressing CTRL+V pastes text from the Clipboard to the text window or the command window.If you right-click in the command window or text window, a shortcut menu is displayed from which you can access the six most recently used commands, copy selected text or the entire command history, paste text, and access the Options dialog box.For most commands, a command line with two or three lines of previous prompts, called the command history, is sufficient for viewing and editing. To see more than one line of command history, you can scroll through the history or resize the command window by dragging its border. For commands with text output, such as LIST, you might need a larger command window, or you can press F2 to use the text window.


What is th ecommand used to remove text form a document and place it on the clipboard?

The command used to remove text from a document and place it on the clipboard is typically "Cut," which can be executed using the keyboard shortcut Ctrl + X (Cmd + X on Mac). This action removes the selected text and stores it in the clipboard, allowing you to paste it elsewhere using the "Paste" command (Ctrl + V or Cmd + V).


What commod is used in excel to display text in multiple lines?

You could be referring to the Wrap Text command or to using Alt + Enter to enable text to be wrapped in a cell at the point that key combination is used.You could be referring to the Wrap Text command or to using Alt + Enter to enable text to be wrapped in a cell at the point that key combination is used.You could be referring to the Wrap Text command or to using Alt + Enter to enable text to be wrapped in a cell at the point that key combination is used.You could be referring to the Wrap Text command or to using Alt + Enter to enable text to be wrapped in a cell at the point that key combination is used.You could be referring to the Wrap Text command or to using Alt + Enter to enable text to be wrapped in a cell at the point that key combination is used.You could be referring to the Wrap Text command or to using Alt + Enter to enable text to be wrapped in a cell at the point that key combination is used.You could be referring to the Wrap Text command or to using Alt + Enter to enable text to be wrapped in a cell at the point that key combination is used.You could be referring to the Wrap Text command or to using Alt + Enter to enable text to be wrapped in a cell at the point that key combination is used.You could be referring to the Wrap Text command or to using Alt + Enter to enable text to be wrapped in a cell at the point that key combination is used.You could be referring to the Wrap Text command or to using Alt + Enter to enable text to be wrapped in a cell at the point that key combination is used.You could be referring to the Wrap Text command or to using Alt + Enter to enable text to be wrapped in a cell at the point that key combination is used.


What is it called in Microsoft Excel command to display text on two lines within a cell?

You need to tick the 'wrap text' box which can be found in the format/cells dialogue box. Text will only wrap if the text is wider than the column width. Al


How do you watermark a flv video?

By using Bitwar Watermark Expert. It can batch remove unwanted objects from videos or add text & image watermark to copyright protect your contents.