08-09-2011
Searching inside a .gz file without gunzip
I have a set of folders inside which there may be n number of files. All those files are in .gz extension. Now I need to search all the files without gunzip them. Also I need to read the content of a file if the search pattern is found without gunzip them.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
While uncompress , gunzip filename.cpio.gz getting the fg. error
gunzip: filename.cpio.gz: unexpected end of file.
Whats the problem?
Size of this .gz file is 660mb .
Thanks, (1 Reply)
Discussion started by: Dolly
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I've searched this site and not found this already, so if I missed on my search, sorry.
I need to pass in a variable to a script, where the first three characters of that variable represent a calendar quarter, and the last 2 characters are the year. I.E. Q0105 for Q1, Q0205 for Q2, and... (3 Replies)
Discussion started by: Rediranch
3 Replies
3. UNIX for Dummies Questions & Answers
hey,
i need to use grep to search a bunch of header files inside a directory to return which file i can find the function i'm searching for in. how do i use wild cards to search through the files? i can only figure out how to search inside the directory, not inside the files that are in the... (4 Replies)
Discussion started by: kylethesir
4 Replies
4. Shell Programming and Scripting
Hi,
I have got a large number of .PDF files that are archived in .RAR & ZIP files in various directories and I would like to search for strings inside the PDF files.
I would think you would need something that can recursively read directories, extract the .RAR/.ZIP file in memory, read the... (3 Replies)
Discussion started by: lewk
3 Replies
5. Shell Programming and Scripting
Dear Unix Gurus,
I am new to shell scripting and in the process of learing.
I am trying to find whether a file name has today's date in MMDDYYYY format.
I am using the following code and it doesn't seem like working.
#!/usr/bin/ksh
today=$(date '+%m%d%Y')
echo today: $today
file=`find... (4 Replies)
Discussion started by: shankar1dada
4 Replies
6. Shell Programming and Scripting
without using conventional file searching commands like find etc, is it possible to locate a file if i just know that the file that i'm searching for contains a particular text like "Hello world" or something? (5 Replies)
Discussion started by: arindamlive
5 Replies
7. Shell Programming and Scripting
Hello,
Iam a newbies to Shell scripting. Iam trying to replace the date inside the file to new date. is there anyway that we can just use the pattern to search as "..." I have many files want to replace with the same date, and each file contains different date.
Thanks for your help.
... (2 Replies)
Discussion started by: Daro
2 Replies
8. Shell Programming and Scripting
i am working on unix - ksh
trying to unzip a .gz file
and when i executed the below, in my command prompt in ksh
gunzip abc.gz
it was throwing the message below:
gunzip: abc.gz: unexpected end of file -
pls advise what is the reason for it..i am pretty sure the .gz file had no issues. (3 Replies)
Discussion started by: billpeter3010
3 Replies
9. Shell Programming and Scripting
hi All,
i have a file called rsync-3.0.9.tar.gz, i have to unzip and then uncompress it. but at first while i am trying to unzip this file, it is giving me following error:
-rw-r--r-- 1 bravodba bravodba 7278458 Aug 19 08:26 rsync-3.0.9.tar.gz
bash-3.2$ unzip rsync-3.0.9.tar.gz
Archive: ... (12 Replies)
Discussion started by: lovelysethii
12 Replies
10. Shell Programming and Scripting
Hi,
I would like to ask if there is a way to search for a file inside a .tar.gz file without extracting it? If there is, is there a way to search for that file by date?
Thanks! (4 Replies)
Discussion started by: erin00
4 Replies
LEARN ABOUT DEBIAN
pykaraoke
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)