Unix commands are at the heart of many OS.
sort | uniq | cut | rev | cutr
are great examples of how you can do many things within (ba|z)sh and other shells.
| rev | cut | rev
If you only have the standard cut tool available in a Unix system, try this handy trick:
ls -l | rev | cut -f 1 -d ' ' | rev
It does a full listing of the current directory, then reverses each line, cuts the first reverted word after the first space and then reverses it again, making it have the correct order again, but having cut the last word of each line.
Of course you could achieve the same with cutr
without breaking your head: https://www.npmjs.com/package/cutr . ;-)
home
about
++learn
tags
14.04 Android Announcement Apache2 Asus BASH Bitcoin Blogging Bounty Build CMS CSS Collections Commands Competition Compute Computer Conference Configuration Crypto Currency Deployment Development Digital Distributed Education Email Factory GIS Generics Google Gradle HTML5 HTTP Hey Howto Ideas Implement Installation Java JavaScript Jekyll Kernel Language Laptop Learn++ Linux Mobile Money Open Open Source P2P PHP Plugins PostGIS Power Programming Project RT2800USB Review Science Server Settings Source Student Support Tagging This Thoughts Tool Tricks Ubuntu Universal Video VirtualHost Web Windows Wireless Wlan bing bitcoin computer contains cp crypto currency database duckduckgo engine google jQuery middleware mysql optimization philosophy postgresql science search seo tips tricks value