Is there a command to convert a directory of .sid files to .mp3 files? - directory

I am looking for a command to convert a directory of .sid files to .mp3 files. Thank you.
(Sid files are named after the Sound Interface Chip found in Commodore 64 personal computers.)

Yes, but you need two conversion utilities: SID to WAV and ffmpeg ;
this approach needs two passes, first in wav format and then in mp3.
You did not specify a target language, but a loop over all *.sid files in your directory is very simple to do, in Bash or Powershell.

Related

How to convert .xls or .xlxs file to csv file without any plugins or tools using Unix command

I have to convert .xls or .xlxs file to .csv file without using plugins or tools using Unix Command
Is their any way to do this ?
I Tried to do like this below ...But not working
Change the characterSet code from .xls file to UTF-8 encoding
Then create file again with extension change
cp temp.xls temp.csv
It is possible, but you need to realise that an *.xls file is a zipped directory structure (just unzip such a file, using Winzip or 7-zip). The unzipping can also be done using UNIX commands.
But what then? The directory structure is quite complicated to understand, and in order to create a script or a program which can do this (without using any external tools) is a tremendous work, so I'd propose you, either to use external tools anyway, or to make sure the files you receive already are CSV format.

Reading files present in a directory in a remote folder through SFTP

TLDR; Convert the bash line to download sftp files get Inbox/* to c++ or python. We do not have execute permissions on Inbox directory.
I am trying to read the files present in a directory in a remote server through SFTP. The catch is that I only had read and write permissions on the directory and not execute. This means any method that requires opening (cding) into the folder would fail. I need to read the file names since they are variable. From what I understand ls does not require execute privs. If I can get a list of files in the directory then reading then would be fine. Here is the directory structure:
Inbox
--file-a.txt
--file_b.txt
...
I have tried libssh but sftp_readdir required a handle of the open directory. I also looked at paramiko for python but that too requires to open the directory to read the file names.
I am able to do this in bash using send "get Inbox/* ${destination_dir}". Is there anyway I can use a similar pattern match but on c++ or python?
Also, I cannot execute bash commands through my binary. Does anyone know of any library in python or c++ (preferred) that would support this?
I have not posted here in a while so please excuse me if I am not following the formatting. I will learn from your suggestions. Thank you!

How to convert dsPIC33 HEX file to binary?

I have a HEX file for my application on dsPIC33, now I want to send the file over to microcontroller via serially.
As the HEX file generated by the compiler are intel hex format, I tried to convert it to binary with arm-none-eabi-objcopy, which, as expected does not work.
Is there any tool to convert HEX or ELF files to raw binary for dsPIC33?
You could use the MPLAx IPE.
When you load your .hex file and bulid an environment you will get an .bin file,
So I have to look through/read .hex files on occasion, much easier when they are in .bin. If you have a linux host, install hex2bin, and then just simply execute "./hex2bin <filename.hex>", then use something like GHex to read through the file.

How to convert folder to jar in window

I want to convert folder to jar,
is there any command for cmd in window or good online converter to convert it?
Thanks in Advance.
a jar file is for a java program, if you need to compress a folder into a single file, try zip. You should be able to do it in windows.
https://support.microsoft.com/en-us/help/14200/windows-compress-uncompress-zip-files
You can install 7zip if you need a command line client.

Unzipping Multiple zip files using 7zip command line

I have a number of zip files located in a single folder eg:
file1.gz
file2.gz
file3.gz
file4.gz
I'm looking for a way of automatically unzipping these using a batch job to a similarly named folder structure so for example the contents of file1.gz will drop into a folder named file1.
I have been told that 7zip would address my issue but can't figure out how to go about it.
Any help is greatly appreciated.
Which OS are you using? This is something you'd do using the shell's capabilities, you could write
for A in *.gz ; do gunzip $A ; done
I'm using gunzip here, because .gz is actually gzip, But you can use the 7zip CLI tool as well, of course. If you're on Windows, then I recommend installing a real shell (the standard cmd.exe can not really be considered a shell IMHO).

Resources