Sponsored Content
Top Forums Shell Programming and Scripting changing the file-name in a directory for all files matching a particular criteria Post 302713159 by elixir_sinari on Wednesday 10th of October 2012 10:31:52 AM
Old 10-10-2012
Like this?
Code:
for i in *-e.wav
do
 echo mv $i ${i/%-e.wav/-l.wav}
done

Remove the echo if the mv commands look proper.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

deleting files and folders matching criteria

Hello, I'm spendind hours trying to figure out how a script could remove files and folders older than 30days in a given volume (/dataVolumes/Booba.1.0). Within this volume, all users have their personal folder that starts with "RC-..", so the script should skip them for deletion. I will... (4 Replies)
Discussion started by: H3001
4 Replies

2. AIX

Simultaneous searching for files (names matching certain criteria) in several directo

Hello everyone, My OS is AIX 5.2 I would like some help in getting command syntax that does the following: 1. Searches simultaneously several directories downward; 2. Checks every subdirectory in each directory (and so on...) for file names that contain certain characters such as “~”, start... (0 Replies)
Discussion started by: Hopeful
0 Replies

3. Shell Programming and Scripting

making a list matching certain criteria in bash...

Hello everyone!I am trying to make a mail list(a simple .txt file)in which i put certain records that match specific criteria. Let's say that i have a(sorted by last column file)like this one: 0100567 Bla1 Lala1 100 1234567 Bla2 Lala2 80 8769029 Bla3 Lala3 70 1001007 ... (0 Replies)
Discussion started by: bashuser2
0 Replies

4. Shell Programming and Scripting

Delete all files if another files in the same directory has a matching occurence of a specific word

Hello, I have several files in a specific directory. A specific string in one file can occur in another files. If this string is in other files. Then all the files in which this string occured should be deleted and only 1 file should remain with the string. Example. file1 ShortName "Blue... (2 Replies)
Discussion started by: premier_de
2 Replies

5. UNIX for Dummies Questions & Answers

Changing file pemissions for all the files in a directory

For example, if i wanty to change the permission to 777 for all the files in a directory, is there any simpler way? Thanks (8 Replies)
Discussion started by: pandeesh
8 Replies

6. UNIX for Dummies Questions & Answers

How to fetch files right below based on some matching criteria?

I have a requirement where in i need to select records right below the search criteria qwertykeyboard white 10 20 30 30 40 50 60 70 80 qwertykeyboard black 40 50 60 70 90 100 qwertykeyboard and white are headers separated by a tab. when i execute my script..i would be searching... (4 Replies)
Discussion started by: vinnu10
4 Replies

7. Shell Programming and Scripting

Find and replace string matching criteria

Dear Friends, I am looking for a way to replace a string (multiple lines) starting with something and ending with something (these two values do not change) with blank. Basically I want to delete this code injection accross many sites and folders. Search Code (across files and folders) that... (2 Replies)
Discussion started by: libras
2 Replies

8. Shell Programming and Scripting

Renumber position 88-94 inside all files matching criteria inside folder

There are 4 files inside one folder matching criteria i.e. File name = ABCJmdmfbsjopXXXXXXX_mm-dd-yyyy_XXX.data Here is the Code which find the files matching criteria:- TS=`date +"%m-%d-%Y"`| for fname in `find . -name "ABCJmdmfbsjop???????_${TS}*.data"` do # Matching File Processing Code.... (1 Reply)
Discussion started by: lancesunny
1 Replies

9. Shell Programming and Scripting

Delete all files if another files in the same directory has a matching occurrence of a specific word

he following are the files available in my directory RSK_123_20141113_031500.txt RSK_123_20141113_081500.txt RSK_126_20141113_041500.txt RSK_126_20141113_081800.txt RSK_128_20141113_091600.txt Here, "RSK" is file prefix and 123 is a code name and rest is just timestamp of the file when its... (7 Replies)
Discussion started by: kridhick
7 Replies

10. Linux

Merge two files based on matching criteria

Hi, I am trying to merge two csv files based on matching criteria: File description is as below : Key_File : 000|اق|Key_HF|اق|Key_FName 001|اق|Key_11|اق|Sort_Key22|اق|Key_31 002|اق|Key_12|اق|Sort_Key23|اق|Key_32 003|اق|Key_13|اق|Sort_Key24|اق|Key_33 050|اق|Key_15|اق|Sort_Key25|اق|Key_34... (3 Replies)
Discussion started by: PK29
3 Replies
tape2wav(1)							     Emulators							       tape2wav(1)

NAME
tape2wav - Sinclair ZX Spectrum tape to wav audio file converter SYNOPSIS
tape2wav [ -r sample rate ] infile outfile DESCRIPTION
tape2wav converts audio files to ZX Spectrum tape images. OPTIONS
-r sample rate causes sample rate to be used as the sample rate for the target wav file. infile specifies the tape file to be converted. This file can be in any of the tape formats supported by libspectrum(3). outfile specifies the output wav file. BUGS
None known. SEE ALSO
fuse(1), fuse-utils(1), libspectrum(3), listbasic(1), tapeconv(1), tzxlist(1), snap2tzx(1), tape2wav(1) The comp.sys.sinclair Spectrum FAQ, at http://www.worldofspectrum.org/faq/index.html. AUTHOR
Fredrick Meunier (fredm@spamcop.net). Version 1.0.0 16th December, 2010 tape2wav(1)
All times are GMT -4. The time now is 03:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy