<?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 Re: Password hidden in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637801#M808510</link>
    <description>If you are just looking to strip the leading / off the string if its there this is one way among many to do it.&lt;BR /&gt;&lt;BR /&gt;I don't know what your scripting skill level is do don't be afraid to ask what something means or the though process behind it.&lt;BR /&gt;&lt;BR /&gt;#assign the string to a variable&lt;BR /&gt;DIR=$1&lt;BR /&gt;&lt;BR /&gt;if [ `echo $DIR | cut -c 1` - \/ ]&lt;BR /&gt;then&lt;BR /&gt; DIR=`echo $DIR | cut -c 2-`&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;echo input was $1 and it converted to $DIR&lt;BR /&gt;</description>
    <pubDate>Thu, 29 Sep 2005 13:34:37 GMT</pubDate>
    <dc:creator>Howard Marshall</dc:creator>
    <dc:date>2005-09-29T13:34:37Z</dc:date>
    <item>
      <title>Password hidden</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637795#M808504</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am starting to write a script about to create a user. It contains account password and path name. My questions are:&lt;BR /&gt;&lt;BR /&gt;1) If I ask the user to set the password, the output will display on the screen? How to avoid to display? My srcipt is: &lt;BR /&gt;&lt;BR /&gt;printf "Set the password: "&lt;BR /&gt;read temp  &lt;BR /&gt;&lt;BR /&gt;2) Also when the user enter the path namee likes /home/temp/, but I want to cut character "/" for the output, so that the output likes home/temp? Do anyone have an idea to do it?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 29 Sep 2005 01:37:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637795#M808504</guid>
      <dc:creator>Achilles_2</dc:creator>
      <dc:date>2005-09-29T01:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Password hidden</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637796#M808505</link>
      <description>trap 'stty echo; exit' 0 1 2 3 15 &lt;BR /&gt;printf "Set the password: "&lt;BR /&gt;stty -echo&lt;BR /&gt;read temp&lt;BR /&gt;stty echo&lt;BR /&gt;&lt;BR /&gt;read home&lt;BR /&gt;home1=${home#/} --&amp;gt; will give home/temp/</description>
      <pubDate>Thu, 29 Sep 2005 01:50:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637796#M808505</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-09-29T01:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Password hidden</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637797#M808506</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;refer the following script:&lt;BR /&gt;&lt;BR /&gt;#!/usr/sbin/sh&lt;BR /&gt;&lt;BR /&gt;echo "Enter the password"&lt;BR /&gt;stty -echo&lt;BR /&gt;read str&lt;BR /&gt;stty echo&lt;BR /&gt;echo "Got the password: $str"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Sep 2005 01:51:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637797#M808506</guid>
      <dc:creator>VEL_1</dc:creator>
      <dc:date>2005-09-29T01:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Password hidden</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637798#M808507</link>
      <description>Hi RAC&lt;BR /&gt;&lt;BR /&gt;thanks your help first, now if the user type /home/temp/, and I want the output likes --&amp;gt; home/temp&lt;BR /&gt;&lt;BR /&gt;how do i do?&lt;BR /&gt;&lt;BR /&gt;Thx again</description>
      <pubDate>Thu, 29 Sep 2005 03:24:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637798#M808507</guid>
      <dc:creator>Achilles_2</dc:creator>
      <dc:date>2005-09-29T03:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Password hidden</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637799#M808508</link>
      <description>echo ${home#/}&lt;BR /&gt;&lt;BR /&gt;Will give you what you want.</description>
      <pubDate>Thu, 29 Sep 2005 07:09:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637799#M808508</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-09-29T07:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Password hidden</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637800#M808509</link>
      <description># echo ${PATH#/}&lt;BR /&gt;usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Thu, 29 Sep 2005 07:12:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637800#M808509</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-09-29T07:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Password hidden</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637801#M808510</link>
      <description>If you are just looking to strip the leading / off the string if its there this is one way among many to do it.&lt;BR /&gt;&lt;BR /&gt;I don't know what your scripting skill level is do don't be afraid to ask what something means or the though process behind it.&lt;BR /&gt;&lt;BR /&gt;#assign the string to a variable&lt;BR /&gt;DIR=$1&lt;BR /&gt;&lt;BR /&gt;if [ `echo $DIR | cut -c 1` - \/ ]&lt;BR /&gt;then&lt;BR /&gt; DIR=`echo $DIR | cut -c 2-`&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;echo input was $1 and it converted to $DIR&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Sep 2005 13:34:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637801#M808510</guid>
      <dc:creator>Howard Marshall</dc:creator>
      <dc:date>2005-09-29T13:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Password hidden</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637802#M808511</link>
      <description>read Home_Directory&lt;BR /&gt;print ${Home_Directory#/}&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Art</description>
      <pubDate>Fri, 30 Sep 2005 03:50:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-hidden/m-p/3637802#M808511</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2005-09-30T03:50:43Z</dc:date>
    </item>
  </channel>
</rss>

