All for Joomla All for Webmasters

How to set alphabetically sort and listing the file items | Linux Command


A Linux command which set alphabetically sort and listing the file.

If you have a large file and you want to set alphabetically sort all the lines of a file and give line numbers, here is simple command in linux.

sort filename.txt | sed '=' | sed -n 'N;s/\n/ /;W newsortfile.txt'

 


Like it? Share with your friends!

0
, 0 points

How to set alphabetically sort and listing the file items | Linux Command

log in

Become a part of our community!

reset password

Back to
log in
Choose A Format
Personality quiz
Trivia quiz
Poll
Story
List
Meme
Video
Audio
Image