03-22-2009
Thanks for the code suggestions, i will try to implement and
need inputs on how to keep latest 5 files all the time while remove all other files from the said folders & sub folders when ever the script runs.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
A painfully rudimentary UNIX question for somebody. I've been puzzling over this for the last hour but can't find the right command.
I'm simply trying to get a list of all files - and their full paths - within a folder & subfolders which have extension .php and .js. That's it! No amount of... (1 Reply)
Discussion started by: AtomicPenguin
1 Replies
2. UNIX for Dummies Questions & Answers
Hi ALL
I would like know how many files there under a particular folder, which contains subfolders.
Thanks (5 Replies)
Discussion started by: cy163
5 Replies
3. UNIX for Dummies Questions & Answers
First of all, the extent of my unix knowledge is next to nil. I've been able to telnet to a unix box, and thanks to the Computer Hope website, I've been able to learn a few basic commands to navigate from folder to folder, and view contents.
What I really need to do is obtain a count of all... (2 Replies)
Discussion started by: scarfinv
2 Replies
4. Homework & Coursework Questions
Hello, I tried to count all unique words of all files in one folder and its subfolders. Can anybody say me, why this doesnt work:
ls| find -d | cat | tr "\ " "\n"| uniq -u | wc -l
???
Cat writes only the names of those files, but not the wors, which should be in them.
Thanks for any advice.
... (9 Replies)
Discussion started by: Dworza
9 Replies
5. Shell Programming and Scripting
Hi All,
I have written a script to check the file system usage and to delete the files which is consuming more space.Please check whether the script is corrcet
#Script Starts here
#!/usr/local/bin/perl
#Program to find the disk space and to delete the older files
#Checks the type of OS... (8 Replies)
Discussion started by: arunkarthick
8 Replies
6. Red Hat
ENVIROMENT
Linux: Fedora Core release 1 (Yarrow)
iPlanet: iPlanet-WebServer-Enterprise/6.0SP1
Log Path: /usr/iplanet/servers/https-company/logs
I have iPlanet log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I... (7 Replies)
Discussion started by: zachs
7 Replies
7. Shell Programming and Scripting
I want to use my script to get any file then delete it once it transfers to my side , I manage to create below script to generate "list" file which contains all file names in "10.10.1.1" then I made "a.out" file which contains the commands that I want to run it on "10.10.1.1" to get & delete the... (2 Replies)
Discussion started by: arm
2 Replies
8. Shell Programming and Scripting
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Discussion started by: weesiong
3 Replies
9. Shell Programming and Scripting
I have a folder with 4000 (*3) files like
gr_q4_gb-1.anc
gr_q4_gb-1.anc_cdr_st.txt
gr_q4_gb-1.anc_cdr_tr.txt
gr_q4_gb-2.anc
gr_q4_gb-2.anc_cdr_st.txt
gr_q4_gb-2.anc_cdr_tr.txt
gr_q4_gb-3.anc
gr_q4_gb-3.anc_cdr_st.txt
gr_q4_gb-3.anc_cdr_tr.txt
.
.
gr_q4_gb-4000.anc... (6 Replies)
Discussion started by: sammy777888
6 Replies
10. Shell Programming and Scripting
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
LEARN ABOUT DEBIAN
bsnes-purify
bsnes-purify(6) Games Manual bsnes-purify(6)
NAME
bsnes-purify - Tool for preparing ROMs for usage with bsnes
SYNOPSIS
bsnes-purify scan source-dir output-file
bsnes-purify output source-dir target-dir
DESCRIPTION
bsnes can not open all ROMs. For example SNES ROMs have to be without copier headers and with the filename extension .sfc. Recent versions
of bsnes support games to be arranged in cartridge folders (see below). bsnes 0.089 and later will only support cartridge folders.
bsnes-purify searches a directory for ROMs and performs an action on them. It also finds ROMs contained in .zip files.
bsnes-purify scan writes a list of the found ROMs together with their SHA256 checksums and sizes to a file.
bsnes-purify output creates for each found ROM a cartridge folder with the files program.rom and and manifest.xml in the target directory.
If the original ROM was a headered SNES ROM, program.rom will be the same, but without the header.
CARDRIDGE FOLDERS
Cartridge folders are intendended to contain all data belonging to a game. The name of a cartridge folder has to end with one of the file-
name extensions sfc, fc, gb, gbb, gbc or gba, depending on the system the game is for.
The user has to make sure that the following files exist
program.rom
the game ROM
manifest.xml
Additional data about the cartridge, generated by bsnes-purify. Sometimes bsnes-purify can't guess all the information for this file
and it has to be edited manually.
dsp1.rom, dsp1b.rom, dsp2.rom, dsp3.rom, dsp4.rom, st010.rom, st011.rom, st018.rom or cx4.rom
Some SNES games have pre-programmed coprocessors (DSPs) built into their cartridges. For these games, the required DSP programs also
need to be in the cartridge folders.
bsnes itself also writes files to cartridge folders, for example the data that would be saved to RAM in real cartridges to save progress,
or bsnes specific save states.
For further details, please ask at http://board.byuu.org/.
SEE ALSO
bsnes(6)
MAN PAGE AUTHOR
Tobias Hansen
May 11, 2012 bsnes-purify(6)