Tag Info

New answers tagged

0

Using wildcards with folders and not files is slightly tricky with WinRAR, but can be done like this: rar a -n*\ay2015m04d21h*\* "C:\test.rar" "C:\Test\Archiv"


2

7z a D:\HTM\comp.7z D:\HTM\*.htm You don't need the -o since you're creating an archive. You also fail to specify which files need to be included in the archive (D:\HTM\*.htm). The output is the complete name of the archive (D:\HTM\comp.7z). The quotes aren't needed here, since there are no spaces in the filename(s).


0

According to the manual, you should be able to specify a combination of state and action with the -u switch to precisely control in what cases you want the archive to be updated: As an example demonstrates, 7z u c:\1\exist.7z -up0q3x2z0!c:\1\update.7z * -ms=off creates a new archive update.7z and writes to this archive all files from the current directory ...


0

Delivering to a directory only to have an elaborate system to monitor that directory is rather awkward. If your Java program can read standard input, just pipe directly to that. :0 | /path/to/java -crash -boom -bang -coredump=always


2

A solution to your issue would be to use your procmailrc file to save a copy of the mail to a Maildir format. Maildir keeps each mail as a separate file, which solves your one problem. Additionally, if you copy the mail it will still go the the other existing locations: your procmailrc would have the following (or similar lines) near the top: :0c: ...


0

Use a shell function: myunzip() { unzip "@$" -x '__MACOSX/*' } myunzip foo.zip


8

Suppose you have a split RAR with parts numbered up to 12 (i.e., filename.r12 as your last file) and you want to be extra careful not to remove any other files. Assuming bash is your shell and you're using version 4 or higher (bash --version to check), you can create an explicit list of files easily with brace expansion: rm filename.rar filename.r{01..12} ...


6

Depending on the number of .r0* files you have you could replace the * with a ? this will remove files that have .r0 and 1 other character. So it will remove rabbid.ranger.robot.r01 but not rabbid.ranger.robot.r010 Generally I would use it as such: rm filename.r??


4

You can use the find command; from the working directory: find . -type f -name "filename.*" -exec rm {} \; This searches only for files that match, directories are excluded. It may be a good idea to first test the command with ls rather than rm to make sure it’s returning the results you desire. find . -type f -name "filename.*" -exec ls {} \;


1

Nevermind. I found a program called Cameyo that can do all of this for me. Thank you! EDIT: pardon me, here are the details. Cameyo is a free program (itself portable) that lets you capture an install of any software and turn that software into a portable program. Cameyo likes to run in a fresh virtual machine (clean registry, no background noise), so I ...


0

Your command is wrong. To create a 7zip file from txt files you would do: C:\Users\Sam>7za a -t7z files.7z *.txt The command you wrote would be looking for an existing compressed file called file.txt.7z and add file.txt to it.



Top 50 recent answers are included