<?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: symbolic links in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216675#M91833</link>
    <description>cat ./makelinks&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;INPUTFILE=$1&lt;BR /&gt;while read MODE X X X X X X X SRC X DST&lt;BR /&gt;do&lt;BR /&gt;    if [ "$(echo ${MODE}|cut -c1)" = "l" ];then&lt;BR /&gt;        echo ln -s ${DST} ${SRC}&lt;BR /&gt;    fi&lt;BR /&gt;done &amp;lt; ${INPUTFILE}&lt;BR /&gt;&lt;BR /&gt;...run as:&lt;BR /&gt;&lt;BR /&gt;# ./makelinks file&lt;BR /&gt;&lt;BR /&gt;...where the "file" argument is the name of the file to process --- exactly like your attachment in this post.&lt;BR /&gt;&lt;BR /&gt;Change the line:&lt;BR /&gt;&lt;BR /&gt;echo ln -s ${DST} ${SRC}&lt;BR /&gt;&lt;BR /&gt;to:&lt;BR /&gt;&lt;BR /&gt;ln -s ${DST} ${SRC}&lt;BR /&gt;&lt;BR /&gt;dear torsten I don't shell script much more if u don't mind please  can u explain what are the parameters mentioned in u steps&lt;BR /&gt;&lt;BR /&gt;thanks in advance for u and my dear dennis&lt;BR /&gt;I need normal script&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 15 Jun 2008 16:55:07 GMT</pubDate>
    <dc:creator>Sajjad Sahir</dc:creator>
    <dc:date>2008-06-15T16:55:07Z</dc:date>
    <item>
      <title>symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216672#M91830</link>
      <description>dear All&lt;BR /&gt;I need a shell script to create symbolic link&lt;BR /&gt;ln -s. &lt;BR /&gt;i am giving out put of the shell script running on  anohter server same shell script i need to execute in my server.so I need to write a script to get the same output like my attachment&lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;sajjad</description>
      <pubDate>Sat, 14 Jun 2008 17:52:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216672#M91830</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2008-06-14T17:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216673#M91831</link>
      <description>&lt;!--!*#--&gt;If you want to create every symlink that's in your previous output you can do:&lt;BR /&gt;awk '&lt;BR /&gt;$10 == "-&amp;gt;" {&lt;BR /&gt;   print "ln -s", $11, $9&lt;BR /&gt;} file-list &amp;gt; create_links&lt;BR /&gt;&lt;BR /&gt;Then take a look at the output.  If you like it, then:&lt;BR /&gt;&lt;BR /&gt;cd directory&lt;BR /&gt;sh $OLDPWD/create_links</description>
      <pubDate>Sun, 15 Jun 2008 02:59:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216673#M91831</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-15T02:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216674#M91832</link>
      <description>&lt;!--!*#--&gt;Hi Sajjad:&lt;BR /&gt;&lt;BR /&gt;If you would like a pure shell script (no 'awk' nor Perl) then :&lt;BR /&gt;&lt;BR /&gt;# cat ./makelinks&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;INPUTFILE=$1&lt;BR /&gt;while read MODE X X X X X X X SRC X DST&lt;BR /&gt;do&lt;BR /&gt;    if [ "$(echo ${MODE}|cut -c1)" = "l" ];then&lt;BR /&gt;        echo ln -s ${DST} ${SRC}&lt;BR /&gt;    fi&lt;BR /&gt;done &amp;lt; ${INPUTFILE}&lt;BR /&gt;&lt;BR /&gt;...run as:&lt;BR /&gt;&lt;BR /&gt;# ./makelinks file&lt;BR /&gt;&lt;BR /&gt;...where the "file" argument is the name of the file to process --- exactly like your attachment in this post.&lt;BR /&gt;&lt;BR /&gt;Change the line:&lt;BR /&gt;&lt;BR /&gt;echo ln -s ${DST} ${SRC}&lt;BR /&gt;&lt;BR /&gt;to:&lt;BR /&gt;&lt;BR /&gt;ln -s ${DST} ${SRC}&lt;BR /&gt;&lt;BR /&gt;...when you are satisfied with the proposed actions.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 15 Jun 2008 12:44:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216674#M91832</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-15T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216675#M91833</link>
      <description>cat ./makelinks&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;INPUTFILE=$1&lt;BR /&gt;while read MODE X X X X X X X SRC X DST&lt;BR /&gt;do&lt;BR /&gt;    if [ "$(echo ${MODE}|cut -c1)" = "l" ];then&lt;BR /&gt;        echo ln -s ${DST} ${SRC}&lt;BR /&gt;    fi&lt;BR /&gt;done &amp;lt; ${INPUTFILE}&lt;BR /&gt;&lt;BR /&gt;...run as:&lt;BR /&gt;&lt;BR /&gt;# ./makelinks file&lt;BR /&gt;&lt;BR /&gt;...where the "file" argument is the name of the file to process --- exactly like your attachment in this post.&lt;BR /&gt;&lt;BR /&gt;Change the line:&lt;BR /&gt;&lt;BR /&gt;echo ln -s ${DST} ${SRC}&lt;BR /&gt;&lt;BR /&gt;to:&lt;BR /&gt;&lt;BR /&gt;ln -s ${DST} ${SRC}&lt;BR /&gt;&lt;BR /&gt;dear torsten I don't shell script much more if u don't mind please  can u explain what are the parameters mentioned in u steps&lt;BR /&gt;&lt;BR /&gt;thanks in advance for u and my dear dennis&lt;BR /&gt;I need normal script&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 15 Jun 2008 16:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216675#M91833</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2008-06-15T16:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216676#M91834</link>
      <description>Hi (again) Sajjad:&lt;BR /&gt;&lt;BR /&gt;I wrote [ and I am JRF, not Torsten :-)) ]:&lt;BR /&gt;&lt;BR /&gt;cat ./makelinks&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;INPUTFILE=$1&lt;BR /&gt;while read MODE X X X X X X X SRC X DST&lt;BR /&gt;do&lt;BR /&gt;    if [ "$(echo ${MODE}|cut -c1)" = "l" ];then&lt;BR /&gt;        echo ln -s ${DST} ${SRC}&lt;BR /&gt;    fi&lt;BR /&gt;done &amp;lt; ${INPUTFILE}&lt;BR /&gt;&lt;BR /&gt;...By line:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;should always be set to specify the name of the interpreter to run --- here the HP-UX Posix shell.&lt;BR /&gt;&lt;BR /&gt;INPUTFILE=$1&lt;BR /&gt;&lt;BR /&gt;assign to the variable named INPUTFILE the first argument passed to the script.  Arguments are denoted as $1, $2, etc. with $0 being the name of the process.&lt;BR /&gt;&lt;BR /&gt;while read MODE X X X X X X X SRC X DST&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;This begins a while loop which runs the block bounded by the 'done'.  The built-in shell 'read' collects the whitespace-delimited fields on each line read.  The contents of the line so read are split into fields and assigned to variables of our choice.  Since I only care about the first field (called "MODE") and the 9th and 11th which represent the "source" (SRC) element of the command I want to run; and the "destination" (DST) argument of the command that I want to run; I let the 'read' assign the fields I *don't* want to the bit-bucket in a variable I called "X".&lt;BR /&gt;&lt;BR /&gt;if [ "$(echo ${MODE}|cut -c1)" = "l" ];then&lt;BR /&gt;&lt;BR /&gt;This takes the MODE field we extracted and snips ('cut's) the first character from it.  We then compare that character to the string "l" to match symbolic links from your original 'ls' listing.  For matches (which represent lines from the 'ls' that show links) we do the next statement:&lt;BR /&gt;&lt;BR /&gt;echo ln -s ${DST} ${SRC}&lt;BR /&gt;&lt;BR /&gt;To end the scope of our condition (the 'if' we say:&lt;BR /&gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;which is "if" spelled backwards.&lt;BR /&gt;&lt;BR /&gt;The statement:&lt;BR /&gt;&lt;BR /&gt;done &amp;lt; ${INPUTFILE}&lt;BR /&gt;&lt;BR /&gt;...terminates the 'while do' we have and says to read as input ('&amp;lt;') the file (represented by the variable we assigned from the *first* script argument ($1) at the beginning of the script.  This is an efficient mechanism.  To often folks will write:&lt;BR /&gt;&lt;BR /&gt;cat ${INPUTFILE} | while read...&lt;BR /&gt;&lt;BR /&gt;...which is a *waste* of a process.  You don't need 'cat' to open and read a file only to take the output of 'cat' and *read* it all over again!!!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 15 Jun 2008 17:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216676#M91834</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-15T17:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216677#M91835</link>
      <description>Hi (again) Sajjad:&lt;BR /&gt;&lt;BR /&gt;I should add a few shell facts about variables, too:&lt;BR /&gt;&lt;BR /&gt;Variables spring into being when you assign to them:&lt;BR /&gt;&lt;BR /&gt;VAR=sajjad&lt;BR /&gt;&lt;BR /&gt;or (a more advanced way):&lt;BR /&gt;&lt;BR /&gt;typeset VAR=sajjad&lt;BR /&gt;&lt;BR /&gt;Now, to dereference (get the value of) a variable you must add the "$" sigil:&lt;BR /&gt;&lt;BR /&gt;# echo $VAR&lt;BR /&gt;sajjad&lt;BR /&gt;&lt;BR /&gt;But, a much safer thing to do is to enclose the variable name in curly braces, like:&lt;BR /&gt;&lt;BR /&gt;# echo ${VAR}&lt;BR /&gt;&lt;BR /&gt;This keeps the shell from confusing something like:&lt;BR /&gt;&lt;BR /&gt;# VAR=_sajjad&lt;BR /&gt;# echo $VAR&lt;BR /&gt;_sajjad&lt;BR /&gt;# echo $VAR_here&lt;BR /&gt;sh: VAR_here: Parameter not set.&lt;BR /&gt;# echo ${VAR}_here&lt;BR /&gt;_sajjad_here&lt;BR /&gt;&lt;BR /&gt;Now, it is just as legal for me to have done:&lt;BR /&gt;&lt;BR /&gt;# INPUTFILE=${1}&lt;BR /&gt;&lt;BR /&gt;...instead of :&lt;BR /&gt;&lt;BR /&gt;# INPUTFILE=$1&lt;BR /&gt;&lt;BR /&gt;...although this is pretty unambiguous in the context I used it.&lt;BR /&gt;&lt;BR /&gt;*However*, if you needed to reference a positional parameter that is more than one-digit in length (g.g. ${10)) then you *must* enclose it in curly braces, so it is a good habit anyway!&lt;BR /&gt;&lt;BR /&gt;As for the shell's 'read' statement.  The auto-splitting of the record read ( --- a line ending with an ASCII newline character ) into its whitespace delimited fields, is controlled by the shell's 'IFS' [Inter Field Seperator] parameter.  By default the IFS is a space, a tab and/or a newline character.  This doesn't mean that the shell's 'read' is limited to spliting into only whitespace-delimited files, though.&lt;BR /&gt;&lt;BR /&gt;OLDIFS=${IFS}&lt;BR /&gt;IFS=":"&lt;BR /&gt;while read NAME X&lt;BR /&gt;do&lt;BR /&gt;    echo ${NAME}&lt;BR /&gt;done &amp;lt; /etc/passwd&lt;BR /&gt;IFS=${OLDIFS}&lt;BR /&gt;&lt;BR /&gt;...the above alters the 'IFS' to a colon in order to read and auto-split into fields, the '/etc/passwd' file.  In order to insure that you reset the IFS to what you originally had, we store it off in OLDIFS and restore it at the end of the loop where we used the modified variable.&lt;BR /&gt;&lt;BR /&gt;The Posix shell is found as '/usr/bin/sh' and as '/sbin/sh' for the *root* account.  Never alter root's default shell as defined in the '/etc/passwd' shell field of the root account!  The '/sbin'sh' uses statically linked libraries that allow its use in single-user mode without '/usr/ mounted.  The '/usr/bin/sh' version uses dynamic libraries and therefore has a smaller memory footprint given that the libraries it uses can be shared by multiple processes.&lt;BR /&gt;&lt;BR /&gt;The HP-UX Posix shell is based on the Korn shell ('ksh').  Have a look at the manpages to learn more:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B3921-60631/sh-posix.1.html" target="_blank"&gt;http://www.docs.hp.com/en/B3921-60631/sh-posix.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...and at a very good, quick-start of the shell here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-90046/index.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-90046/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 15 Jun 2008 18:20:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216677#M91835</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-15T18:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216678#M91836</link>
      <description>&amp;gt;if you don't mind please can you explain&lt;BR /&gt;&lt;BR /&gt;The awk script is even simpler to explain.&lt;BR /&gt;For every line in your input file "file-list", it does the following:&lt;BR /&gt;The pattern "$10 == "-&amp;gt;"" checks when field 10 is "-&amp;gt;", a symlink.&lt;BR /&gt;The action prints the "ln -s" with field 11 and field 9.</description>
      <pubDate>Mon, 16 Jun 2008 03:04:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216678#M91836</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-16T03:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216679#M91837</link>
      <description>dear &lt;BR /&gt;I am  not asking variable assingning&lt;BR /&gt;I didn't get u  peoples script properly&lt;BR /&gt;ok&lt;BR /&gt;any how i will study thoroughly then i will ask again&lt;BR /&gt;&lt;BR /&gt;thanks alot&lt;BR /&gt;&lt;BR /&gt;sajjad</description>
      <pubDate>Mon, 16 Jun 2008 18:06:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216679#M91837</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2008-06-16T18:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216680#M91838</link>
      <description>see dears&lt;BR /&gt;&lt;BR /&gt;tdap1.dbf and rtdap1&lt;BR /&gt;tdap2.dbf and rtdap2&lt;BR /&gt;means i would like to symbolically link&lt;BR /&gt;&lt;BR /&gt;these files with logival raw devices lie rtdap1 etc..&lt;BR /&gt;i have a lot fo dbf .log file extension i have to symbolically link these files with rtdap1 rtdap2 in this order&lt;BR /&gt;ln -s tdap1.dbf rtab1&lt;BR /&gt;ln -s tdap2.dbf rtab2 &lt;BR /&gt;ln -s ttab3.log  rttab3&lt;BR /&gt;etc...&lt;BR /&gt;how to do this one this is my question&lt;BR /&gt;&lt;BR /&gt;sajjad</description>
      <pubDate>Mon, 16 Jun 2008 18:14:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216680#M91838</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2008-06-16T18:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216681#M91839</link>
      <description>&lt;!--!*#--&gt;Hi (again) Sajjad:&lt;BR /&gt;&lt;BR /&gt;As you have seen, reading an input file to extract two fields representing the two files to symbolically link is trivial.&lt;BR /&gt;&lt;BR /&gt;I do not understand what hasn't been provided.  Please give an example of the *exact* input you want to use to create your links.&lt;BR /&gt;&lt;BR /&gt;Based on your last post it almost looks like you want to create a name like "rtdap&lt;N&gt;" from a name like "tdap&lt;N&gt;.dbf" so that:&lt;BR /&gt;&lt;BR /&gt;rtdap1 -&amp;gt; tdap1.dbf&lt;BR /&gt;rtdap2 -&amp;gt; tdap2.dbf&lt;BR /&gt;&lt;BR /&gt;If this is the case, a small Perl script could do everything from finding files that match the pattern "tdap&lt;N&gt;.dbf" to creating the symbolic links to them in the form "rtdap&lt;N&gt;":&lt;BR /&gt;&lt;BR /&gt;# cat .makelinks&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;my ( $srcfile, $dstfile );&lt;BR /&gt;@ARGV = glob("tdap*");&lt;BR /&gt;for $srcfile (@ARGV) {&lt;BR /&gt;    ( $dstfile = $srcfile ) =~ s/tdap(\d+).dbf/rtdap$1/;&lt;BR /&gt;    symlink( $srcfile, $dstfile );&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# cd /path&lt;BR /&gt;# ls -l &lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jun 16 16:45 tdap1.dbf&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jun 16 16:45 tdap2.dbf&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jun 16 16:45 tdap3.dbf&lt;BR /&gt;# ./makelinks&lt;BR /&gt;# ls -l&lt;BR /&gt;lrwxr-xr-x   1 root       sys              9 Jun 16 16:45 rtdap1 -&amp;gt; tdap1.dbf&lt;BR /&gt;lrwxr-xr-x   1 root       sys              9 Jun 16 16:45 rtdap2 -&amp;gt; tdap2.dbf&lt;BR /&gt;lrwxr-xr-x   1 root       sys              9 Jun 16 16:45 rtdap3 -&amp;gt; tdap3.dbf&lt;BR /&gt;drwxr-xr-x   2 root       sys             96 Jun  5 13:46 subdir&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jun 16 16:45 tdap1.dbf&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jun 16 16:45 tdap2.dbf&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jun 16 16:45 tdap3.dbf&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;</description>
      <pubDate>Mon, 16 Jun 2008 19:50:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216681#M91839</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-16T19:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216682#M91840</link>
      <description>&lt;BR /&gt;one is file one is logical raw device&lt;BR /&gt;these has to link symbolically&lt;BR /&gt;&lt;BR /&gt;in my last posting i put an example&lt;BR /&gt;eg:&lt;BR /&gt;&lt;BR /&gt;trans_temp1.dbf(file)  ----- rtrans_temp1(logical raw device)&lt;BR /&gt;trans_redo1_3.log ----- rtrans_redo1_3&lt;BR /&gt;trans_control1.ctl ---rtrans_control1&lt;BR /&gt;&lt;BR /&gt;see three examples &lt;BR /&gt;&lt;BR /&gt;first file is with an extension dbf&lt;BR /&gt;second one is with an extension log&lt;BR /&gt;third one is with an extension .ctl&lt;BR /&gt;same like these i have all ohter files has to symbolically link logical raw device&lt;BR /&gt;&lt;BR /&gt;if i am doing manually it will consume too much time for doing each one&lt;BR /&gt;&lt;BR /&gt;thanks once again&lt;BR /&gt;&lt;BR /&gt;sajjad</description>
      <pubDate>Tue, 17 Jun 2008 17:05:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216682#M91840</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2008-06-17T17:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216683#M91841</link>
      <description>#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;my ( $srcfile, $dstfile );&lt;BR /&gt;@ARGV = glob("tdap*");&lt;BR /&gt;for $srcfile (@ARGV) {&lt;BR /&gt;    ( $dstfile = $srcfile ) =~ s/tdap(\d+).dbf/rtdap$1/;&lt;BR /&gt;    symlink( $srcfile, $dstfile );&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I need explanation of the above script&lt;BR /&gt;also what do u mean by dstfile srcfile et...&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jun 2008 17:07:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216683#M91841</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2008-06-17T17:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216684#M91842</link>
      <description>#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;my ( $srcfile, $dstfile );&lt;BR /&gt;@ARGV = glob("tdap*");&lt;BR /&gt;for $srcfile (@ARGV) {&lt;BR /&gt;    ( $dstfile = $srcfile ) =~ s/tdap(\d+).dbf/rtdap$1/;&lt;BR /&gt;    symlink( $srcfile, $dstfile );&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I need explanation of the above script&lt;BR /&gt;also what do u mean by dstfile srcfile et...&lt;BR /&gt;it will run like normal script?&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jun 2008 17:08:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216684#M91842</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2008-06-17T17:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216685#M91843</link>
      <description>Hi (again) Sajjad:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I need explanation of the above script&lt;BR /&gt;&lt;BR /&gt;I explained the script's action in the post where I presented it.  It finds file names that matches the pattern "tdap&lt;N&gt;.dbf" to creating the symbolic links to them in the form "rtdap&lt;N&gt;" in the same working directory.  I used the notation '&lt;N&gt;' to denote any digit.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; also what do u mean by dstfile srcfile...&lt;BR /&gt;&lt;BR /&gt;These were my choices for variable names for the arguments to pass to the 'symlink()' function.  My intention was to relate the sense of this function and its arguments to the shell code and variable names I used earlier.  In Perl, 'symlink()' is equivalent to 'ln -s' in a shell.&lt;BR /&gt;&lt;BR /&gt;it will run like normal script?&lt;BR /&gt;&lt;BR /&gt;Yes, in a shell you can run another shell script, a Perl script, an 'awk' or 'sed' script, a C binary, etc. in the same way --- you specify the name of the thing you want to run and optionally any arguments to it.  In the case of this Perl script there are no arguments to pass.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; in my last posting i put an example&lt;BR /&gt;&lt;BR /&gt;I'm sorry, but you have never made clear what *exactly* your input consists of.  Both Dennis and I provided suggestions for creating links based on an 'ls' listing that you provided in your opening post.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; if i am doing manually it will consume too much time for doing each one&lt;BR /&gt;&lt;BR /&gt;If you are not comfortable using some of the ideas suggested thusfar, perhaps you should consider creating a simple file with 'vi' that looks like:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;ln -s file1 newfile1&lt;BR /&gt;ln -s file2 newfile2&lt;BR /&gt;ln -s file3 newfile3&lt;BR /&gt;&lt;BR /&gt;Otherwise, PLEASE look again at the ORIGINAL suggestions by Dennis and myself based on your original attachment.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;</description>
      <pubDate>Tue, 17 Jun 2008 17:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symbolic-links/m-p/4216685#M91843</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-17T17:30:18Z</dc:date>
    </item>
  </channel>
</rss>

