<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic List user .profile content in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/list-user-profile-content/m-p/5554983#M640339</link>
    <description>&lt;P&gt;I use unix server , I know each user local directory have a .profile which have the user's setting , as our system have been migrated many times , they have different .profile , so I would like to know their setting .&lt;/P&gt;&lt;P&gt;can advise if I would like to list all these .proifle file content with the corresponding user id , just like as below , what can i do ? Thanks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;user&amp;nbsp;&amp;nbsp;.profile&lt;BR /&gt;====&amp;nbsp;&amp;nbsp;========&lt;BR /&gt;Peter&amp;nbsp;&amp;nbsp;PATH=$PATH:$HOME/bin&lt;BR /&gt;&amp;nbsp;&amp;nbsp;umask 000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;export ORI=/sbin/ori&lt;/P&gt;&lt;P&gt;Mary&amp;nbsp;&amp;nbsp;PATH=$PATH:$HOME:.:/sbin&lt;BR /&gt;&amp;nbsp;&amp;nbsp;export TH=OI&lt;/P&gt;&lt;P&gt;TOM&amp;nbsp;&amp;nbsp;PATH=$PATH:$HOME:.:/sbin&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ege=/sbin/ege/uni&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2012 01:01:02 GMT</pubDate>
    <dc:creator>Intothenewworld</dc:creator>
    <dc:date>2012-02-17T01:01:02Z</dc:date>
    <item>
      <title>List user .profile content</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-user-profile-content/m-p/5554983#M640339</link>
      <description>&lt;P&gt;I use unix server , I know each user local directory have a .profile which have the user's setting , as our system have been migrated many times , they have different .profile , so I would like to know their setting .&lt;/P&gt;&lt;P&gt;can advise if I would like to list all these .proifle file content with the corresponding user id , just like as below , what can i do ? Thanks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;user&amp;nbsp;&amp;nbsp;.profile&lt;BR /&gt;====&amp;nbsp;&amp;nbsp;========&lt;BR /&gt;Peter&amp;nbsp;&amp;nbsp;PATH=$PATH:$HOME/bin&lt;BR /&gt;&amp;nbsp;&amp;nbsp;umask 000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;export ORI=/sbin/ori&lt;/P&gt;&lt;P&gt;Mary&amp;nbsp;&amp;nbsp;PATH=$PATH:$HOME:.:/sbin&lt;BR /&gt;&amp;nbsp;&amp;nbsp;export TH=OI&lt;/P&gt;&lt;P&gt;TOM&amp;nbsp;&amp;nbsp;PATH=$PATH:$HOME:.:/sbin&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ege=/sbin/ege/uni&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2012 01:01:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-user-profile-content/m-p/5554983#M640339</guid>
      <dc:creator>Intothenewworld</dc:creator>
      <dc:date>2012-02-17T01:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: List user .profile content</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-user-profile-content/m-p/5555021#M640340</link>
      <description>&lt;P&gt;&amp;gt;I would like to list all these .profile file content with the corresponding user id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 100s of lines in my .profile.&amp;nbsp; Do you want all of those lines listed under each?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/usr/bin/ksh&lt;BR /&gt;# list .profile&lt;BR /&gt;echo "User&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .profile"&lt;BR /&gt;echo "======== ========"&lt;BR /&gt;awk -F: '{print $1, $6}' /etc/passwd | while read user home_dir; do&lt;BR /&gt;&amp;nbsp;&amp;nbsp; typeset -L8 userfmt=$user&lt;BR /&gt;&amp;nbsp;&amp;nbsp; echo "$userfmt $home_dir/.profile"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if [ ! -f $home_dir/.profile ]; then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "$userfmt not available"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break&lt;BR /&gt;&amp;nbsp;&amp;nbsp; fi&lt;BR /&gt;&amp;nbsp;&amp;nbsp; echo "$user"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; cat $home_dir/.profile&lt;BR /&gt;done&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2012 01:48:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-user-profile-content/m-p/5555021#M640340</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-02-17T01:48:36Z</dc:date>
    </item>
  </channel>
</rss>

