Sponsored Content
Full Discussion: Simple renaming question
Special Forums Windows & DOS: Issues & Discussions Simple renaming question Post 302832255 by BrentBANKS on Saturday 13th of July 2013 06:17:43 PM
Old 07-13-2013
This is kinda tricky, as you are not renaming an extension, but part of of the actual file name. Your files aren't a ".srt.ass" type, they are still a ".ass" type. If you do want to get rid of the .srt in the filename, run these commands, or put them in a batch file.

Code:
ren *.ass *.
ren *.srt *.ass

I tested this method in Win XP and it appeared to work for me.

Last edited by BrentBANKS; 07-13-2013 at 07:32 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ok simple question for simple knowledge...

Ok what is BSD exactly? I know its a type of open source but what is it exactly? (1 Reply)
Discussion started by: Corrail
1 Replies

2. UNIX for Dummies Questions & Answers

simple batch renaming...45-*.php to 46-*.php

in Bash i'm trying to rename directories full of files. the file name pretty much stays the same except for the numerical prefix which will be the same for all files. so, i want to rename these... 45-body.php 45-header.php 45-footer.php etc. to... 46-body.php 46-header.php... (2 Replies)
Discussion started by: bcamp1973
2 Replies

3. Programming

Simple C question... Hopefully it's simple

Hello. I'm a complete newbie to C programming. I have a C program that wasn't written by me where I need to write some wrappers around it to automate and make it easier for a client to use. The problem is that the program accepts standard input to control the program... I'm hoping to find a simple... (6 Replies)
Discussion started by: Xeed
6 Replies

4. Shell Programming and Scripting

Question about SED cutting and renaming

Hi. I've posted a couple of questions on my little project before, and it's been helpful, but things just keep changing on my end. Allow me to explain. I'm getting hundreds of .txt files, each containing the results of a database search from a newspaper. EAch file contains the news stories... (10 Replies)
Discussion started by: spindoctor
10 Replies

5. UNIX for Dummies Questions & Answers

Simple Question

Hi Guys, I've been learning UNIX for the past couple of days and I came across this exercise, I can't get my head around it, so I would be ever so grateful if I could receive some sort of help or direction with this. Create a file with x amount of lines in it, the content of your choice. ... (3 Replies)
Discussion started by: aforball
3 Replies

6. Shell Programming and Scripting

Simple renaming task?

Hi guys, could someone tell me how i could create a label like this: mybox01, mybox04, mybox12, mybox10 when i have the values "mybox1", "mybox4","mybox12","mybox10" as a prefix and a number. If the number is below 10 then add a zero before the number? A one liner? A long approach is to... (2 Replies)
Discussion started by: muay_tb
2 Replies

7. Shell Programming and Scripting

Simple renaming

Hi Having many filenames in a folder containing the string "-DATE" (e.g. : Nbr_Name-DATE_2011.txt). I would like to remove the "-DATE" in each filename to get just: Nbr_Name_2011.txt . Know its easy but somehow it wont work. Tried it like that: for i in `ls *-DATE*`; do mv "$i"... (10 Replies)
Discussion started by: jurgen
10 Replies

8. Shell Programming and Scripting

Very simple question

Hi, guys, I'm a new comer here. I'm studying Unix Shell and I met a problem confusing me a lot. Here it is : script 1: #!/bin/sh # scriptname : do_increment increment(){ sum=`expr $1 + 1` return $sum # Return the value of sum to the script. } echo -n "The sum is " increment $1 # Call... (2 Replies)
Discussion started by: franksunnn
2 Replies

9. Shell Programming and Scripting

Very simple question 2

Hey , another question is below: Administrator@fe038390aa60482 ~/Frank/20130509 $ c=`ls -ls` Administrator@fe038390aa60482 ~/Frank/20130509 $ echo $c Total 4 1 -rwxr--r-- 1 Administrator None 482 May 9 11:07 do_increment 1 -rwxr --r-- 1 Administrator None 272 May 9 11:32 do_square 1... (2 Replies)
Discussion started by: franksunnn
2 Replies

10. Red Hat

Syslog.conf: looking for a simple answer on a simple question

Cheers! In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not? To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
Discussion started by: dr1zzt3r
6 Replies
Mojo::Transaction::HTTP(3pm)				User Contributed Perl Documentation			      Mojo::Transaction::HTTP(3pm)

NAME
Mojo::Transaction::HTTP - HTTP 1.1 transaction container SYNOPSIS
use Mojo::Transaction::HTTP; my $tx = Mojo::Transaction::HTTP->new; DESCRIPTION
Mojo::Transaction::HTTP is a container for HTTP 1.1 transactions as described in RFC 2616. EVENTS
Mojo::Transaction::HTTP inherits all events from Mojo::Transaction and can emit the following new ones. "request" $tx->on(request => sub { my $tx = shift; ... }); Emitted when a request is ready and needs to be handled. $tx->on(request => sub { my $tx = shift; $tx->res->headers->header('X-Bender', 'Bite my shiny metal ass!'); }); "upgrade" $tx->on(upgrade => sub { my ($tx, $ws) = @_; ... }); Emitted when transaction gets upgraded to a Mojo::Transaction::WebSocket object. $tx->on(upgrade => sub { my ($tx, $ws) = @_; $ws->res->headers->header('X-Bender', 'Bite my shiny metal ass!'); }); ATTRIBUTES
Mojo::Transaction::HTTP inherits all attributes from Mojo::Transaction. METHODS
Mojo::Transaction::HTTP inherits all methods from Mojo::Transaction and implements the following new ones. "client_read" $tx->client_read($chunk); Read and process client data. "client_write" my $chunk = $tx->client_write; Write client data. "keep_alive" my $success = $tx->keep_alive; Check if connection can be kept alive. "server_leftovers" my $leftovers = $tx->server_leftovers; Leftovers from the server request, used for pipelining. "server_read" $tx->server_read($chunk); Read and process server data. "server_write" my $chunk = $tx->server_write; Write server data. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojo::Transaction::HTTP(3pm)
All times are GMT -4. The time now is 06:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy