General :: Extracting Latest Tar File From The List?

Jan 25, 2010

I have a bunch of tar files in a folder with the name in 'file_name.MMDDYYYY.HH.mm.SS.tar' format. I need to write a shell script that picks latest and greatest of the above tar files and extracts it to a particular folder

View 1 Replies


ADVERTISEMENT

General :: Does The Latest Ubuntu Download (.iso File) Contain Latest Fixes

Aug 5, 2011

If I go to the website and download the ISO file is it the exact same one that was released in April or will it contain the latest patches (e.g. security fixes, etc) that have been release since then? If it doesn't I suppose I'll have to download the entire ISO file, install the OS, and then have another couple hundred MB to download which is not what I'd prefer.

View 2 Replies View Related

General :: Extracting Tar File: Cannot Open: No Such File Or Directory?

Jul 19, 2010

I have a remote Debian 5 machine on which I'm trying to extract a tar-file (Django 1.2.1, but that's unimportant). The first 1300 or so files extracts just fine (of about 2800 in total), after which errors liketar: Django-1.2.1/tests/urls.py: Cannot open: No such file or directoryshows up for the rest of the files, finally ending up with atar: Error exit delayed from previous errorsI use the commandtar xzvf Django-1.2.1.tar.gzI've also tried with sudo (but I'm extracting in my home directory, which I should obviusly have permissions to use without). I've tried gunzipping first (runs flawlessly) and then running tar xvf, but to no avail. I've fetched the file using wget:

View 1 Replies View Related

General :: How To Install Firefox After Extracting ARC File

May 24, 2010

I am really trying to learn the heart of linux, and not rely on gui's and package managers for everything. I am trying to download firefox 3.6. I downloaded the arc file, and extracted it to my home folder, but I don't know what to do next. I am also clueless as to how to install tar or tar.gz files, and tell them where to go, etc. Firefox is the priority question here. I am sure I can get it from the package manager, but I want to learn to do it with the arc files, and tar files, etc, and not rely on the gui for everything like in Windows. I am a Linux newbie, converting to Linux for hobby and educational purposes, but I have no direction, or no sense of where to go, or how to learn. I am running Kubuntu 10.04 LTS.

View 10 Replies View Related

General :: Extracting Text From File (Apache Access Log)

Apr 23, 2011

There are some log files that I wish to get some information from (Apache Access Log) but it is huge! All I need as of right now is any information from date and time A to date and time B. What commands can I use to extract this information from the access_log and put it into another file with just that information? I created a file called "access_info" by doing
Code:
touch access_info
but I was not sure where to go from there.

View 13 Replies View Related

General :: "can't Find Specified Sfx Module" When Trying To Create Self Extracting File With 7zip

Oct 19, 2010

I am trying to create a self extracting file for Windows from Ubuntu 10.04 using 7zip.

I tried these commands:

7zr -sfx7z.sfx a output.exe *.txt
7zr -sfx/usr/local/etc/7z.sfx a output.exe *.txt

Both show this error:

Error: can't find specified sfx module

System error: E_FAIL

I have all the .sfx modules on /home/username/.sfx/ because I use them previously with "rar" and it worked fine, but it's not working for 7zip. I also copied 7z.sfx to /usr/local/etc/ to test the second command like shown here but I get the same error.

View 1 Replies View Related

General :: Extracting A Bzip2 File Throws "Can't Guess Original Name" And Does Not Extract Separate Files

Dec 13, 2010

I made a bzip2 file by

bzip2 -c /home/os/picture1 > /home/os/Desktop/pic.image

bzip2 -c /home/os/picture2 >> /home/os/Desktop/pic.image

But now extracting pic.image by bzip2 -d /home/os/Desktop/pic.image returns

bzip2: Can't guess original name for pic.image -- using pic.image.out

And then it just creates one file pic.image.out.

How do I access picture1 and picture2 from pic.image?

View 2 Replies View Related

Fedora :: Extracting Tar Gz File ?

Aug 9, 2011

My OS is Fedora 14 - 64bit. I want to extract and install this file "LEXMARK-INKJET-LEGACY-wJRE-1.0-1.x86_64.rpm.sh.tar.gz". At the moment this is in the download box in the top left corner of my monitor.

I have tried several ways, but all I get is Command Line Output. Gzip:stdin: unexpected end of file./bin/gtar: unexpcted EOF archive. /bin/gtar: error is not recoverable: exiting now.

View 1 Replies View Related

Ubuntu :: Error While Extracting ZIP File Using GUI

May 8, 2010

I have this file that is in ZIP. I can open it and browse the files inside via archive manager. But extracting it gives me an error. When using GUI it says that 'ERROR while extracting files'
and in command line when I command:
unzip -q myfile.zip

It display this errors

file #2109: bad zipfile offset (local header sig): -2122072556
file #2110: bad zipfile offset (local header sig): -2121511988
file #2111: bad zipfile offset (local header sig): -2121511886
file #2112: bad zipfile offset (local header sig): -2121375823
file #2113: bad zipfile offset (local header sig): -2121310073
file #2114: bad zipfile offset (local header sig): -2121282474
file #2115: bad zipfile offset (local header sig): -2121107851
file #2116: bad zipfile offset (local header sig): -2121015601
file #2117: bad zipfile offset (local header sig): -2120957317
file #2118: bad zipfile offset (local header sig): -2120906286
file #2119: bad zipfile offset (local header sig): -2120906193

I just need to find a way to extract my file.

View 4 Replies View Related

Ubuntu :: Error Extracting File From Zip

Oct 9, 2010

I'm trying to extract a file from a zipped archive, and receive an error message saying "caution: filename not matched:".

I suspect the route cause of this is that the original filename contained accented characters (which now show as question marks in the zipped filename). I've tried renaming the file in the archive, but get the same error.

I'm using 9.10 (Karmic).

View 3 Replies View Related

Red Hat / Fedora :: Extracting Data From A Xml File Using C?

Feb 11, 2010

I am trying to extract data from the xml file using c coding. here is the sample code. this code gets compiled with errorfree. but the call back functions start and end are not invoked. coding:

#include<stdio.h>
#include<string.h>
#include<expat.h>

[code]...

View 1 Replies View Related

General :: Perl Script For Latest File From Folder

Jul 31, 2009

i want to get the latest file name from a directory, how can i do with perl script. In other words, how to sort the contents of a folder on the basis of time and capture the latest file using perl script,

View 6 Replies View Related

General :: Tail The Latest Log File In One Command Line?

Feb 1, 2010

I want to tail the latest log file in one command line. I dont know what command/option to use for the same.

View 5 Replies View Related

Ubuntu :: Install Firefox Tar.bz2 File After Extracting?

Apr 26, 2010

ish but I did manage to right-click the Firefox tar.bz2 file and choose to 'extract here'...now I've got the new extracted folder on the desktop but I'm lost as to how to run the installation of the 3.7 alpha 4 release.

9.10 Wubi with XP until 10.04
Google Chrome
Widmer Drifter Pale Ale
Tommyknocker Pick Axe Pale Ale
1992 Davies Washburn N4 w/ Suhr SSV/DSH+ pups
Jazz and Prog Rock, Dream Theatre & Porcupine Tree

View 9 Replies View Related

Programming :: Extracting Block Of Text From Log File?

Nov 22, 2010

I have a log file and want to extract all blocks of text that start with START and ends with END. Each block is 5 lines.

Code:
--- START
blah blah blah

[code]...

View 1 Replies View Related

General :: Processing Script That Find Latest Version Of Each File

Mar 5, 2011

I want to write a script. I have the basic form working... but I would like to add some advanced features. I have a list of .zip files that have a version number in the filename (i.e. sudoku-134.zip, sudoku-176.zip, sudoku-203.zip, etc). I would like to have a script that will find the latest version of each game, and unzip it. I want the next to latest version left untouched. But anything older, I would like the unzipped folder deleted (But leave the .zip file)

Here's what I have so far:
Code:
#!/bin/bash
cd /var/www/vhosts/server.com/httpsdocs/games/$1
for file in `ls *.zip`; do
if [ -d ${file%.*} ]; then
echo
else
mkdir ${file%.*}
cd ${file%.*}
unzip ../$file > /dev/null
cd ..
echo 'date' $file >> /var/www/vhosts/games4roku.com/private/$1.log
fi
done
I can call the script with "game-unzip public" to unzip all the public games.

Here's my files:
Code:
sudoku-134.zip
sudoku-134/
sudoku-176.zip
sudoku-176/
When I add the latest version, sudoku-203.zip, I want it to unzip it to ./sudoku-203/ and rm -rf sudoku-134

View 2 Replies View Related

General :: Where To Download Latest Release Open Office DVD .iso File

Sep 4, 2009

About a couple of days ago I'm sure I saw that Open Office was offering a DVD file download of their latest version. It was including versions for Win. Mac and Linux all on the one DVD. Now, after buying a DVD burner for my 'puter, I have been unable to find that information again.

View 4 Replies View Related

Ubuntu Multimedia :: Extracting Audio From MP4 Video File

Jul 17, 2010

I'm trying to extract the audio from an mp4 video file and convert it to mp3 using ffmpeg. The problem is that the resulting audio file is only 3m2s long, whereas the video file is 8m15s long. Anyone know why the audio file is being truncated? Am I doing something wrong? Apart from being truncated the mp3 file plays perfectly. Here's what ffmpeg has to say about the video file:

Code:
Seems stream 1 codec frame rate differs from container frame rate: 59.83 (59834/1000) -> 29.92 (359/12)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Part1.mp4':
Duration: 00:08:15.60, start: 0.000000, bitrate: 541 kb/s
Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16
Stream #0.1(und): Video: h264, yuv420p, 1152x720, 29.92 tbr, 29.92 tbn, 59.83 tbc

And here's the command I'm using to extract and convert the audio:
Code:
ffmpeg -i Part1.mp4 -ab 128k Part1.mp3

View 9 Replies View Related

Programming :: Extracting Last Section Of File (Separated By Hashes)

Feb 22, 2011

I have a file which looks something like this:

##########
some
text
text also includes empty lines
##########
some
more
text
##########

Basically all sections are separated by 10 hashes and I need to somehow only print all lines in the last section (the "some more text" part in the example above"). I tried all kind of things with sed and awk but I didn't find any way to identify the last "section".

View 8 Replies View Related

Debian :: Mounting .iso Image Versus Extracting Data From .img File?

Feb 28, 2010

I use Lenny, and was trying to mount a .iso image, supposedly a cd imagem.

[code]....

This is what I get from dmesg | tail:

debian:/home/zac/cscd# dmesg | tail
[ 1811.505199] floppy0: disk absent or changed during operation
[ 1811.505207] end_request: I/O error, dev fd0, sector 0

[code]....

I did a little research on the web and it seems that this file is not really a cd image, but simply data in a .img file. What do you think of that?

debian:/home/zac/cscd# file cscd3.iso
cscd3.iso: data

Some people recommend to extract the data via the dd command, but it didn't seem very safe for me to do that!

[URL]

is it possible to extract the data into a directory (instead of a device) using dd? This file is supposed to be a software. I wanted to run it on wine by keeping it mounted on a mount point in my file system. Does it make any sense to try to do this if the file simply isn't a cd image?

View 6 Replies View Related

Software :: A Tool For Extracting File Names From *.torrent Files?

May 24, 2011

I need to know file names in torrent without opening torrent client. Know and extract for further actions.

View 2 Replies View Related

Ubuntu / Apple :: Extracting Specific File From Mac Time Machine Drive?

Mar 5, 2011

I am trying to extract just a few files/folders from a Time Machine backup, but can't seem to find them. The drive is automatically mounted in Ubuntu, and am able to access after enabling view hidden files, the HFS+ Private Data Directory. But that is a jumbled array of thousands of numbered folders, with each taking a fair amount of time to open on this aging Dell running 10.10.

I've tried running the standard Places - Search for Documents, with 'Show hidden and backup files' enabled, but that won't pull up any of the search times I'm going for (and seemingly won't find anything at all on the drive). So, is there any way to decipher the directory tree so as to be able to access this data from Ubuntu? Or perhaps a file embedded somewhere in there that lists out the original structure, so that I can use it as an index to see what number correlates to what originally named folder?

