awk Posted on 2020-02-06 | Visitors: users and their home paths in macOS123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121$ cat /tmp/user_homeBEGIN { print "Users and thier corresponding home" print " UserName \t HomePath" print "___________ \t __________" FS=":"}{ if( NR> 10) { print $1 " \t " $6 }}END { print "The end"}$ awk -f /tmp/user_home /etc/passwdUsers and thier corresponding home UserName HomePath___________ __________nobody /var/emptyroot /var/rootdaemon /var/root_uucp /var/spool/uucp_taskgated /var/empty_networkd /var/networkd_installassistant /var/empty_lp /var/spool/cups_postfix /var/spool/postfix_scsd /var/empty_ces /var/empty_appstore /var/db/appstore_mcxalr /var/empty_appleevents /var/empty_geod /var/db/geod_devdocs /var/empty_sandbox /var/empty_mdnsresponder /var/empty_ard /var/empty_www /Library/WebServer_eppc /var/empty_cvs /var/empty_svn /var/empty_mysql /var/empty_sshd /var/empty_qtss /var/empty_cyrus /var/imap_mailman /var/empty_appserver /var/empty_clamav /var/virusmails_amavisd /var/virusmails_jabber /var/empty_appowner /var/empty_windowserver /var/empty_spotlight /var/empty_tokend /var/empty_securityagent /var/db/securityagent_calendar /var/empty_teamsserver /var/teamsserver_update_sharing /var/empty_installer /var/empty_atsserver /var/empty_ftp /var/empty_unknown /var/empty_softwareupdate /var/db/softwareupdate_coreaudiod /var/empty_screensaver /var/empty_locationd /var/db/locationd_trustevaluationagent /var/empty_timezone /var/empty_lda /var/empty_cvmsroot /var/empty_usbmuxd /var/db/lockdown_dovecot /var/empty_dpaudio /var/empty_postgres /var/empty_krbtgt /var/empty_kadmin_admin /var/empty_kadmin_changepw /var/empty_devicemgr /var/empty_webauthserver /var/empty_netbios /var/empty_warmd /var/empty_dovenull /var/empty_netstatistics /var/empty_avbdeviced /var/empty_krb_krbtgt /var/empty_krb_kadmin /var/empty_krb_changepw /var/empty_krb_kerberos /var/empty_krb_anonymous /var/empty_assetcache /var/empty_coremediaiod /var/empty_launchservicesd /var/empty_iconservices /var/empty_distnote /var/empty_nsurlsessiond /var/db/nsurlsessiond_nsurlstoraged /var/db/nsurlstoraged_displaypolicyd /var/empty_astris /var/db/astris_krbfast /var/empty_gamecontrollerd /var/empty_mbsetupuser /var/setup_ondemand /var/db/ondemand_xserverdocs /var/empty_wwwproxy /var/empty_mobileasset /var/ma_findmydevice /var/db/findmydevice_datadetectors /var/db/datadetectors_captiveagent /var/empty_ctkd /var/empty_applepay /var/db/applepay_hidd /var/db/hidd_cmiodalassistants /var/db/cmiodalassistants_analyticsd /var/db/analyticsd_fpsd /var/db/fpsd_timed /var/db/timed_nearbyd /var/db/nearbyd_reportmemoryexception /var/db/reportmemoryexception_driverkit /var/emptyThe end