hi everyone,
i have a problem in unix script , i need to remove line that has blank , not blank line .
example: mahm,,jdggkhsd,ghskj,,fshjkl
can anyone help?
So in the event that the line matches the pattern ',[:space:]+,' you wish not to display it?
That sounds like a job for grep -v
i made grep to search about this lines , how can at the same time delete them?
try using grep -v to exclude them then pipe the output to a temp file, now replace your original file with the temp file and there you are, job done.
thanks