answersLogoWhite

0


Best Answer

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

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can use the sed command to remove unwanted lines of text?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What command will remove text from a documents?

cut


What command do you use to display text on two lines within a cell?

Merge and Center


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

cat input1 input2 ... > output


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


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 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.


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.


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


What Linux command displays the last part of a file without editing it?

The tail command can be used to output the last part of a text file. The default is to show the last 10 lines of a file and options are available to override this.


How do you remove text on powder toy?

To remove text, remove blocks.


What do you do if you have Unwanted text messages that are costing you?

you text back to the number saying quit or stop and then they legally have to stop.