I have duplicates records in a file, but they are not consecutive. I want to remove the duplicates , using script.
Can some one help me in writing a ksh script to implement this task.
Ex file is like below.
1234
5689
4556
1234
4444 (7 Replies)
Hi all,
I'm looking for some tips on an ideal method of parsing a huge fixed length flat file (~500gb) into a delimited text file. We have to do this because our data warehouse platform only accepts delimited file loads. In the past, we've done this with SAS (only on smaller ~40GB files) by... (1 Reply)
I have a huge collection of HTML files. They have their own file names with htmlextension. I want to rename each of these files with continuous numbers starting from 1.html till the last count of files. Simply it means that if there are three files like this
abc.html
cdfhg.html
rmbd.htmlthen... (1 Reply)
I have several production servers and 1 offline server. Production server continuously generates new log files for my application. Depending on time of day new files may be generated every few seconds and at other times every few hours. I also have an offline server where I would like to pull log... (3 Replies)
I need to write something that will read and execute all the files(Mainly executable scripts) inside one or more folders; in other words, a continuous chain with a break when finished. I'm new to shell and need syntax help. I'm on Ubuntu 12.10-Gnome btw.
Here are some main highlights I think... (2 Replies)
I have 100k data like this bellow , i want to group data to range
171
172
173
174
175
176
179
182
183
187
188
189
1900
1901
1903
1904
1905
1906 (10 Replies)
Hello Folks,
Looking for a script, where i can check for the existing of the files in a directory and copying to another.
How can i achieve it in loop for over period of time.
whatever files comes into the folder copied in another without duplicate and should be continuous loop.
... (8 Replies)
Hi All,
Please help
*****************
a=100 and run for loop that will minus 30 from 100 an will display value
run loop will run till display value will be 0
*****************
Thanking you (1 Reply)
Discussion started by: Praful Pednekar
1 Replies
LEARN ABOUT DEBIAN
weather::com::dayforecast
Weather::Com::DayForecast(3pm) User Contributed Perl Documentation Weather::Com::DayForecast(3pm)NAME
Weather::Com::DayForecast - class representing a forecast for one day
SYNOPSIS
[...]
my @locations = $weather_finder->find('Heidelberg');
my $forecast = $locations[0]->forecast();
my $tomorrow = $forecast->day(1);
print "Forecast for tomorrow:
";
print " - tomorrow it's the ", $tomorrow->date()->date(), "
";
print " - sunrise will be at ", $tomorrow->sunrise()->time(), "
";
print " - maximum temperature will be ", $tomorrow->high(), "
";
DESCRIPTION
Via Weather::Com::DayForecast objects one can access the weather forecast for one specific day.
This class will not be updated automatically with each call to one of its methods. You need to call a method of your Weather::Com::Forecast
object to get updated objects.
CONSTRUCTOR
You usually would not construct an object of this class yourself. This is implicitely done when you call the "day(number of day)" or the
"all()" method of a Weather::Com::Forecast object.
METHODS
date()
Returns a Weather::Com::DateTime object containing the date the forecast is for.
high()
Returns the maximum temperature that will be reached at daytime.
For day 0 (today), this will be 'N/A' when it's after noon...
There is a bug in weather.com's date and time mathematics: If you are asking for a location's forecast day 0 and it's short after midnight,
day 0 will be "yesterday" and you'll get both, yesterday's daytime forecast and night forecast!
I have not investigated this issue further, yet. If anyone has, please inform me!
low()
Returns the minimum temperature that will be reached at night.
sunrise()
Returns a Weather::Com::DateTime object containing the time of sunrise.
sunset()
Returns a Weather::Com::DateTime object containing the time of sunset.
day()
Returns a Weather::Com::DayPart object with all data belonging to the daytime.
For day 0 (today), this will be "undef" when it's after noon...
There is a bug in weather.com's date and time mathematics: If you are asking for a location's forecast day 0 and it's short after midnight,
day 0 will be "yesterday" and you'll get both, yesterday's daytime forecast and night forecast!
I have not investigated this issue further, yet. If anyone has, please inform me!
night()
Returns a Weather::Com::DayPart object with all data belonging to the night.
AUTHOR
Thomas Schnuecker, <thomas@schnuecker.de>
COPYRIGHT AND LICENSE
Copyright (C) 2004-2007 by Thomas Schnuecker
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The data provided by weather.com and made accessible by this OO interface can be used for free under special terms. Please have a look at
the application programming guide of weather.com (<http://www.weather.com/services/xmloap.html>)!
perl v5.8.8 2007-07-09 Weather::Com::DayForecast(3pm)