Sponsored Content
Full Discussion: Manipulating Data
Homework and Emergencies Emergency UNIX and Linux Support Manipulating Data Post 302392927 by ahmad.diab on Saturday 6th of February 2010 12:11:17 PM
Old 02-06-2010
more shorter code:-

Code:
perl -wpl -e 's/(-|:)/ /g ;'  input.txt

SmilieSmilieSmilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Manipulating data in variable

Hi, I have two variables - A and B - containing a bunch of file paths. I am comparing them and when I find a match I want to remove that entry from A so that as the compare proceeds A shrinks entry by entry. How can I remove a matched entry from A whilst leaving the non matched entries... (6 Replies)
Discussion started by: ajcannon
6 Replies

2. UNIX for Dummies Questions & Answers

Help!! manipulating file

Hi all, I need help manipulating the file below. Here is what I needed to do. First, I have to replace INSUPD to DELETE. Then I need to change the content of the file around by flipping the contents in the file from the bottom to the top (start from "CMD") How should I attack this? Here... (2 Replies)
Discussion started by: sirrtuan
2 Replies

3. Shell Programming and Scripting

Manipulating Pick multi dimensional data with awk.

Hi. I am reasonably new to awk, but have done quite a lot of unix scripting in the past. I have resolved the issues below with unix scripting but it runs like a dog. Moved to awk for speed and functionality but running up a big learning curve in a hurry, so hope there is some help here. I... (6 Replies)
Discussion started by: mike.strategis
6 Replies

4. Shell Programming and Scripting

manipulating data

Hi guys Firstly, I'd like to say hi and how great this forum is. I'm not new to UNIX but am relatively new to scripting. I have a personal project that I'm working on just to try and speed up my learning. I working with a text file, well more of a logfile really. It has several columns of... (6 Replies)
Discussion started by: abcd69
6 Replies

5. Shell Programming and Scripting

Manipulating a file

Hi everybody, I need an urgent help with a BASH script. I have file which contains (besides the other data) the lines with the following structure identified by with keyword PCList: <PARAMETER NAME="PCList" TYPE="LIST_STRUCTURE" MODEL="{,}" ... (1 Reply)
Discussion started by: sameucho
1 Replies

6. Shell Programming and Scripting

reading from two files and manipulating the data

hi i have a file of the following format FILE1 5 937 8 1860 1850 1 683 2 1 129 2 2 5 938 8 1122 1123 1 20 520 4 1860 1851 1 5 939 8 1122 1124 1 20 521 4i have another file which... (3 Replies)
Discussion started by: vaibhavkorde
3 Replies

7. Shell Programming and Scripting

Manipulating Filenames

Hi Folks, I'm looking for some ideas on how to change some file names. I'm pretty sure I need to use sed or awk but they still escape me. The files I have are like: VOD0615 NEW Blades R77307.pdf or VOD0615_NEW_Blades_R77307.pdf and what I want after processing is: R77307 NEW Blades.pdf ... (5 Replies)
Discussion started by: imonkey
5 Replies

8. Shell Programming and Scripting

Manipulating xml data with awk

Hi everyone, I have a little bit of complicated task to finish with AWK. Here it is; I have a data file in xml format which looks like this <data> a1 a2 a3 a4 a5 b1 b2 b3 b4 b5 c1 c2 c3 c4 c5 d1 d2 d3 d4 d5 e1 e2 e3 e4 e5 </data> lets say each data block contains 5 rows and 5 columns,... (13 Replies)
Discussion started by: hayreter
13 Replies

9. Shell Programming and Scripting

Data manipulating script. Please HELP!

Dear friends, I'm struggling to preparing a bunch of gromacs input files, say manually. It's really a time-consuming work without any techniques. I suppose that it could be done by a smart script automatically. But I lack some basic knowledge on scripting. Please help! My original input looks... (3 Replies)
Discussion started by: liuzhencc
3 Replies

10. Shell Programming and Scripting

Manipulating Data Records for reporting

Hello All, I have Data Records (DRs) with the following format: ... (2 Replies)
Discussion started by: EAGL€
2 Replies
doc::lua-oocairo-matrix(3)				       Lua OO Cairo binding					doc::lua-oocairo-matrix(3)

Name
       lua-oocairo-matrix - Transformation matrix table

Introduction
       Matrix objects are used in Cairo to represent affine transformations like rotation and scaling.	They are used for transforming both fonts
       and paths drawn on surfaces.

       This binding uses normal Lua tables for matrices, with each matrix being an array of six numbers.  You can use any such table when
       supplying a matrix to a method, but the ones returned by this module have a metatable set so that the methods listed below can be called on
       it.

       The "matrix_create" function in the module table can be used to create a new identity matrix.

Methods
       The following methods can be called on a matrix object.	Unless otherwise stated they do not return any values.	The transformations alter
       the matrix you supply by adjusting the numbers in the table, rather than creating a new table.

       mat:invert ()
	   Set mat to its inverse, which will result in a transformation which reverses what it did originally.  Not all matrices have an inverse,
	   and if none can be found then an exception will be thrown.

       mat1:multiply (mat2)
	   Multiply mat1 by mat2, leaving mat2 unchanged.  This has the effect of combining the transformations represented by the two matrices.

       mat:rotate (ang)
	   Apply a rotation by ang radians to mat.

       mat:scale (sx, sy)
	   Apply a scaling transformation to mat.

       mat:transform_distance (x, y)
	   Transform the distance given, using mat, and return two numbers giving the resulting distance.  This will have the same effect as
	   "mat:transform_point()" but without any translation taking place.

       mat:transform_point (x, y)
	   Transform the position of the coordinates, which must be numbers, to the matrix, and return two numbers giving the resulting position.

       mat:translate (x, y)
	   Apply a translation to mat.

1.4								    2011-05-18						doc::lua-oocairo-matrix(3)
All times are GMT -4. The time now is 08:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy