Tag Info

New answers tagged

2

You can use tar directly: tar -zcvf file.tar.gz log_*


2

Example Using zip(you can choose any other compression tool instead): find /path-to-dir -name 'log_*' | zip archive.zip -@ example: $ ls file log_1 log_2 log_3 Now zip all files log_* in zipped called archive.zip $ find . -name 'log_*' | zip archive.zip -@ adding: log_1 (stored 0%) adding: log_3 (stored 0%) adding: log_2 (stored 0%) Now ...


0

Try this instead (use sudo if needed): unlzma filename.tar.lzma then: tar xvf filename.tar To get more info about the file: lzmainfo filename.tar.lzma open-extract-lzma-under-rhel-centos-debian-ubuntu


1

An EOF (end of file) error means that the application was expecting there to be more data available, but it ran out of data and reached the end of the file. In the case of trying to decompress a tarball, most likely the tarball is corrupt. If you downloaded it from the internet, you could try downloading it again.


2

Only a typo in your command: tar cvf - * | ( cd /home/dev/build/mysource; tar xfp -) (use the piping symbol | instead of a colon :)


2

Your --lzma argument will work if you put it there but you have problems elsewhere. You need to put space between backboxhome.tar.gz/home/user, also you are creating a lzma compressed archive, not a gzipped one so rename the backboxhome.tar.gz to e.g. backboxhome.tar.lzma (it would be ok if you name it as gz but you would get a hard time remembering what it ...


1

This should do the job: $ tar -xzvf foo.tar && cd foo $ for i in *; do echo $i |sed -re "s/[A-Za-z0-9]+(.*)/name\1/"; done To do this in Python call: new_str = re.sub('[A-Za-z]+(.*)', r'\name\1', old_str); Here's another: $ for i in *; do echo name.${i#*.}; done


1

Try doing: echo I will not post any homework questions on Ask Ubuntu > newfile and then try again as it looks like newfile doesn't exist. (which the command above creates)


1

Your probably took the least easiest to install download (the bare source code version). It is always best to use the debian installer file if it is available since that installer is created for Debian and Ubuntu and will pick up dependencies itself from the software center. 1.5.53-1 (=14.04; Trusty and the same for 14.10; Utopic) can be downloaded from ...



Top 50 recent answers are included