March 2014
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Categories

March 2014
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Solaris Commands

1. List the files in current directory sorted by size ?

  ls -l | grep ^- | sort -nr

2. List the hidden files in current directory ? ls -a1 | grep “^\.”

3. Delete blank lines in a file ?

cat sample.txt | grep -v ‘^$’ > new_sample.txt

4. Search for a sample […]