Hello
A good idea. I also started up. nezabudka / srt_to_ass . GitLab
I tried to work with your script, but since I have slow Internet, I was not able to translate the file over all night. I tried to send requests in a non-blocking cycle in the background, but after around 75% percent of translated in 5 minutes banned me in Google.
Google only bans for an hour or two. You'll be up and running again quickly.
Quote:
I had to look for workarounds. That's what I did. I translate in portions of 50 renumbered lines. The script runs 1 to 2 minutes. I just made a release, I still need to write explanations and test. If it will be interesting, I will write a little later
Nice script! You are much better at this than I am. Much of the code is new to me, so it might take a while for me to understand it.
It runs fine for me with file.srt or if I use any .srt file that is English with no strange characters, but if I use a source file that has French in it, it doesn't work:
It will continue to translate but the translation will end up scrambled. This would be so great to get working. I put in a few hours today trying to fix it with no luck.
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 NETBSD
srtconfig
SRTCONFIG(1) BSD General Commands Manual SRTCONFIG(1)NAME
srtconfig -- configure srt interfaces
SYNOPSIS
srtconfig srtX
srtconfig srtX N
srtconfig srtX del N
srtconfig srtX add srcaddr mask dstif dstaddr
srtconfig srtX set N srcaddr mask dstif dstaddr
DESCRIPTION
srtconfig configures, or queries the configuration of, srt(4) interfaces. An srt(4) interface parcels packets out to other interfaces based
on their source addresses (the normal routing mechanisms handle routing decisions based on destination addresses). An interface may have any
number of routing choices; they are examined in order until one matching the packet is found. The packet is sent to the corresponding inter-
face. (Any interface, even another srt interface, may be specified; if the configurations collaborate to cause a packet to loop forever, the
system will lock up or crash.)
When run with only one argument, srtconfig prints the settings for the specified interface.
When run with two arguments, srtconfig prints the settings for the routing choice whose number is given as the second argument.
The form with 'del' deletes a routing choice, identified by its number. Other choices with higher numbers, if any, will be renumbered
accordingly.
The 'add' form adds a choice; the other arguments describe it, and are documented below. The new choice is added at the end of the list.
The 'set' form replaces an existing choice, given its number. The other arguments describe the new choice which is to replace whatever cur-
rently exists at the given number N.
A choice is described by four pieces of information: a source address and mask, which are used to determine which choice an outgoing packet
uses, a destination interface, and a destination address for the new interface. The source address and mask are specified like any Internet
addresses (for convenience, the mask may instead be specified as a '/' followed by a small integer, CIDR-style; note that in this case the
mask must still be a separate argument; it cannot be appended to the end of the source address argument).
Each srt interface also has ordinary source and destination addresses which are set with ifconfig(8) like any other interface; these should
not be confused with any of the above.
AUTHORS
der Mouse <mouse@rodents.montreal.qc.ca>
BSD August 21, 2000 BSD