1)To combile the content of file1 and file 2 into file3
->$cat file1 file2>file3
2)Display the content of file f1 without using 'cat' command.
->$tail +1 f1
3)To count duplicate lines form the file f1
->$uniq -d f1|wc -l
or
->$uniq -D f1|uniq -c
4)To remove duplicate lines from a file
->$sort f1|uniq
or
->$sort -u f1
5)To display characters form 5th position to 10th position, including both from file f1
->$cut -c5-10 f1
0 comments:
Post a Comment