I have a problem that I want to insert and delete some chars in the middle of a file. fopen() and fdopen() just allow to append at the end.
Is there any simple method or existing library that allow these actions? Thanks in advance.:confused: (7 Replies)
I am trying to strip out certain characters from a string on both (left & right) sides. For example, line=see@hear|touch, i only want to echo the "hear" part. Well i have tried this approach:
line=see@hear|touch
templine=${line#*@} #removed "see@"
echo ${templine%%\|*} #removed... (4 Replies)
Hi All,
I have a file which is delimeted with the character '. i need to replace this character with the same character and also a new line.
Can anyone please help me with the tr command for this.
Many thanks
Karan (11 Replies)
Hello,
I have a file with many lines with below format:
\abc\\1234
jkl\\567
def\\345
\pqr\\567
\xyz\\234
Here, i need to do 2 things.
1. replace \\ with \
2. remove starting \
so output to be as below: (11 Replies)
Hi fellow experts,
I have a question for you. Data looks like:
00877,05/13/2010,PBO,P,0000708331,518
00877,05/13/2010,PBO,P,0000708331,519
...
...
00877,05/13/2010,PBO,P,0000708331,2103
00877,05/13/2010,PBO,P,0000708331,2104,etc,etc
Basically I have to replace 518,519,2103,2104,... (4 Replies)
sed -e "s// /g" old.txt > new.txt
While I do know some control characters need to be escaped, can normal characters also be escaped and still work the same way? Basically I do not know all control characters that have a special meaning, for example, ?, ., % have a meaning and have to be escaped... (11 Replies)
Hi,
I have a text file which is output from a server and it lists all the files in a specific volume. However, the volume name appears as volume_name:.
I would like to replace this with \\volume_name\volume_name. This is not a problem in itself as I can use sed to globally look for the... (8 Replies)
Hi,
I need to correct href portion of the lines to edit out spaces from the line starting with position "<a href=" and ending at "target="
Below are 2 examples of extra space added by the server:
<td width=251 colspan=9 rowspan=22> <font size=2 face="courier"><tt><style>{font:7pt Courier ... (4 Replies)
Discussion started by: friedmi
4 Replies
LEARN ABOUT OPENSOLARIS
txzonemgr
txzonemgr(1M) System Administration Commands txzonemgr(1M)NAME
txzonemgr - Trusted Extensions Zone Manager Configuration Utility
SYNOPSIS
/usr/sbin/txzonemgr
DESCRIPTION
The txzonemgr shell script provides a simple, menu-based GUI wizard for creating, installing, initializing, and booting labeled zones on a
system on which Trusted Extensions is enabled. The script also provides menu items for networking options, name services options, and mak-
ing the global zone a client of an existing LDAP server. By default, all zones are configured to use the same name service and IP address
as the global zone.
txzonemgr is run by roles granted in the Zone Management Rights Profile, or by root in the global zone. It takes no options and returns no
values.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Command Interface Stability | Committed |
+-----------------------------+-----------------------------+
|Interactive Dialogue | Not an Interface |
+-----------------------------+-----------------------------+
SEE ALSO zenity(1), ifconfig(1M), zoneadm(1M), zonecfg(1M), attributes(5), rbac(5), zones(5)
Solaris Trusted Extensions Administrator's Procedures
NOTES
If administering zones from JDS, use txzonemgr rather than CDE actions.
txzonemgr uses the zenity command. For details, see the zenity(1) man page.
SunOS 5.11 17 Dec 2007 txzonemgr(1M)