Hi
I have the following columns in my input file which is sorted on ColA
colA colB colC colD colE
The data is such that for a single colA it can have multiple values of other columns, for eg the data can be
colA colB colC ... (1 Reply)
Hi guys--
Here is the interesting problem..
I have a folder, which has a couple of xml files like ( could be anywhere under the sub folders)
ABCD_NA.xml
XAYSGD_SC.xml
CBV_CA.xml
etc
I need to peek in each of these xml's and see that the pattern before the _ and after the _ are there... (0 Replies)
i need to search the starting line
example we have
-sh
shl-js-gd
i need to search only starting -sh not the other
i have used cmd
cat filename | grep '-'
but it will check for complete - in the file
please help me to search only starting -
thank u
revenna (0 Replies)
Hi all,
I'm a newbie. I'm thinking of making a shell script which will list a directory for *.csv files and merge all the files into a single file called data.csv.
However, i have no idea how to. What i do currently is to manually issue the following command to merge multiple CSV files into... (1 Reply)
i am trying to read an existing xml file and find an element in the xml file of following format
<home.dir value="/local/mnt/homes/docs"/>
I am trying to take a command line argument to my shell script whose value should replace /local/mnt/homes/docs in xml document.
Can you please point me how... (3 Replies)
Hi all,
I need to modify the below highlighted piece to perform the below task. Please let me know as i am not able to figure out a way to do this.
|| FILENAME=$(date +"$FILENAME")
if ; then
do_log FATAL "FILENAME needs to be set if SWITCH2=0"
exit 1
fi... (3 Replies)
#!/bin/sh
#Displaying every argument
while ;
do
echo Moving file $0;
shift;
done
exit 0;
For the above script i get the below o/p when 2 arguments are passed when invoking the script
dmlFileCopy.sh: line 3:
Can you let me know how to rectify the error? (2 Replies)
Hi I want a script which should basically do
1. If the size of the file is 0kb,
send email to some list od ppl
2. if the size of the file is other than 0kb
send email to someother list...
Pls help (2 Replies)
Hi,
I have trouble building the logic for the following, could anyone please help me out with this:
Im working on a wrapper script to check for input files (in a specific directory) and pass
the input files along with the options as parameters to the main script.The options vary depending ... (2 Replies)
I want to take out the Z1 value from the lscfg outpu and use the below command to get it
lscfg -vl hdisk0 | grep "Device Specific.(Z1)" | awk -F. '{print $NF}'
# lscfg -vpl hdisk0
.
.
Device Specific.(Z0)........0000063268181002
Device Specific.(Z1)........020064a
.
And it works,... (2 Replies)
Discussion started by: moorthikv
2 Replies
LEARN ABOUT SUNOS
create-acl
asadmin-create-acl(1AS) User Commands asadmin-create-acl(1AS)NAME
create-acl - adds a new access control list file for the named instance
SYNOPSIS
create-acl --user admin_user[--password admin_password][--host localhost] [--port 4848][--passwordfile filename][--secure|-s][--instance
instance_name] --aclfile filename acl_ID
Gets the access control lists associated with the named server instance.
OPTIONS --user administrative user associated for the instance.
--password administrative password corresponding to the administrative user.
--host host name of the machine hosting the administrative instance.
--port administrative port number associated with the administrative host.
--secure indicates communication with the administrative instance in secured mode.
--passwordfile file containing passwords appropriate for the command (e.g., administrative instance).
--instance name of the instance.
--aclfile name of the default acl file.
OPERANDS
acl_ID internal name for the ACL file listing. This ID is used in a virtual server element to define the ACL file used by
the virtual server.
Example 1: Using create-acl
asadmin> create-acl --user admin --password adminadmin --host fuyako --port 7070 --instance server1 --aclfile "/export/sample_acl_file.scl" sampleACL
Created ACL with id=sampleACL
Where: sampleACL is the name of the ACL created.
EXIT STATUS
0 command executed successfully
1 error in executing the command
INTERFACE EQUIVALENT
Access Control List page
asadmin-delete-acl(1AS), asadmin-list-acl(1AS)J2EE 1.4 SDK March 2004 asadmin-create-acl(1AS)