473,395 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

modifying text using perl

Hi,

What function I should use if I want to clean text using perl.

Example.

Input for my perl based shell command is

SMI-1234 566.5.2.3.4.5.5.192.168.1.1 = "huuhaa" : SMI-1234 566.5.2.3.4.5.5.192.168.1.2 = "jepjep" : SMI-1234 566.5.2.3.4.5.5.192.168.1.3 = "sapsap" : ....

Output what I wnat is

192.168.1.1 = "huuhaa"
192.168.1.2 = "jepjep"
192.168.1.3 = "sapsap"
....

br Hone
Oct 10 '07 #1
3 1704
Atli
5,058 Expert 4TB
Hi. Welcome to TSDN!

I have moved your question over to the Perl Forums, where the Perl experts are more likely to find it.

Moderator
Oct 10 '07 #2
numberwhun
3,509 Expert Mod 2GB
Hi,

What function I should use if I want to clean text using perl.

Example.

Input for my perl based shell command is

SMI-1234 566.5.2.3.4.5.5.192.168.1.1 = "huuhaa" : SMI-1234 566.5.2.3.4.5.5.192.168.1.2 = "jepjep" : SMI-1234 566.5.2.3.4.5.5.192.168.1.3 = "sapsap" : ....

Output what I wnat is

192.168.1.1 = "huuhaa"
192.168.1.2 = "jepjep"
192.168.1.3 = "sapsap"
....

br Hone
There is no one function that will do that for you. Instead, just like any other language, you are going to have to code to format your output like that. Why don't you give it a shot and if you need assistance, then post the code here (enclosed in the proper code tags) and we will help you troubleshoot it and get it working.

Regards,

Jeff
Oct 10 '07 #3
There is no one function that will do that for you. Instead, just like any other language, you are going to have to code to format your output like that. Why don't you give it a shot and if you need assistance, then post the code here (enclosed in the proper code tags) and we will help you troubleshoot it and get it working.

Regards,

Jeff
-------------

I get answer from other site so thx.....
Oct 10 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Japcuh | last post by:
How do you write self modifying code in Java? Japcuh (Just Another Perl C Unix Hacker) http://www.catb.org/~esr/faq/hacker-howto.htm#what_is ..0. ...0 000
3
by: Vumani Dlamini | last post by:
I have data which is in this format: ### data ### area=1101 home=003 mzer=00020 mzec=101 pmpr=00000 pmpc=102 bnsr=00000 bnsc=103
4
by: JE | last post by:
Hi! I am snooping around all sorts of websites and faqs, in search of a way to pick up any selected (mouse-highlighted) text in a HTML page, and store it in a JavaScript variable. I have...
24
by: allpervasive | last post by:
hi all, this is reddy, a beginner to c lang,,here i have some problems in reading and modifying the contents of a file,, hope you can help to solve this problem. Here i attach the file to be...
1
by: Xah Lee | last post by:
Text Processing with Emacs Lisp Xah Lee, 2007-10-29 This page gives a outline of how to use emacs lisp to do text processing, using a specific real-world problem as example. If you don't know...
1
by: Joe Cool | last post by:
I am attempting to add a function to an application I am working on to modify the JPEG Comment in a Jpeg image file. I can retrieve the JPEG Comment with no problem. The problem is modifying it....
5
Markus
by: Markus | last post by:
I'll leave out the annoying 'i'm a newbie' speech and get to the point: i'm a newbie at perl ;) First thing i ever wrote in perl and it doesnt work. I'm using xampp as my localhost - with perl...
4
by: Sean | last post by:
I have a situation whereby I need to modify the text string appearing on an ASP button with some text derived from a Javascript function. But I am unsure of the correct syntax to do so. ...
2
by: sbettadpur | last post by:
hello, I am trying to install the Text::NLP::Stanford::EntityExtract perl module on windows xp. But its not installing properly... can anybody tell solution for the above problem. But its...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.