Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Remove blank lines from file
Name: Nick Date: September 25, 2002 at 10:37:47 Pacific OS: Unix CPU/Ram: 256
Comment:
What is the command to remove blank lines from a file.
Summary: Hi All, I want to remove blank lines from a file. I want to compare two files without comments. I have tried this, cut -f1 -d'#' filename > noComments.txt This saves a file without comments but ...
Summary: hai, i want to remove duplicate lines from any part of the file...uniq command is used to remove only the adjacent duplicate lines...if we use sort command with -u option it removes duplicate lines ...
Summary: I'm trying to remove a specific line from a file based on a user defined input. I had found a similar situation where sed was used, but when I tried using it in my script, sed had trouble with the...