Sun Solaris (OS) Question: Download Questions PDF
Delete blank lines in a file?
Answer:
- cat sample.txt | grep -v ‘^$’ > new_sample.txt
Download Solaris Interview Questions And Answers
PDF
Previous Question | Next Question |
List the hidden files in current directory? | Search for a sample string in particular files? |