11-19-2006
1.- You could've asked in the original thread.
2.- "Esc mode"? Guess what you wanted is a command you can run inside vi? Maybe if you would've asked for the vi command? The command I gave you works just fine on the command line. I'll let you figure out the vi form of the command.
3.- The g is unnecessary. It makes the comand execute on all instances in a line. The last 3 digits of the line appear only once.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I upload incorrect filename into unix account. I tried a lot of way to delete this filename, but not work...any idea?
-rwxrwxrwx+ 1 aaaaa userrr 698368 Jul 25 12:14 ab123 v2.12.09 with revision marks.doc
Many Thanks!! (32 Replies)
Discussion started by: happyv
32 Replies
2. UNIX for Dummies Questions & Answers
Hai
Please let me know the command in unix(command mode ) from a file that deletes the whole column (not 1st and last column )& replace with numbers starting from 1.
Regards
suneetha. (8 Replies)
Discussion started by: gaddesuneetha
8 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am tryting to delete 3 lakch files using below command.
rm 1000318*
it is showing a message "sh: /usr/bin/rm: The parameter list is too long."
please let me know how can i do this.
Thanks
Senthil (7 Replies)
Discussion started by: skcontact
7 Replies
4. Shell Programming and Scripting
Hi Can anyone please provide me soln for below:
I want to remove the word "system" from all the lines containing "#" and remove two lines below it.
file1:
!
system alpha#close
logs
login
!
Result Required:
!
alpha#
! (1 Reply)
Discussion started by: Aejaz
1 Replies
5. UNIX for Dummies Questions & Answers
What command I should provide in Vi so block deletionis possible ? (1 Reply)
Discussion started by: videsh77
1 Replies
6. Shell Programming and Scripting
Hi
I have submitted an at command to run next week .
Now i want to remove the submitted at command .
I dont want the job to run .
Can anyone help me , with the command to remove the submitted at command .
thanks in advance ... (3 Replies)
Discussion started by: rxg
3 Replies
7. Shell Programming and Scripting
hi all
i am facing some problem regarding deletion of a line from a text file
the file consists of the lines of type which consists of more than 6 occurances of : character in it
the line should be deleted completely and the line next to it must be shifted up
Thanks in advance (6 Replies)
Discussion started by: vaibhavkorde
6 Replies
8. Shell Programming and Scripting
Hi,
I have a input string 0000106 I need to extract the number after leading zeros ie the number 106. I used the command tr -d "0" and got the output as 16. Could any one of you please help me in using the tr command to get the output 106. Thanks in advance.... (2 Replies)
Discussion started by: dean_amrita
2 Replies
9. UNIX for Dummies Questions & Answers
I installed membersgear into my website and decided it was not right for me. I issued rm -r on directory membersgear and it deleted everything except the subdirectory templates_c. I have found several directories in this directory which are named like %%114. Ownership on these directories... (5 Replies)
Discussion started by: pdinardo
5 Replies
10. Shell Programming and Scripting
Hi All,
Let me know how can i find and delete files from one unix server to another unix server which are 'N' days older.
Please note that I need to delete files on remote unix server.So, probably i will need to use sftp, but question is how can i identify files and folders which are 'N'... (2 Replies)
Discussion started by: sachinkl
2 Replies
LEARN ABOUT X11R4
asadmin-delete-instance
asadmin-delete-instance(1AS) User Commands asadmin-delete-instance(1AS)
NAME
delete-instance - deletes the instance that is not running.
SYNOPSIS
delete-instance [--user admin_user] [--password admin_password] [--host localhost] [--port 4848] [--local=false] [--domain domain_name]
[--passwordfile filename] [--secure|-s]instance_name
Use the delete-instance command to delete the instance that you specify. The delete-instance command can be run both locally and remotely.
To delete the instance locally, not requiring the administration server to be up and running, specify the --local option. To delete the
instance remotely, the administration server must be running on the hostname and port number specified. The user authenticates using the
password identified for the administration server. Additionally, the instance must already exist within the domain served by the adminis-
tration server. Use this command with discretion since it is destructive and there is no undo.
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.
--domain name of the domain.
--local determines if the command should delegate the request to administrative instance or run locally.
--passwordfile file containing passwords appropriate for the command (e.g., administrative instance).
--secure if true, SSL/TLS to communicate with the administrative instance.
OPERANDS
instance_name name of the instance to be deleted.
Example 1: Using delete-instance in local mode
asadmin> delete-instance --domain domain1 server1
Deleted Instance server1 successfully
Where: the server1 instance for the domain1 domain is deleted on the local machine.
Example 2: Using delete-instance in remote mode
asadmin> delete-instance --user admin --passwordfile passwords.txt --host localhost --port 4848 server1
Deleted Instance server1 successfully
Where: the server1 instance for the domain associated with the specified user, passwords in the password file, host, and port number is
deleted on the remote machine.
EXIT STATUS
0 command executed successfully
1 error in executing the command
INTERFACE EQUIVALENT
Server Instance page
asadmin-create-instance(1AS), asadmin-start-instance(1AS), asadmin-stop-instance(1AS), asadmin-restart-instance(1AS)
J2EE 1.4 SDK March 2004 asadmin-delete-instance(1AS)