Create a file containing the information you posted exactly as you gave it earlier. Give the file the filename "list". Place the "list" file in the same directory as the .xml files.
e.g.
As you can see, there are three space seperated fields, e.g.
Field 1: PLMN-PLMN/MSC-106857/
Field 2: ------------->
Field 3: MSC_106857_20050219091635.xml
Then, create a script in the same directory as the .xml files and the "list" file containing... (I've modified this as per your further requirements)...
So if you do an ls in the directory, you should see all your xml files, the file named "list" and your script file (let's call this "foo.sh").
Now make foo.sh executable
$ chmod u+x foo.sh
Run foo.sh
$ ./foo.sh
And that should rename and copy all the files as per your requirements.
a script, cheer that prints its parameter as shown in the example below.
eg:
$ cheer U N I X
Give me a U!
U!
Give me a N!
N!
Give me a I!
I!
Give me a X!
X!
#!/bin/sh
for letter
do
echo "Give me a $letter!";echo "$letter!"
done
this is the code i used for the above script (2 Replies)
Hello guys, I need some help to solve a little problem that I have here:
I have a big file with almost 100.000 lines of data, here is an example of line:
100099C01101C00000000059399489283CREMOVISTAR_TX 010001C00000000000099069799MOVISTAR_Tx ... (7 Replies)
Hello guys,
Forgive me if I duplicate the post but i think i make a mistake choosing the correct forum.
I need some help to solve a little problem, I have a big file with almost 100.000 lines of data, here is an example of line:
100099C01101C00000000059399489283CREMOVISTAR_TX ... (3 Replies)
Hi again. Sorry if it seems like I'm spamming the boards a bit, but I figured I might as well ask all the questions I need answers to at once, and hopefully at least get some.
I have installed Solaris 10 on a server. The default text editors are there (vi, ex, ed, maybe others, I know emacs is... (4 Replies)
I've began my journey at 7:50, and at this time i've lost 40 minutes in this easy but :confused::eek:-script.
Someone can help me ? I want to see the differences beetween all xml files in two directories (they must be equals), and this is my script:
#!/bin/bash
dir1="261108"... (5 Replies)
Hi,
I am planning the following to do. On my linux system I've got different users in the /home/ directory. These users have file limitations.
So every user below the /home/ directory should get a text file in a seperate folder /home/$user/files/ which tells him how many files he is already... (2 Replies)
Hi to all,
first of all,i am working on MINIX 3 OS.
I want to create a bash script file,which will create a list of files(not directories) that have been modified one specific day (i.e today) under my home directory.
thank you very much!! :) (8 Replies)
Hello every one :D
I am very new in Linux ... that why I do not have any idea to write the script :confused:
I am trying to read some tutorial , but I do not have enough time to do it !
because I have to submit my project results in next Wednesday
I need your help to write script !
I will... (2 Replies)
:wall:I've this simple code:
STF=/opt/aaa
cat $STF | nice sort -u > $STF.new && mv $STF.new $STF
Which works until today. What happened is that this script has been corrupted the FS, so I've to use fschk to repair the filesystem.
I presume the move command executed just a little too early... (1 Reply)
Write a script, which of the directory including sources of kernel, choose files with sources in C (files with .c extension), including in name "io" with dirvers (located in random subdirectory drivers) and place their content in file FILE. (to 20 lines).
Could someone help me with this task?... (1 Reply)
Discussion started by: Czabi
1 Replies
LEARN ABOUT DEBIAN
graph::easy::layout
Graph::Easy::Layout(3pm) User Contributed Perl Documentation Graph::Easy::Layout(3pm)NAME
Graph::Easy::Layout - Layout the graph from Graph::Easy
SYNOPSIS
use Graph::Easy;
my $graph = Graph::Easy->new();
my $bonn = Graph::Easy::Node->new(
name => 'Bonn',
);
my $berlin = Graph::Easy::Node->new(
name => 'Berlin',
);
$graph->add_edge ($bonn, $berlin);
$graph->layout();
print $graph->as_ascii( );
# prints:
# +------+ +--------+
# | Bonn | --> | Berlin |
# +------+ +--------+
DESCRIPTION
"Graph::Easy::Layout" contains just the actual layout code for Graph::Easy.
METHODS
"Graph::Easy::Layout" injects the following methods into the "Graph::Easy" namespace:
layout()
$graph->layout();
Layout the actual graph.
_assign_ranks()
$graph->_assign_ranks();
Used by "layout()" to assign each node a rank, so they can be sorted and grouped on these.
_optimize_layout
Used by "layout()" to optimize the layout as a last step.
EXPORT
Exports nothing.
SEE ALSO
Graph::Easy.
AUTHOR
Copyright (C) 2004 - 2008 by Tels <http://bloodgate.com>
See the LICENSE file for information.
perl v5.14.2 2011-12-23 Graph::Easy::Layout(3pm)