06-23-2012
thanks
Thank you very much that seems to work. One problem however is that even when I select N when given the choice to delete or not it still deletes the file. any ideas as to why?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
Ok os heres my situation. I have created a database style program that stores a persons info (name,address,phone number etc.) in a file ("database"). after i read in all the values above, i assign them to a line variable:
line="$name^$address^$phonenum" >> phonebuk
as you can see... (1 Reply)
Discussion started by: djt0506
1 Replies
2. UNIX for Dummies Questions & Answers
How can I set the value for IFS variable (2 Replies)
Discussion started by: mahabunta
2 Replies
3. Shell Programming and Scripting
hi, :)
I set IFS=":"
But when i try to echo $IFS,i am not getting any thing on the screen escept a blank line.
any help pls.
cheers
RRK (11 Replies)
Discussion started by: ravi raj kumar
11 Replies
4. Shell Programming and Scripting
What I thought was going to be very simple has turned out to be really lame, and so I come to you for help.
mountedon=`df -k /synctest | awk 'NR == 2 {print $1}'`
if
then
# mount /pupcl06
mountedon=`df -k /synctest | awk 'NR == 2 {print $1}'`
if
then
mailx -s... (2 Replies)
Discussion started by: ProFiction
2 Replies
5. UNIX for Dummies Questions & Answers
Hi!
I am working in korn shell. I want to reset the dimiliter for the set command to "|" but instead of a command prompt return I am getting something as below
After issuing the command I am getting this....as if the shell is expecting something else. Can anybody suggest what's the problem.
... (2 Replies)
Discussion started by: udiptya
2 Replies
6. Shell Programming and Scripting
Hi can someone tell me whats wrong with the following:
#!/bin/sh
file1=$1
file2=$2
if
then
if
then
echo "File 1 is" $file1
echo "File 2 is" $file2
cp $file1 $file2
echo "Copy complete!"
else
echo "ERROR: File does not exist!"
... (8 Replies)
Discussion started by: philmetz
8 Replies
7. Shell Programming and Scripting
hi i am a learner
can some explain "export IFS=$(echo "\n\t\a")"
i am not able to understand the functionality
please help
thanks
Satya (1 Reply)
Discussion started by: Satyak
1 Replies
8. Shell Programming and Scripting
Hi,
while ; do
echo "Please enter "
read enter
yyyy=${enter:0:4}
mm=${enter:5:2}
dd=${enter:8:2}
result=`validateDate $yyyy $mm $dd`
When does the loop keeping repeating till?? till 1 is equal to 1?
what does this mean "${enter:0:4}" .The 0 and 4 part??
... (3 Replies)
Discussion started by: sid22
3 Replies
9. UNIX for Dummies Questions & Answers
how to use nested ifs in unix (1 Reply)
Discussion started by: pratima.kumari
1 Replies
10. Shell Programming and Scripting
Hello masters of scripting,
I've been working to develop some basic monitoring scripts. I have solved one problem, but want to know how to solve the other.
I have a script that runs locally to create an output file with the Linux system kernel paramters, preceeded by the system name:
... (2 Replies)
Discussion started by: LinuxRacr
2 Replies
LEARN ABOUT HPUX
delete_clearinghouse
delete clearinghouse(1m) delete clearinghouse(1m)
NAME
delete clearinghouse - Deletes the specified clearinghouse from the local server system
SYNOPSIS
cdscp delete clearinghouse clearinghouse-name
ARGUMENT
The full name of the clearinghouse.
DESCRIPTION
The delete clearinghouse command deletes a clearinghouse from the local server system. CDS does not permit you to delete a cleared clear-
inghouse. Before you can delete a cleared clearinghouse, you must recreate it using the create clearinghouse command.
The delete clearinghouse command automatically deletes all read-only replicas from a clearinghouse. CDS does not permit you to delete a
clearinghouse that contains a master replica. See the DCE Directory Service module of the DCE Administration Guide for more information
about handling master replicas when deleting a clearinghouse.
Permissions Required
You must have write and delete permission to the clearinghouse and administer permission to all directories that store replicas in the
clearinghouse. The server principal needs delete permission to the associated clearinghouse object entry and administer permission to all
directories that store replicas in the clearinghouse.
NOTES
It is recommended that you delete all replicas except the root before issuing this command.
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE.
EXAMPLE
The following command deletes a clearinghouse named /.:/sales/Orion_CH from the local server system: cdscp> delete clearinghouse
/.:/sales/Orion_CH
RELATED INFORMATION
Commands: clear clearinghouse(1m), create clearinghouse(1m), list clearinghouse(1m), set cdscp preferred clearinghouse(1m), show clearing-
house(1m), show cdscp preferred clearinghouse(1m)
Books: DCE Administration Guide
delete clearinghouse(1m)