I am trying to compare two file and make changes where ever its different.
for example:
Contents of file1
IP=192.165.89.11
NM=255.255.0.0
GW=192.165.89.1
Contents of file2
IP=192.165.89.11
NM=255.255.255.255
GW=192.165.89.1
NOTE HERE THAT NM IS DIFFERENT
So i want the changes... (6 Replies)
How I can get the current make-file name in a make-file
So, if I run make with specified file:make -f target.mak
is it possible to have the 'target' inside of the that 'target.mak' from the file name? (2 Replies)
Hi
I have to create a windows batch file which will read an input file and remove "double quotes" from each line of the file.
For eg.If input file name is abcd.csv and contents is :
"asasd,123123,213213,asd"
"esfrf,dsfsdf,234324,sdfsdf"
Then the batch file should remove "" from the... (11 Replies)
Hi,
I would like to get the output of below command emailed to me in a windows2003 server.
"bpimagelist -hoursago 24 -U"
I will be using "blat" to email the output of this command.But not sure how the above command is called for in a batch file when executed.
Would appreciate if... (1 Reply)
Hello all,
I have a make question, and I was hoping somebody here might be able to point me in the right direction.
Here is my issue; I have a command-line tool that I use to run a conversion on an input XML file that results in an output binary file. However, this particular tool needs to... (1 Reply)
I have input data looks like this which is a part of a csv file
7,1265,76548,"0102:04"
8,1266,76545,"0112:04"
I need to make the output data should look like this and the output data will be part of text file:
7|1265000 |7654899 |A|
8|12660000 |76545999 |B|
The logic behind the... (6 Replies)
I am trying to use a batch file to automatically execute a bash script with no luck this far.
The batch script looks like this:
C:\Cygwin64\bin\bash test.sh
I have also tried this:
C:\Cygwin64\bin\bash "C:\Cygwin64\bin\test.sh"
Needless to say that the windows box has Cygwin... (7 Replies)
Let say I have a file with variables (Test1.txt)
In Test1.txt file, it consists of
Tom is a boy
Jim is a dog
In the other scripting file (RunTest1.sh), I have
#!/bin/ksh
filename = /directory/Test1.txt
cat $filename
for i in $filename
do
print $i
done
I managed to call... (1 Reply)
Discussion started by: TestKing
1 Replies
LEARN ABOUT HPUX
ipsec_config_batch
ipsec_config_batch(1M)ipsec_config_batch(1M)NAME
ipsec_config_batch - allow for processing of IPsec config operations in a single batch file
SYNOPSIS
batch_file_name profile_file]
DESCRIPTION
The command allows you to specify multiple and operations in a single batch file for processing. HP-UX IPSec processes the operations in a
batch file as a group. This mode is useful if you are adding or deleting configuration records that may affect other records.
If one operation is invalid, all operations in the batch file fail. The utility first verifies each operation in the batch file for syntax
errors and collisions (object names and priority values) with existing entries in the configuration database. If all operations in the
batch file are valid, the HP-UX IPSec infrastructure updates the configuration database with all operations at the same time. If HP-UX
IPSec is active and running, the HP-UX IPSec infrastructure also updates the runtime policy database.
Options and Operands
The batch operation recognizes the following options and operands:
batch_file_name
The name of the batch file containing and operations.
A batch file cannot contain operations that operate on the following objects:
For example, the
operation is illegal in a batch file.
In addition, a batch file cannot contain the following commands:
o does not allow recursive batch files) or commands.
o
o
Lines starting with a pound sign are interpreted as comments. Comment lines within an operation are not allowed.
Maximum length: 1023 characters.
Default: None.
The utility verifies the and operations, but does not add or delete entries in the configuration database. This option applies to
all operations in the batch file. Individual operations in the batch file cannot specify the option.
Specifies the name of the profile file containing default argument
values for this policy. The argument values are evaluated once, when the policy is added to the configuration database. Val-
ues used from the profile file become part of the configuration record for the policy.
This argument applies to all operations in the batch file. Individual operations in the batch file cannot specify the profile
argument.
Maximum length: 1023 characters.
Default:
EXAMPLES
The file contains the following entries:
AUTHOR
was developed by HP.
FILES
configuration database.
default profile file.
SEE ALSO ipsec_admin(1M), ipsec_config(1M), ipsec_config_add(1M), ipsec_config_delete(1M), ipsec_config_export(1M), ipsec_config_show(1M),
ipsec_migrate(1M), ipsec_policy(1M), ipsec_report(1M).
HP-UX IPSec Software Required ipsec_config_batch(1M)