Do you mean that you want to have an empty line between your title, and the tree? If so, then using a second echo, with a null string will work. For example:
The listing of files generated by the code above is separated from the "title" by a single blank line. You could also use a single printf:
The double newline at the end creates the blank line.
If this isn't what you are talking about, please provide an example.
That is exactly what I was looking for. Thank you!
hi All,
Have a doubt in ksh..Am not familiar with arrays but i have tried out a script..
plzzzzz correct me with the script
My i/p File is:
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = 192.168.2.2)
(Port = 1525)
)
)
(CONNECT_DATA = (SID = TESTDB1)
)
)
... (7 Replies)
I did some past data manipulations using awk so I could join lines in order to use grep. Now that I have newly searched data I need to insert a new line break to use further statistical packages. I have a data base that looks something like this:
... (3 Replies)
Dear All,
thanks in advance
input file
410530AAANNNNNAAA410530JJJJJJYYYY410530PPPPPAAAAAA...........
I want output like
410530AAANNNNNAAA
410530JJJJJJYYYY
410530PPPPPAAAAAA
Thanks (10 Replies)
My requirement is to read the csv file and need to remove if any line break in it.
sample data:
Row1: "Oslo, Symra kino",Oslo,130-7,Symra 1,130-7-91Row2:"Tønsberg, Brygga Kino SF",Tønsberg,202-1.Tønsberg SF 4,202-1-4
Expected data:
Row1: "Oslo, Symra kino",Oslo,130-7,Symra... (4 Replies)
...when the lines use both a colon and commas to separate the parts you want read as information.
The first version of this script used cut and other non-Bash-builtins, frequently, which made it nice and zippy with little more than average processor load in GNOME Terminal but, predictably, slow... (2 Replies)
I cannot seem to get this to work..
I have a file which has about 100 lines, and there is no end of line (line break \n) at the end of each line, and this is causing problem when i paste them into an application.
the file looks like this
this is a test
that is a test
balblblablblhblbha... (1 Reply)
<td>
CIS
</td>and I tried to sed 's/<td>\/nCIS\/n<\/td>/<td><\/td>' and sed 's/<td>\/rCIS\/r<\/td>/<td><\/td>' , but no joy. This is an html page that I need to clean. (4 Replies)
Hi,
We had an issue with one file. Each line in the file is a record in which there will be 6 fields each separated by ; Problem is some lines are broken into pieces.
like
a;b;
c;
d;
e;f
instead of a;b;c;d;e;f
I have filtered out all the broken lines from the original file and wrote to... (6 Replies)
How can i break a single line into 5 lines
# joseluiz.silvano; Ramal4846; Sala4121; SetorCorregedoria host DF04488962 { hardware ethernet 00:16:41:68:57:0B; fixed-address 10.100.111.245; }
INTO
# joseluiz.silvano; Ramal4846; Sala4121; SetorCorregedoria
host DF04488962 {... (5 Replies)
Hello everyone!
I'm trying to make the below file1 look like file2, can anyone help?
Basically I just hit backspace on every line that starts with a number.
Thanks!
file1:
THIS#IS-IT1
4
THIS#IS-IT2
3
THIS#IS-IT3
2
THIS#IS-IT4
1
Result > file2: (4 Replies)
Discussion started by: demmel
4 Replies
LEARN ABOUT DEBIAN
blt_treecreate
Blt_TreeCreate(3) BLT Library Procedures Blt_TreeCreate(3)__________________________________________________________________________________________________________________________________________________NAME
Blt_TreeCreate - Create tree data object.
SYNOPSIS
#include <bltTree.h>
int
Blt_TreeCreate(interp, name, tokenPtr)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter to report results back to.
const char *name (in) Name of the new tree. Can be qualified by a namespace.
Blt_Tree *tokenPtr (out) If not NULL, points to location to store the client tree token.
_________________________________________________________________DESCRIPTION
This procedure creates a C-based tree data object and optionally returns a token to it. The arguments are as follows:
interp Interpreter to report results back to. If an error occurs, then interp->result will contain an error message.
name Name of the new tree object. You can think of name as the memory address of the object. It's a unique name that identifies the
tree object. No tree object name can already exist. Name can be qualified by a namespace such as fred::myTree. If no namespace
qualifier is used, the tree will be created in the current namespace, not the global namespace. If a qualifier is present, the
namespace must already exist.
tokenPtr Holds the returned token. TokenPtr points to a location where it is stored. Tree tokens are used to work with the tree object.
If NULL, no token is allocated. You can later use Tcl_TreeGetToken to obtain a token.
The new tree data object created will initially contain only a root node. You can add new nodes with Blt_TreeCreateNode.
Optionally a token for the tree data object is returned. Tree data objects can be shared. For example, the tree and hiertable commands
may be accessing the same tree data object. Each client grabs a token that is associated with the tree. When all tokens are released (see
Blt_TreeReleaseToken) the tree data object is automatically destroyed.
RETURNS
A standard Tcl result is returned. If TCL_ERROR is returned, then interp->result will contain an error message. The following errors may
occur:
o There already exists a tree by the same name as name. You can use Tcl_TreeExists to determine if a tree exists beforehand.
o The tree name is prefixed by a namespace that doesn't exist. If you qualified the tree name with a namespace, the namespace must exist.
Unlike Tcl procs and variables, the namespace is not automatically created for you.
o Memory can't be allocated for the tree or token.
EXAMPLE
The following example creates a new
Blt_Tree token;
if (Blt_TreeCreate(interp, "myTree", &token) != TCL_OK) {
return TCL_ERROR;
}
printf("tree is %s
", Blt_TreeName(token));
KEYWORDS
Tcl_TreeGetToken, Tcl_TreeExists, Tcl_TreeReleaseToken
BLT 2.4 Blt_TreeCreate(3)