04-07-2009
Thanks!
Thanks for the reply! i got the solution...
@echo off & setLocal EnableDelayedExpansion
cd D:\apps\Infa\param\
if exist "%1".prm del /F "%1".prm
for /f "tokens=* delims= " %%a in ('dir/b/a-d/o/n D:\apps\Infa\param\"%1_"*.prm') do (
ren %%a "%1".prm
goto :eof
)
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
is it possible to see what is in a dds tape?
like in dos, we can write dir a: to see the contents of it?
thanks
PS : actually, i came from a DOS background. so most of the time, i will try to relate unix to dos. of course, dos never came close to unix. but unix is like many instances of dos... (3 Replies)
Discussion started by: yls177
3 Replies
2. Shell Programming and Scripting
I have bunch of files in win xp machine with
123456 E15 filename
112333.E20 filename
123412.E11 filename
you get the pic, I mount that xp machine's share into linux and try to do a mass rename to something simpler
E15 filename
E20 filename and so on..
I wrote below thinking that it... (8 Replies)
Discussion started by: hankooknara
8 Replies
3. Shell Programming and Scripting
Hi
I have a dos batch file in window server where I call a cmd command for creating some db.
this cmd commad is located in e:\data\abcd\xyz.cmd.
Now I call this batch file from unix ssh.sh but my access point is D in window server here I want to change the dos prompt to e:\data\abcd.
in... (3 Replies)
Discussion started by: Jamil Qadir
3 Replies
4. Shell Programming and Scripting
Hey guys i'm creating a dos style rename script, so if a user types say q14.* as the 1st param and b14.* as the 2nd and will rename all q14 files to b14 but keep the extensions, so i've developed nearly the full script "i think", if i use echo(echo "if $1 had been renamed it would now be... (3 Replies)
Discussion started by: fblade1987
3 Replies
5. Shell Programming and Scripting
Started a thread in beginners but I thought someone from this forum may have an idea as well. Thanks!
EDITED BY REBORG (3 Replies)
Discussion started by: robotsbite
3 Replies
6. Windows & DOS: Issues & Discussions
Hi,
(Apologies, I'm sure I'm not the first person to raise this question but so far in my searches haven't found a good answer).
I would like to output a listing per line of filename (including full path) and 'last updated' timestamp. e.g:
Z:\dir1\file1.txt 01/02/2010 10:43... (5 Replies)
Discussion started by: GM_AIX
5 Replies
7. Shell Programming and Scripting
Hello there! I'm having a lot of trouble writing a script.
The script is supposed to:
1) Find all files with the name "Object.mtl" within each folder in the directory: /Users/username/Desktop/convert/Objects
2) Search and replace the string ".bmp" with ".tif" (without the quotations)
3)... (1 Reply)
Discussion started by: Blue Solo
1 Replies
8. Shell Programming and Scripting
Hi,
This is my DOS Batch file.
@echo off
echo "Program Name :" %0
rem echo "Next param :" %1
echo "Next param :" "Username/Password"
echo "User Id :" %2
echo "User Name :" %3
echo "Request ID ... (4 Replies)
Discussion started by: Rami Reddy
4 Replies
9. Shell Programming and Scripting
Hi All,
I am trying to check if the file is in dos format using simple grep command but the problem is lines inside the file with have special characters in between and in some lines end of the line will have the '^M' character.
I tried the below command in simple line(without special... (7 Replies)
Discussion started by: Optimus81
7 Replies
10. Shell Programming and Scripting
I have files in the ABC_YYYYMMDD.zip format under a directory. Each zip file contains A text file in the ABC_YYYYMMDD.txt format.
I am trying to create a script that will Rename the zip files and their underlying text file replacing the datepart in them with .
For eg: in the case of... (1 Reply)
Discussion started by: bash987
1 Replies
LEARN ABOUT DEBIAN
ipsec_ikeping
IPSEC_IKEPING(8) [FIXME: manual] IPSEC_IKEPING(8)
NAME
ipsec_ikeping - send/receive ISAKMP/IKE echo requests/replies
SYNOPSIS
ipsec ikeping [--listen] [--verbose] [--wait time] [--exchangenum num] [--ikeport localport] [--ikeaddress address] [--inet] [--inet6]
destaddr [/dstport...]
DESCRIPTION
Ikeping sends and receives ISAKMP/IKE echo request and echo reply packets. These packets are intended for diagnostics purposes, in a manner
similar to ping(8) does for ICMP echo request/reply packets.
At the time of this writing, the ISAKMP echo request/reply exchange is still an internet-draft (draft-richardson-ipsec-ikeping-00), and is
therefore completely non-standard. The Openswan IKE daemon pluto does implement this draft, so ikeping can be used to test connectivity to
an openswan ipsec server.
Ikeping will bind to the local address given by --ikeaddress and the port number given by --ikeport defaulting to the wildcard address and
the ISAKMP port 500. An ISAKMP exchange of type 244 (a private use number) is sent to each of the address/ports listed on the command line.
The exchange number may be overridden by the --exchangenum option.
Ikeping then listens for replies, printing them as they are received. Replies are of exchange type 245 or the specified exchange number
plus 1. Ikeping will keep listening until it either receives as many echo responses as it sent, or until the timeout period (5 seconds)
has been reached. Receipt of a packet will reset the timer. The --wait option can be used to specify a different timeout period.
If the --listen option is given, then ikeping will not send any packets. Instead, it will listen for them and reply to each request
received.
If the --natt option is given, then ikeping will set the socket to permit UDP encapsulated ESP packets. This is only useful in listen mode.
FILES
no external files
SEE ALSO
ping(8), ipsec_pluto(8)
HISTORY
Written for the Linux FreeS/WAN project <http://www.freeswan.org> by Michael Richardson.
[FIXME: source] 10/06/2010 IPSEC_IKEPING(8)