Pages

Monday, July 7, 2014

Sort lines on clipboard

$ xclip -o -selection clipboard | sort | xclip -i -selection clipboard

Does the same thing in environments where you have "xclip" instead of "pbpaste"/"pbpate" and "pbcopy".




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/TOekfL

No comments:

Post a Comment