Sponsored Content
Top Forums Shell Programming and Scripting Copying files excluding some files Post 302702271 by arijitsaha on Tuesday 18th of September 2012 05:03:59 AM
Old 09-18-2012
The files will be generated randomly with those numbers.
What i want to do is the user will pass two file names like abc-bin.00004 and abc-bin.000010 and the script will copy all the files in between those passed filenames exclding the two filenames passed.

The user can pass any two file names.Need to keep them dynamic.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Excluding Old Files on AWK !!!

People, I'm sorry because my english is not very good, I'm from Brazil and I need to create shell script that exclude old files. How can I do this? I have an AWK script that works for Unix TRU64 (DIGITAL) and the same script does not work for SUN SOLARIS 5.8. Follows the script fragment: ... (2 Replies)
Discussion started by: alexalvarenga
2 Replies

2. Shell Programming and Scripting

search for files excluding binary files

Hi All, I need a solution on my following find command find ./.. -name '*.file' -print BTW This gives me the output as belows ./rtlsim/test/ADCONV0/infile/ad0_dagctst.file ./rtlsim/test/ADCONV0/user_command.file ./rtlsim/test/ADCONV0/simv.daidir/scsim.db.dir/scsim.db.file... (2 Replies)
Discussion started by: user_prady
2 Replies

3. UNIX for Advanced & Expert Users

listing files excluding files from control file

I have a directory named Project.I have a control file which contains valid list of files.I would like list the files from directory Project which contains files other than listed in the control file. Sample control file: TEST SEND SFFFILE CONTL The directory contains followign... (15 Replies)
Discussion started by: ukatru
15 Replies

4. UNIX for Advanced & Expert Users

copying of files by userB, dir & files owned by userA

I am userB and have a dir /temp1 This dir is owned by me. How do I recursively copy files from another users's dir userA? I need to preserve the original user who created files, original group information, original create date, mod date etc. I tried cp -pr /home/userA/* . ... (2 Replies)
Discussion started by: Hangman2
2 Replies

5. Shell Programming and Scripting

cp -Rp excluding certain files?

Hi, I'm using cp -Rp to copy directories while preserving permissions. I want to exclude any ".lproj" files except for "English.lproj" and "en.lproj" from being copied, but the rest is copied as usual. Is there a way to do this (without using tar or other compression utilities) Thanks (3 Replies)
Discussion started by: pcwiz
3 Replies

6. UNIX for Dummies Questions & Answers

Count number of files in directory excluding existing files

Hi, Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time.. Thanks (3 Replies)
Discussion started by: ammu
3 Replies

7. Shell Programming and Scripting

Files copying - [ Listed files alone. ] - Shell script

Hi All, I am doing this for svn patch making. I got the list of files to make the patch. I have the list in a file with path of all the files. To Do From Directory : /myproject/MainDir To Directory : /myproject/data List of files need to copy is in the file: /myproject/filesList.txt ... (4 Replies)
Discussion started by: linuxadmin
4 Replies

8. UNIX for Advanced & Expert Users

Copying excluding some files and folders

I have a main folder. Inside that i have many(50) subfolders. In each subfolder, there are a no of large files(500 files ) present. I want to do copy operation for some files from some of the subfolders to /usr/tmp. I have the list of the subfolders and list of of files which i dont want to... (4 Replies)
Discussion started by: millan
4 Replies

9. UNIX for Advanced & Expert Users

Find all files in the current directory excluding hidden files and directories

Find all files in the current directory only excluding hidden directories and files. For the below command, though it's not deleting hidden files.. it is traversing through the hidden directories and listing normal which should be avoided. `find . \( ! -name ".*" -prune \) -mtime +${n_days}... (7 Replies)
Discussion started by: ksailesh1
7 Replies

10. Shell Programming and Scripting

Append string to all the files inside a directory excluding subdirectories and .zip files

Hii, Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories. Eg. file1: test1.log file2: test2.log file3 test.zip After running the script file1: string_test1.log file2: string_test2.log file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies
SPLAY(1)							Applications/Sound							  SPLAY(1)

NAME
splay - MPEG-1,2 Audio layer 1,2,3 file player SYNOPSIS
splay [-2VMfmrsv] [-k num] [-d dev] [-l list] [-t num] filenames... DESCRIPTION
Splay is the sound file player such as MPEG-1,2 Audio files. And you can play these files using list file. With pthread, it can play sound files smoother. OPTIONS
Splay has several options. -2 play MPEG-Audio files with half-frequency. If you use this option, you may play MPEG audio files with job which exhausts CPU very much. -f display info on played and remaining frames and time. -m force to mono. Play with mono even if file is in stereo. -r Repeat forever. If you -r with -s, list files are shuffled every time. -s Shuffle play. If you give list file or a number of files, Splay will rearrange them randomly. And with -r every time the order of files is changed. -v[v[v]] Verbose, Very verbose, Very very verbose. -M Play MPEG file from standard input. -V Show version number. -t num num of frames were saved during playing. When CPU is so busy and prevents splay from decoding, splay will play back using saved frames. This feature lets you do other job freely while listening to MPEG music. -k num num of frames are skipped at the start of playing. -d dev Change device file. Default device file is /dev/dsp. If you can't use this device file or you can output raw type data to file, you can use this option. If the first character of dev is / , dev would be considered as device file, If the first character of dev is - , dev would be considered as standard output, otherwise dev would be considered as normal file. -l list Select list file. http:// can be used. (e.g. http://localhost/abc.m3u) filenames You can put several files, and use http:// If you use -l option, these will be ignored. by Woo-jae Jung Aug 3 1997 SPLAY(1)
All times are GMT -4. The time now is 12:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy