bash - Can somebody explain me this script line -


can explain me script line aix bash script:

#!/bin/bash touch /tmp/</.d2d 

i suppose lines (items) in file /.d2d read files touched under tmp dir:

when content of /.d2d file is

file1 file2 

then following executed:

touch /tmp/file1 touch /tmp/file2 

or one:

#!/bin/bash pm=text filelist=/tmp/$pm.</.filelist 

here filelist array line of /.filelist concatenated /tmp/text.line1offilelistfile , /tmp/text.line2offilelistfile , on ...

is understanding right? thanks

touch doesn't read stdin, input redirection has no other effect bash checking existence of file redirected. hence code equivalent to

if [[ -f /.dsd ]]   touch /tmp else   echo bash: /.dsd: no such file or directory 1>&2 fi 

so far theory. in practice, guess there typo in line.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -