Hi,
I have a text file with multiple lines, each having data in the below format
<DOB>,<ADDRESS>
I have to write a script which reads each line in the text file in loop, assign the values to these variables and do some further processing in it.
Using the following code prints the... (1 Reply)
Hi,
I have a text file with multiple lines, each having data in the below format <DOB>,<ADDRESS>
I have to write a script which reads each line in the text file in loop, assign the values to these variables and do some further processing in it.
Using the following code prints the values... (12 Replies)
Hello Guys,
I have a small loop problem as below.
I have 3 different values to be used while running the same script -
va1="some-value1"
va2="some-value2"
va3="some-value3"
Now I want to use these three variable values to be used for running the same command, like -
while... (1 Reply)
Hi, I was wondering if anyone could assist me for (what is probably) a very straightforward answer.
I have input files containing something like
File 1
Apples
Apples
Apples
Apples
File 2
Bananas
Bananas
Bananas
Bananas (4 Replies)
Hello All,
Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....?
I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping
through a string containing some of these "Illegal Characters". Now... (5 Replies)
Hi All,
I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
Hi,
I have a file which has the contents:
sh-4.2# pwd
/tmp
sh-4.2# cat servernfiles
server1 /var/tmp/file
server2 /var/tmp/file1
I want to manage each line one after the other. I have this basic script :
#!/bin/sh
HOST=`cat /tmp/servernfiles | awk '{print $1}'`
CMD=`cat... (6 Replies)
sqlplus -s $USER_ID@$SID/$PWD<<EOF>sql_1.txt
set feedback off
set heading off
select 114032 as c_1 from dual ;
EOF
for i in `cat sql_1.txt`
do
sh script_1.sh $i
Currently i am passing one column value to the single unix variable.
How can i pass the values from 2... (2 Replies)
I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables.
I need to read this file which is an input to my script
Config.txt
file name, first path, second... (7 Replies)
Hello everybody,
I am trying to assign multiple values from text into a single variable in bash.
Source TXT:
1 THIS IS THE ENTITY1 NAME1
2 THIS IS THE ENTITY2 NAME2
3 THIS IS THE ENTITY3 NAME3
while read id entity name
do
printf "$id" "$entity" "$name"
done <... (2 Replies)
Discussion started by: mrcrowley
2 Replies
LEARN ABOUT HPUX
mvdir
mvdir(1M)mvdir(1M)NAME
mvdir - move a directory
SYNOPSIS
dir newdir
DESCRIPTION
moves one directory tree into another existing directory (within the same file system), or renames a directory without moving it.
dir must be an existing directory.
If newdir does not exist but the directory that would contain it does, dir is moved and/or renamed to newdir. Otherwise, newdir must be an
existing directory not already containing an entry with the same name as the last pathname component of dir. In this case, dir is moved
and becomes a subdirectory of newdir. The last pathname component of dir is used as the name for the moved directory.
refuses to move dir if the path specified by newdir would be a descendent directory of the path specified by dir. Such cases are not
allowed because cyclic sub-trees would be created as in the case, for example, of which is prohibited.
does not allow directory to be moved.
Only users who have appropriate privileges can use
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
AUTHOR
was developed by OSF and HP.
SEE ALSO cp(1), mkdir(1), mv(1).
STANDARDS CONFORMANCE mvdir(1M)