Sponsored Content
Top Forums UNIX for Dummies Questions & Answers finding files in unix and excluding certain folders Post 302555044 by Corona688 on Tuesday 13th of September 2011 05:13:08 PM
Old 09-13-2011
Quote:
Originally Posted by johnstrong
Wow that works, thanks much.
While I was waiting I experimented with the ls command.

ls -lR | grep UAP

this command seemed to work also. It ignored the folders with the dot in front it.
What do you think?
  • It finds files and folders by any user, not just 'john'.
  • It ignores any folder or file beginning with ., not just folders named .step
  • It matches UAP anywhere on the line, allowing potential false matches from user and group names with UAP in them
  • It prints headers and titles and totals which would make it difficult to use this output in a script.
  • It prints relative paths, not absolute ones, making it more difficult again to use the output in a script.

If it fits your needs it fits your needs, but it really doesn't do what you asked for at all.
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

tar backup with excluding some folders

Hi , I want to backup the root file system but the size of / is very huge so I want to exclude some file systems.Man page of tar says X option excludes files but I could not do that.I use this command $ tar -cvf deneme.tar -X exc . $ cat exc sql kkm I think there... (2 Replies)
Discussion started by: kudret_gulcan
2 Replies

2. Filesystems, Disks and Memory

Sun UNIX Files & Folders listing

Hi guys, i'm new to UNIX and only know a small amout about it, but have just had some changes at work which now require me to interact with and work on SUN Unix systems often. I have reasonable knowledge of PC's but hope that you will be able to help me with these questions. Part1. I would like... (3 Replies)
Discussion started by: Scrat
3 Replies

3. HP-UX

to get the timestamp of files from the files and folders in Unix

Hi, I had a directory and many subdirectories and files with in it. Now i want to get the timestamp of files from the files and folders recursively. :( Please help me to generate a script fort he above mentioned requirement! Appreciate for ur qick response Thanks in advance! ... (2 Replies)
Discussion started by: kishan
2 Replies

4. Linux

Finding folders/files in an RPM file

Is there a way to find a specifc folder or filename in an RPM archive? I have dozens to go through and the hunt-and-peck method is too slow. (3 Replies)
Discussion started by: ricksj
3 Replies

5. UNIX for Dummies Questions & Answers

Delete folders and files in it - UNIX

I need to delete a folder and files in it of yesterdays and simply put this in cron. Folder name - "2010-03-2010" File name - "eprod_06_23.dmp" and "eprod_06_23.exp" Actually this folder and file is been created by a script which takes a backup of DB everyday.Thats why it creates folder and file... (3 Replies)
Discussion started by: j_panky
3 Replies

6. UNIX for Advanced & Expert Users

Copy Structure excluding some folders

Hi I want to copy the structure from one place to another. -> cd /hol/; -> find . -type d | cpio -pvdm /abc/cat; while copying the structure I want to exclude some directories like test1 and Test. I have read somewhere that this can be done with -prune option. Could anyone... (2 Replies)
Discussion started by: soumodeep123
2 Replies

7. Shell Programming and Scripting

Help to move folders, subfolders and files from unix to windows

Hi Unix Gurus, I am able to copy only files that exist in the parent folder. My parent folder has sub folders and within sub folders there are lots files. I need to copy folder, sub folders and files from Unix to the remote windows SFTP location. The directory structure is something like... (1 Reply)
Discussion started by: shankar1dada
1 Replies

8. UNIX for Dummies Questions & Answers

Finding new file, but excluding directory..

hi, I need to find files that have been created less than 3 days ago. However, I need to only search specific directories. I've searched about the net and found some useful commands such as : find . -type d -name 'dir_to_exclude' -prune -o -print -mtime -3 however I cannot get it... (2 Replies)
Discussion started by: horhif
2 Replies

9. 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

10. Shell Programming and Scripting

Finding duplicates in a file excluding specific pattern

I have unix file like below >newuser newuser <hello hello newone I want to find the unique values in the file(excluding <,>),so that the out put should be >newuser <hello newone can any body tell me what is command to get this new file. (7 Replies)
Discussion started by: shiva2985
7 Replies
PYKARAOKE(6)															      PYKARAOKE(6)

NAME
pykaraoke - free CDG/MIDI/MPEG karaoke player SYNOPSIS
pykaraoke DESCRIPTION
pykaraoke is a free karaoke player for Linux, FreeBSD and Windows. You can use this program to play your collection of CDG, MIDI and MPEG karaoke songs. PyKaraoke Features: * CDG (MP3+G, OGG+G) playback - Play standard CDG karaoke files * MIDI (.MID/.KAR) playback - Play MIDI format karaoke files * MPEG playback - Play karaoke songs and movies in MPEG format * Playlist - Queue up songs, sit back and enjoy * Searchable song database - Easily find your songs from the main screen * Search inside ZIP files - Play MP3+G/MIDI files wrapped in ZIP files * Cross-platform - Runs on Linux, FreeBSD and Windows USAGE
The player starts in Search View. From here you can search for songs in your song database. You need to first set up the database, however, by clicking "Add Songs". To set up the database, add the folders that contain your karaoke songs. Select which type of files you are interested in adding to the search database (CDG, MPG etc). Click "Look Inside Zips" if you also want to search inside any ZIP files found in the folders for more karaoke songs. When you have finished adding folders, and setting your preferences, click "Scan Now" to start building the database. This can take some time but only needs to be done once. The search engine then searches your database, rather than searching the hard disk every time you search for a song. Once you have set up your database, clicking "Save" will save the database and settings for the next time you run the program. (The infor- mation is saved in a .pykaraoke folder in your home directory). If you get more karaoke files, don't forget to rescan the hard disk and build the database again. Otherwise the new files won't be visible in the search engine. With your database set up, you are ready to start searching for and playing your karaoke songs. From the main window, enter the name of the song you would like to find and click "Search". This will populate the Search Results panel below with the matching song files. From here double-clicking a song plays it directly. You can also add the song to your playlist by right-clicking on the song and using the popup menu. There is also a simple explorer-like interface that can be selected using a drop-down box on the main window ("Folder View"). Using this you can also play songs directly or add them to the playlist, by right-clicking on the song and using the popup menu. In the right-hand side of the window you will find your playlist. Songs can be added from the search results or folder browser, until you have built up your playlist. Once ready, click on the song you would like to start with. When the song is finished playing, the next song down the playlist will automatically start playing. You can also delete single songs, or clear the entire playlist by right-clicking on an item in the playlist. pykaraoke is actually a GUI frontend which controls three libraries, pycdg for CDG files, pykar for MIDI/KAR files and pympg for MPEG files. If you do not wish to use the GUI you can actually start a player directly from the command-line (or by associating file-types in your operating system). SEE ALSO
You can find PyKaraoke's home page at: http://www.kibosh.org/pykaraoke/ AUTHOR
PyKaraoke was written by Kelvin Lawson <kelvinl@users.sourceforge.net> and William Ferrell <willfe@gmail.com>. This manual page was written by Miriam Ruiz <little_miry@yahoo.es>, for the Debian project (but may be used by others). july 16, 2006 PYKARAOKE(6)
All times are GMT -4. The time now is 01:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy