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 OSF1
volunroot
volunroot(8) System Manager's Manual volunroot(8)NAME
volunroot - Remove Logical Storage Manager hooks for rootable volumes
SYNOPSIS
/usr/sbin/volunroot [-a | -A]
OPTIONS
Specifies that all volumes on the system disk be converted back to UNIX disk partitions, not just the root and swap volumes, rootvol and
swapvol. Forces removal of the private region unless it is the last one in the system.
DESCRIPTION
The volunroot script can be used to restore the accessibility of the root, swap, and other file systems on the boot disk directly through
disk partitions instead of through volume devices. The script also removes other changes that were made to enable booting of the system
from the root volume, so that the system will boot with no dependency on the Logical Storage Manager.
When used with no options, volunroot affects only the root and swap volumes, rootvol and swapvol.
For volunroot to work properly, only one plex must exist for each of the affected volumes. This plex must be the one created by volrootmir
or the original plex created when the root disk was encapsulated. This ensures that the underlying subdisks will have equivalent partitions
defined for them on the disk.
If these conditions are not met, the volunroot operation fails and none of the volumes are converted to disk partitions.
The unwanted plexes can be removed using either voledit or volplex.
SEE ALSO volencap(8), voldiskadm(8), voledit(8), volintro(8), volplex(8), volrootmir(8)volunroot(8)