10-20-2016
Yes to both.
Why don't you assign the entire destination file name to a variable, then?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I want to input unix variable to sqlplus.The following is working fine
sqlplus username/password @dummy.sql param1 param2 << EOF
create user $1 identified by $2;
EOF
But I dont want any file name to be passed,I just want to pass the parameter. Is there any way to that??
Thanks... (3 Replies)
Discussion started by: sakthi.abdullah
3 Replies
2. Shell Programming and Scripting
Hi,
In normal shell scripting, how do you pass the output of a command to a variable, instead of a file and be able to use it later?
The code is:
#!/bin/bash
who | cut -d" " -f1 > onlineusers
Instead of passing the output of the above command to the file called 'onlineusers'... (1 Reply)
Discussion started by: Furqan_79
1 Replies
3. Shell Programming and Scripting
Hi There!
I'm writing this LSF script to make it easier to send jobs to a cluster when varying certain parameters. At one point I'd like to do something like:
set NPROC = 10
and later on call BSUB using something like:
#BSUB -n $NPROC
unfortunately for me, this throws an error:
... (4 Replies)
Discussion started by: lrayo
4 Replies
4. Shell Programming and Scripting
Hi all,
I have a script in file1 which gets input from the user say variable "TYPE". This variable is present in the other file2. I want to replace the variable in the file2 with the value given by the user and print the file. How can I achieve this task?
file1
code
echo "Give... (3 Replies)
Discussion started by: Ananthdoss
3 Replies
5. Shell Programming and Scripting
Hi,
How can I modify the FILETYPE command ?
I want to provide the file extension, like txt, root .?
Thanks,
#!/bin/bash
FROM=$1
TO=$2
FILETYPE=$3
... (4 Replies)
Discussion started by: nrjrasaxena
4 Replies
6. Programming
All,
I have a log file containing lots of data now i want to extract all text between block below(names) without the title or end pattern but only names,
++++START++++
SCOTT TIGER
HENRY PAUL
JARED OTIENO
OMOLLO JA NIGERIA
++++END++++
the names i want to return and store in a variable in... (1 Reply)
Discussion started by: Scott2000
1 Replies
7. Shell Programming and Scripting
Hi Guys,
i have a file where data is in the below format::
data1 data2
data3 data4
data4 data6
my script written as::
#!/bin/ksh
cd $1
at now <<END
sh $2
END
Here i want to pass the values stored in the above file one by one till the end of line.
Here if i am doing it as:: (2 Replies)
Discussion started by: Atp3530
2 Replies
8. Shell Programming and Scripting
Hi Friend,
I have one file in which some number are mentioned and number of lines are vary every time
And i need to pass that number to my sql command from script.
Suppose i have file acc.txt
45456546456
45464564565
67854353454
67657612132
Number of records are vary every time.... (20 Replies)
Discussion started by: pallvi_mahajan
20 Replies
9. Shell Programming and Scripting
cat a1
scott
robert
tom
test
script :
#!/usr/bin/ksh
for NAME in `cat a1`
do
VALUE=`sqlplus -silent "nobody/bobody01@testq" <<END
set pagesize 0 feedback off verify off heading off echo off
select username from dba_users where username=upper('$NAME');
END`
if ; then
echo... (3 Replies)
Discussion started by: jhonnyrip
3 Replies
10. Shell Programming and Scripting
Hi all,
I have a file looks like
AAAA 111
BBBB 222
CCCC 333
need to pass variable value like var1=AAAA and var2=111
to another command for three times with next values.
stuck over here
cat file | while read line
do
export var1=`awk '{print $1}'`
echo $var1
export var2=`cat file... (3 Replies)
Discussion started by: rakeshtomar82
3 Replies
LEARN ABOUT MOJAVE
mpsrnndescriptor
MPSRNNDescriptor(3) MetalPerformanceShaders.framework MPSRNNDescriptor(3)
NAME
MPSRNNDescriptor
SYNOPSIS
#import <MPSRNNLayer.h>
Inherits NSObject.
Inherited by MPSGRUDescriptor, MPSLSTMDescriptor, and MPSRNNSingleGateDescriptor.
Properties
NSUInteger inputFeatureChannels
NSUInteger outputFeatureChannels
BOOL useLayerInputUnitTransformMode
BOOL useFloat32Weights
MPSRNNSequenceDirection layerSequenceDirection
Detailed Description
This depends on Metal.framework The MPSRNNDescriptor specifies a Recursive neural network block/layer descriptor.
Property Documentation
- inputFeatureChannels [read], [write], [nonatomic], [assign]
The number of feature channels per pixel in the input image or number of rows in the input matrix.
- layerSequenceDirection [read], [write], [nonatomic], [assign]
When the layer specified with this descriptor is used to process a sequence of inputs by calling
See also:
encodeBidirectionalSequenceToCommandBuffer then this parameter defines in which direction the sequence is processed. The operation of
the layer is: (yt, ht, ct) = f(xt,ht-1,ct-1) for MPSRNNSequenceDirectionForward and (yt, ht, ct) = f(xt,ht+1,ct+1) for
MPSRNNSequenceDirectionBackward, where xt is the output of the previous layer that encodes in the same direction as this layer, (or the
input image or matrix if this is the first layer in stack with this direction).
MPSRNNImageInferenceLayer and
MPSRNNMatrixInferenceLayer.
- outputFeatureChannels [read], [write], [nonatomic], [assign]
The number of feature channels per pixel in the destination image or number of rows in the destination matrix.
- useFloat32Weights [read], [write], [nonatomic], [assign]
If YES, then MPSRNNMatrixInferenceLayer uses 32-bit floating point numbers internally for weights when computing matrix transformations. If
NO, then 16-bit, half precision floating point numbers are used. Currently MPSRNNImageInferenceLayer ignores this property and the
convolution operations always convert FP32 weights into FP16 for better performance. Defaults to NO.
- useLayerInputUnitTransformMode [read], [write], [nonatomic], [assign]
if YES then use identity transformation for all weights (W, Wr, Wi, Wf, Wo, Wc) affecting input x_j in this layer, even if said weights are
specified as nil. For example 'W_ij * x_j' is replaced by 'x_j' in formulae defined in MPSRNNSingleGateDescriptor. Defaults to NO.
Author
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSRNNDescriptor(3)