Hello Ravinder Singh,
Thank you for your response. But yeah in a normal scenario. it works. But actually i am trying to do this in a script, so my script has the below lines
after sourcing it connecting it using sqlplus by taking the conn strings from test.prop file.
so in the test.prop, ")" extra character should be removed and then source this test.prop file and conn using sqlplus.
Last edited by Don Cragun; 06-16-2015 at 04:26 PM..
Reason: Add CODE AND ICODE tags.
I'm appending header and trailer record for a binary file using
echo "$header" > filename
cat oldfilename >> filename
echo "$trailer" >> filename
The echo is introducing newline character after header and trailer.Please let me know is there any possibility to get rid of newline character. (2 Replies)
HI i am having a file this
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1234567890
1234567890
1234567890
1234567890
I want to make this file as
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1456789023
1456789023
1456789023
1456789023
just take the 2nd and 3rd position and put it... (5 Replies)
How can I remove the last character from each line of a file?
This must be done without "funny" characters, as I want to transfer the code to/from Windows.
Any ideas? (17 Replies)
hi
Someone can give me some clue or script in writing the below requirement
I am having 5 or 10 files of unix files which contain ^M charactes.
First we have to find ^M character and concat the line where it has broken and then we have to remove the ^M character from the uxix... (11 Replies)
I need help removing the last character of every line if it is a certain character. For example I need to get rid of a % character if it is in the last position.
Input:
aaa%
%bbb
ccc
d%dd%
Output should be:
aaa
%bbb
ccc
d%dd
I tried this but it gets rid of all of the % characters.... (5 Replies)
Hi,
I want to read the file from nth line (where n is an integer) to until I encounter @ char.
Can any one please help me how to do this?
Thanks. (3 Replies)
Hi,
I have a file like this (about 8 columns in total, this being the 2nd column)
gi_49482297_ref_YP_039521.1_
gi_49482297_ref_YP_039521.1_
gi_49482315_ref_YP_039539.1_
gi_49482315_ref_YP_039539.1_I want to remove the _ at the end of the line.
And at later stages I would want to replace the... (5 Replies)
Hi All,
I am trying to write a shell script where it should insert character 'I' in 180th position of each line(except first and last line) of the file. Below is the script
for file in /home/test/bharat/*.RET
do
# Process file
echo "File Name=" $file
#l_fileName="${file##*/}"
... (19 Replies)
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
LEARN ABOUT DEBIAN
dtc_kill_vps_disk
dtc_kill_vps_disk(8) System Manager's Manual dtc_kill_vps_disk(8)NAME
dtc_kill_vps_disk - destroy LVM disks for freeing space
SYNOPSIS
dtc_kill_vps_disk VPS_NUMBER [ lvm|loopback ]
DESCRIPTION
dtc_kill_vps_disk This shell script is a part of the dtc-xen package that is to be used by the dtc panel to manage a Xen VPS server.
This script is used to delete a partitions that was used by a VPS. It will delete the normal partition that was used as a root disk, and
the swap partition.
dtc_kill_vps_disk is to be used by the dtc-xen SOAP server, but can also be used as a standalone userland tool.
OPTIONS
VPS_NUMBER has to be a number between 01 and 19. Let's say the number is 16, and that dtc-xen is configured to use the volume group called
lvm1, then this script will create /dev/lvm1/xen16 and /dev/lvm1/xen16swap.
IMAGE_TYPE This parameter can have 2 values: either lvm or loopback. If ommited, then lvm is used. If lvm is used, then this script will
create a partition using lvmcreate, otherwise it will create an image file. Both will later be used for the VPS.
EXAMPLE
dtc_setup_vps_disk 04 lvm
This will delete the 2 LVM partitions that were used by the VPS named xen04, the first one being the root partition, and the second one
being the swap partition.
VERSION
This documentation describes dtc_kill_vps_disk See http://www.gplhost.com/software-dtc-xen.html for updates.
SEE ALSO dtc_reinstall_os(8), dtc_setup_vps_disk(8)dtc_kill_vps_disk(8)