Ubuntu :: Sign Multiple Files At Once With Jarsigner?
Jul 29, 2010
how I would sign multiple files in ~/sign/unsigned and output them to ~/sign/signed with the orignal file name? The two issues I'm facing are
A.) I don't know how to sign all the files at one time in a folder using signapk or jarsigner
B.) When I do sign and individual file I don't know how to keep the same name from input using *.file (the wildcard) and keep the original name in the output.
There are 71 files i need to sign and make sure they all are signed with the same key at once. Individually signing them one by one would take too long because after I sign them individually I need to go and rename the signed file with the original name.
Here is the code I use to sign an individual apk file:
cd ~/sign/unsigned
java -jar /home/andrew/sign/signapk.jar /home/andrew/sign/certificate.pem /home/andrew/sign/key.pk8 ~/sign/unsigned/*.apk ~/sign/signed/signed.apk
how I can keep the original input name to the output without having to rename them and then how could I sign multiple files at once?
I have many pdf files which contain "%" sign also in the name. I want to rename that all files by replacing "%" to "-" Its hierarchy of many files and folders. Is there any solution to do this at one time? OR any script for this?
I have a problem my ubuntu is the latest distro but the shiftkeys are not working like when i whant an @ sign i cant make that sign the keybaord layout has been changed i even have done most of the solutions found on the site and no use.
when ever i try to sign in to my messaging system it gives me this message and wont let me sign in,< Received unexpected response from [URL] useTLS=1 is not allowed for non secure requests.>
I'm using Ubuntu 10.04 64-bit. I created a PGP key pair using Applications|Accessories|Passwords and Encryption Keys. I used DSA El Gamal as the encryption type and a key strength of 2048 bits. However; when I right click on a file or folder I don't see the Encyrpt... and Sign options.
I often use the rpl command to make changes to multiple html files at once. For example:
rpl -R '<br />' '<br /><br />' mydirectory However, I haven't been able to figure out how to change multiple lines. For example, let's say I want to change all occurrences of :
I have Ubuntu 9.10 installed on my laptop. every time I save some files in my desktop a sign of "lock" is appeared attached to the file's icon. Then by using this command I can remove it:
"chown pc *"
What can I do if I want not to see that sign (the sign of a lock) anymore?
I often have a need for printing multiple files. Therefore I found a Nautilus script that would allow me to do this. However often many of the files a Microsoft Office doc-files. Since I do not really want to convert every single file (as that would defeat the purpose of bundle printing) I tried to figure out how to print these, as the commands "lpr" og "cupsdoprint" cannot process these. I have found a printing command using the CLI part of OpenOffice, but I cannot get it to do multiple selected files.
The command is:
Code: soffice -p "/path/of/file.doc"
How can I use this in a Nautilus Script so I can print multiple files?
I would like to have multiple php.ini files for multiple sites.
I've a production site (word wide available) and a test site (available to some selected IP-addresses). I would like to set some different PHP settings for the test site, for example, 'error_reporting' and 'display_errors'.
Is this possible? I'm not looking for some CGI hack, unless it wouldn't work any other way.
I made some files belong to root, so that my sister couldn't read them while she was staying with me, there were about 40 files altogether but I did them all at once by change the permissions of the folder and clicking "apply Permissions to enclosed files" but now I want to change them back to belonging to my user account so Opened a gksudo nautilus windows and I went on folder properties and set the permissions to [user] and clicked apply to enclosed files, but it only did the folder. I tried selecting all the files and changing them all at once that way but it won't let me, how can I make the files belong to me again, other then one by one? I dont know how to use the CLI that much.
I pushed the browse button and selected the first picture, but I was unable to select all of the pictures. This happened again on an email attempt to do the same thing.
In the gnome environment, I am able to select the first then hold down shift, and select the last pic and all the ones in between will be selected. I expected this behavior when selecting for upload, but it didn't happen. I had to select each one, one at a time and upload each one.
I tried making a folder to upload the whole folder and that would not select at all.
I would like to create AAC files using NeroAAC.I have directories of wav files I need to encode and I cannot figure out how to do this with the neroAacEnc command on the command line. The program will not accept neroAacEnc -if *.wav -of *.aac as a valid command, though FAAC, LAME and OggEnc will accept similar commands.I lack the coding skills to write a proper script for it. I'd just like to be able to type in a command and have an entire directory converted from wavs to aacs with the Nero codec. Is this possible? If not, can it be programmed? How?
I have a directory tree with lots of folders. I need to gather all files of same type, say .txt, and place them in a different folder all by themselves.
I know I can use the mv command, but it won't let me go through all the subdirectories of my folder, just the current one. How can I search through all subdirectories for all .txts or whatever and move them to a folder of my choosing?
How I could rename multiple jpg files. Say I copied IMG0001.JPG until IMG0134.JPG from my camera, and want to rename IMG0001 until IMG0064.JPG to 'party01.JPG' untill 'party64.JPG', etc. In windows there was a stupid wizard to rename files when you copied them onto your HD from a camera. Is there any good way to do something similar in ubuntu?
I have a folder full of image files. They are large files and they only need to be large icon size...manybe 2 inches wide. Is there a way to convert them without editing each file individually?
I am quite new to script programming and I am facing an uphill task to rename files in one folder. I have gone through similar posts but most of them deal with renaming files by changing the file extensions.Problem : I have a folder which contains files like bild01.jpg,bild02.jpg. There are more files in the folders which should remain untouched. I want to rename these 'bild' files as follows:
bild01.jpg -----> 1c.jpg bild02.jpg -----> 2c.jpg bild30.jpg------>30c.jpg I would like to create a script as: #!/bin/bash npics=`ls -1 bild*| wc -l`
I am trying to search for a term in a bunch of files. Is there a way to do this. I would like to search all the files in a directory and its subdirectories for a specific term.
The first command goes well by generating utf8 files from all txt files, but the second command fails with error message. Could someone enlighten me about the mistake in the command and share a workable solution?
I am trying to replace a string (url) in 100s of files located in different directories. I found the sed command but cannoy get it to work. First I locate the files that have the string in them:
Code: grep -ilr 'url' * this works correctly and displayed the location of the files that have the string: Code: 1/index.php 2/index.php
Now I need to replace the string so I combined it with sed:
I read a lot of PDF documents using the default Document Viewer and I am wondering whether there is an application or a hack to have several PDF files concurrently open in one application (maybe like tabs in a browser?) since switching between one application to a specific PDF always takes time.(Especially with more than 4 PDF files concurrently running.)
Could someone help me find a way to rename a file to a different name containing parts of its old name?
For example:
Original file name: filename1.abc.xyz.some.other.stuff Final file name: filename1.abc.xyz
The length of the file name is not constant. the abc.xyz is not constant but that format is (three numbers.three numbers) the .some.other.stuff is not constant and its what i want to get rid of
command line, I have a server for work that I ssh into and I need to be able to find multiple files (they have the leading text just the date identifier changes) and then zip the files (with bzip) them and then finally scp(Secure copy) them to another server.
These files are always in the same directory and this is a daily task and just want to make into a script that I run once I am logged into the remote server.
How can I set specific ID3 tags for multiple files? For example, I would like to set all files in a directory to the same album. (directly setting the album tag for files in a directory to the directory name would be even better)