View 2 Replies View Related

General :: List Of Directories In A File?

Apr 3, 2011

I have generated a list of directories that I would like to use ls and grep on, but it is not working. I am using the commandCode:cat directories.dat | xargs lsand I get a whole lot of these errors:Code:ls: cannot access ./foo/bar/baz/grault/*: No such file or directorybut when I try the directories manually one at a time I find that they all exist and all have files in them. Same thing if I try to grep anything. What is going wrong?

View 6 Replies View Related

General :: Samba File List Ordering?

Aug 20, 2009

I've published a samba share on a Ubuntu 8.10 server, and mounted the share on a windows box. For some strange reason the files are not sorted by file name (nor by any other sorting type) if I list them from the Windows command line (dir). I could always use the "dir /on" parameter, but I hope there's a way to make samba sort the files for me

View 4 Replies View Related

General :: Create Directories From A File List?

Jun 30, 2011

I am trying to write a script to pick the directory name from a list of file. Here is a detailed picture.Have a file name LIST which contains the follwing for example/apps/oracle/product/test1/apps/oracle/product/test2/apps/oracle/product/test3I need a script that reads these line from LIST and creates foldersin /apps/oracle/product/test1/backup/date/test1 after reading the first line
/backup/date/test2 after readin the second line/backup/date/test3 and so on.

View 15 Replies View Related

General :: Squid Uploaded File List?

Aug 10, 2010

I am using endian firewall 2.4 and squid 2.6, everything is working fine for me. In squid report i am getting download list by user or IP based. Now my question is, is this possible to get user based uploaded file using HTTP POST. Is there any configuration have to be done is squid.conf, if answer is yes then please give me the what is configuration i have to give. Example: if suppose user uploading a image file into facebook.com, i want to track the file name and which IP address and then where its uploaded.

View 1 Replies View Related

General :: List Installed Packages In Debian From A File?

Jun 25, 2010

I have a system that will not boot as /usr has been destroyed and I would like to get a list of installed packages before re-installing. I know that it's possible to get this using dpkg or apt, but I cannot run those.

Where in the filesystem is this information stored and what's the best way to get a list of installed apps from the files?

View 2 Replies View Related

General :: File Command + Total Retrun List?

Oct 30, 2010

With file command we can get the file type. File returns a unique answer for each file type. I want to get the total list that file can return for linux & solaris. For example, I have a partial list of file's return output. Unfortunately I can't see the total list from manual page.

ASCII C program text
ASCII C++ program text
ASCII C program text, with CRLF
ASCII C program text, with very
ASCII English text
ASCII English text, with CRLF line

[Code]...

View 1 Replies View Related

General :: List Of RPM In Text File - How To Check Installation

Dec 16, 2010

I have a text file with a long list of RPM's. I need to check if each RPM is installed. I'm sure I can cat out this file and run "rpm -qa" against it, but I'm having trouble with the syntax right now...

View 5 Replies View Related

General :: Backup A Configuration File Like Sources.list?

Feb 11, 2011

It's always a good to backup a configuration file like sources.list before you edit it. To do so, issue the following command: sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup Where does it backup to and how do I access it? I want to put the backup on removable disk or upload it

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved