I'm going to give it a try tomorrow when I can dedicate more time to it. Thank you so much!
Updated:
With:
The response was 1237.
Your English to Russian file seems to work fine. Whenever I've tried to use an English for French file, there was nothing inside of mysub.trans. mysub.text would look like this:
Note the space before the text and the absence of brackets. The mysub.srt file was a UTF-8, like yours.
I've attached the files I used to this post. And I'll continue to keep testing as you update it.
What is the correct format for a single command that would combine portions of 2 different lines in the command history? I'm using a C shell. Here's a simplified command history to clarify:
4 rm file1
5 ls -ld file2 file3 file4
6 cat file 5
With the above history, what would be the... (5 Replies)
I would like to change the lines:
originalline1
originalline2
to:
originalline1new
originalline1newline
originalline2new
originalline2newline
To do this, id like to combine the commands:
sed 's/^/&new/g' file > newfile1
and
sed '/^/ a\\
newline\\
\\ (2 Replies)
Hello all,
I am trying to list and count all the files of a particular type in any given directory. I can use the commands separately but when I combine them they do not give an output.
The command for counting the files is ls -1 | wc -l and for listing all the file of particular type say... (2 Replies)
Is there anyway to achieve "find /home -name "*.bashrc" 2>/dev/null" and "PS1="\n>"" in the same command? I just wanna add a line to the previous command to change the PS1 variable to ">". (1 Reply)
Hi Guys,
I am looking to optimze these 5 SSH lines to a single SSH to get my machine to not hang! lol!
cat hosts.lst | xargs -n1 -t -i echo 'home/util/timeout 6 0 ssh -q {} top -b > util/{}.top &' >> r_query_info
cat hosts.lst | xargs -n1 -t -i echo 'home/util/timeout 6 0 ssh -q {} uname -r... (5 Replies)
hey can anyone tell me how can i combine these two commands so that it is executed only once, but gives me both the results.
IDLE=`sar 30 6 | grep Average | awk '{print $1 $5}' `
sar 30 120 | awk '{print $1" "$5}' >> mailx -m -s "$MSG" xyz@abc.com. (5 Replies)
Hi,
I have a directory with some XML files in it. I can use wildcards to get the list of XMLs I want
say I have following XMLs in same dir
Employee1.xml
Employee2.xml
Employee3.xml
and
Salary1.xml
Salary2.xml
Salary3.xml
apart from other .txt .dat files etc
I want to write a unix... (7 Replies)
I have a directory of 3000 files without extensions (Solaris 5.10).
I would like to iterate the file names through the 'file' command and output their mime types (most are pdf or jpg, but a very few might be psd or swf which show simply as 'data')
So, I would like the output of the 'ls'... (2 Replies)
Hello all,
I need to send an attachment and text in the body, both in the same Email.
Below are two cammand that send the required data in separate Emails. I need to combine them so that I get just 1 Email containing the attachment & text in the body.
uuencode ${filename} "${file_}" |... (6 Replies)
Discussion started by: Junaid Subhani
6 Replies
LEARN ABOUT DEBIAN
weather::com::forecast
Weather::Com::Forecast(3pm) User Contributed Perl Documentation Weather::Com::Forecast(3pm)NAME
Weather::Com::Forecast - class representing all available weather forecasts for one location
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
Using Weather::Com::Forecast objects is the way to access weather forecast information for one specific location (city) and 0 (today) to 9
days in the future.
Each time you call the Weather::Com::Location objects' "forecast()" method, you'll get an updated Weather::Com::Forecast object. This
object is used to access the 10 Weather::Com::DayForecast objects containing the actual data.
CONSTRUCTOR
new(hash or hashref)
You usually would not construct an object of this class yourself. This is implicitely done when you call the "forecast()" method of a
Weather::Com::Location object.
METHODS
all()
Returns an arrayref of all Weather::Com::DayForecast objects if called in scalar context, an array if called in list context.
day(day number)
Returns the Weather::Com::DayForecast object that corresponds to the day number you provided.
The day number can be any number between 0 and 9.
Day 0 is usually today. Due to a bug (I think it is one) in the weather.com XOAP API, you may get the full forecast data of yesterday if
you call for day 0 just after midnight. I think this may have do something with the timezone. I have not fully investigated this issue,
yet. Please contact me, if you have!
SEE ALSO
See also documentation of Weather::Com, Weather::Com::Location, Weather::Com::DayForecast.
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::Forecast(3pm)