Sponsored Content
Full Discussion: problem with renaming files
Top Forums UNIX for Advanced & Expert Users problem with renaming files Post 302364560 by jim mcnamara on Friday 23rd of October 2009 10:46:48 AM
Old 10-23-2009
Code:
for file in *.txt
do
    mv $file ${file%%.*}.dat
done

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

advanced file renaming problem

I know this is probably a question for the newbie forum, where it is also posted, but I thought maybe some of you pros might like to help me out anyway. Here is my problem: I have to rename a batch of files that look like: 2001_0001.asc 2001_0002.asc . 2001_0548.asc 2002_0184.asc . .... (0 Replies)
Discussion started by: sea krait
0 Replies

2. Shell Programming and Scripting

renaming files or adding a name in the beginning of all files in a folder

Hi All I have a folder that contains hundreds of file with a names 3.msa 4.msa 21.msa 6.msa 345.msa 456.msa 98.msa ... ... ... I need rename each of this file by adding "core_" in the begiining of each file such as core_3.msa core_4.msa core_21.msa (4 Replies)
Discussion started by: Lucky Ali
4 Replies

3. Shell Programming and Scripting

Problem with renaming and saving

Hello mates, I am quite new to script programming and I am facing an uphill task to rename files in one folder. I have gone through similar posts but most of them deal with renaming files by changing the file extensions. Problem : I have a folder which contains files like... (5 Replies)
Discussion started by: chirag.joshi
5 Replies

4. Shell Programming and Scripting

File renaming problem

Can someone tell me how can i remove the RPCFTP word from RPCFTPfilelist.csv file ? (4 Replies)
Discussion started by: JSKOBS
4 Replies

5. Shell Programming and Scripting

Loop renaming files w/ a count problem

:wall: Hello there, basically in my program where im stuck at is when it comes to rename the files in a loop. - the program counts the number of files w a given name (works!) - and then if the number of files is greater or equal to the MAX_VERSIONS (numbers of files allowed w the... (1 Reply)
Discussion started by: thurft
1 Replies

6. Shell Programming and Scripting

Problem renaming files using variables

Hi, I have the following problem: I have a list of files: 1.txt 2.txt 3.txt 4.txt Then I have a list of variable names inside variable.txt: A B C D I'd like to rename 1.txt, 2.txt etc using the variables from variable.txt (2 Replies)
Discussion started by: hubleo
2 Replies

7. UNIX for Advanced & Expert Users

Problem with renaming files

I have about 1000 files containing the character * in the name. I need to find these files and replace the * with a -. I am working with HP UX v11. I am using the following command find . -type f -name '*\**' -exec bash -c 'f="$1"; mv "$f" "${f//\*/-}"' - '{}' \ People tell me it works for... (4 Replies)
Discussion started by: MikeDavid
4 Replies

8. UNIX for Dummies Questions & Answers

[Solved] File Splitting And Renaming Problem

OK So I Recently Bought A whatbox Seed-box Act!!:cool: I am connected to whatbox via SSH!!! Now i have downloaded a movie and renamed it to 2yify.mp4 (800MB):o When I TYPE the command to split it which is:) split -b 400m 2yify.mp4 It gets renamed into two parts with different names... (4 Replies)
Discussion started by: anime12345
4 Replies

9. Shell Programming and Scripting

Renaming multiple files in sftp server in a get files script

Hi, In sftp script to get files, I have to rename all the files which I am picking. Rename command does not work here. Is there any way to do this? I am using #!/bin/ksh For eg: sftp user@host <<EOF cd /path get *.txt rename *.txt *.txt.done ... (7 Replies)
Discussion started by: jhilmil
7 Replies

10. Shell Programming and Scripting

Problem renaming files on Solaris 10 server

Good day all. I'm trying to rename some files in my home directory with some bizarre results. Basically I need to change the IP address in the filename to the hostname which I ggrep from within the file: -rw-r--r-- 1 bh694n nrc 5095 May 2 20:03 alarms_999.189.161.146.log... (2 Replies)
Discussion started by: BRH
2 Replies
UNMASS(1)						      General Commands Manual							 UNMASS(1)

NAME
unmass - extract game archive files SYNOPSIS
unmass [options] file DESCRIPTION
This manual page documents briefly the unmass command. unmass is a tool to extract game archives. It supports the following archive types: Crismon Land, Baldur's Gate 2, Civilization 4, Doom (WADs), Dune 2, Etherlords 2, Final Fantasy 7 and 8, Flashpoint, Knights of Xentar, Metal Gear Solid (DARs), Moorhuhn 2 and 3, Megaman Leg- ends, Oni, Operation Flashpoint, Princess Maker 2, Quake 1, RollCage, Swine, Unreal Tournament umods, Virtua Fighter bitmaps, MEA exe's, some economy file format. OPTIONS
-h, --help Show summary of options. -e <archive file> <file name> [...<file name>] Opens the archive and extract files. --modules Prints out list of modules for archive loading. --list <archive file> Opens the archive and prints list of the files inside. EXAMPLES
Display list of files contained inside archive 'battle.lgp' unmass -list battle.lgp Opens 'battle.lgp' and extracts file 'aabc.txt' and all files ending with 'dat' into current directory unmass -e battle.lgp aabc.txt *dat SEE ALSO
pak(1). AUTHOR
unmass was written by Miro Janosik. This manual page was written by Gurkan Sengun <gurkan@phys.ethz.ch>, for the Debian project (but may be used by others). July 9, 2007 UNMASS(1)
All times are GMT -4. The time now is 10:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy