02-28-2012
Quote:
Originally Posted by
Shirishlnx
Learn about IFS variable ...
Will that help me with line breaks?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: aajan
7 Replies
2. UNIX for Dummies Questions & Answers
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)
Discussion started by: kkohl78
3 Replies
3. Shell Programming and Scripting
Dear All,
thanks in advance
input file
410530AAANNNNNAAA410530JJJJJJYYYY410530PPPPPAAAAAA...........
I want output like
410530AAANNNNNAAA
410530JJJJJJYYYY
410530PPPPPAAAAAA
Thanks (10 Replies)
Discussion started by: The_Archer
10 Replies
4. Shell Programming and Scripting
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)
Discussion started by: cnraja
4 Replies
5. Shell Programming and Scripting
...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)
Discussion started by: SilversleevesX
2 Replies
6. Shell Programming and Scripting
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)
Discussion started by: fedora
1 Replies
7. Shell Programming and Scripting
<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)
Discussion started by: dba_frog
4 Replies
8. Shell Programming and Scripting
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)
Discussion started by: anjuvr
6 Replies
9. Shell Programming and Scripting
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)
Discussion started by: danielldf
5 Replies
10. Shell Programming and Scripting
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
pod::abstract::tree
Pod::Abstract::Tree(3pm) User Contributed Perl Documentation Pod::Abstract::Tree(3pm)
NAME
Pod::Abstract::Tree - Manage a level of Pod document tree Nodes.
DESCRIPTION
Pod::Abstract::Tree keeps track of a set of Pod::Abstract::Node elements, and allows manipulation of that list of elements. Elements are
stored in an ordered set - a single node can appear once only in a single document tree, so inserting a node at a point will also remove it
from it's previous location.
This is an internal class to Pod::Abstract::Node, and should not generally be used externally.
METHODS
detach
$tree->detach($node);
Unparent the $node from $tree. All other elements will be shifted to fill the empty spot.
push
Add an element to the end of the node list.
pop
Remove an element from the end of the node list.
insert_before
$tree->insert_before($target,$node);
Insert $node before $target. Both must be children of $tree
insert_after
$tree->insert_after($target,$node);
Insert $node after $target. Both must be children of $tree
unshift
Remove the first node from the node list and return it.
Unshift takes linear time - it has to relocate every other element in id_map so that they stay in line.
children
Returns the in-order node list.
index_relative
my $node = $tree->index_relative($target, $offset);
This method will return a node at an offset of $offset (which may be negative) from this tree structure. If there is no such node, undef
will be returned. For example, an offset of 1 will give the following element of $node.
AUTHOR
Ben Lilburne <bnej@mac.com>
COPYRIGHT AND LICENSE
Copyright (C) 2009 Ben Lilburne
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-01-03 Pod::Abstract::Tree(3pm)