Programming :: Trying To Convert Mass Of Textfiles From "Windows" To Unix Encoding?
Nov 6, 2010
What I am trying to do is to convert a mass of files from standard Windows text encoding to UNIX encoding(462 .txt files). After a bit of searching, I found this bit of code, changed the necessary parts, put in "Sleep" so I could see the output and ran it:
Code: #!/bin/bash
FROM=iso-8859-1
TO=UTF-8
[code]...
View 6 Replies
ADVERTISEMENT
Mar 23, 2011
I want to convert many text files(copied from windows workstation) into utf-8 encoding file. Yes, iconv is available for it. However, I have to give source file encoding at the command line parameters! The problem is, at most case, I am not sure the source encoding of it. And, I also want to use a script to convert many files recursively.
View 2 Replies
View Related
Jan 3, 2010
I have a load of XViD videos and I want to re-encode them into x264 - when I say a load, I mean over 300, anyone have any programs they reccomend to do it?I want to make them into those "future-sized movies" (700mb --> 300mb, 170mb --> 95mb, 350mb --> 150mb), what settings should I use? I want to keep the quality of the originals intact, along with the video sizes if possible, but if not, I don't really mind, just make them smaller. Here are the settings some people use in windows:oh yeah, one last thing - fast encoders please, I know it'll take a good while, but I want it to take as little time as possible please
View 4 Replies
View Related
Mar 21, 2010
I search a tool to convert my media files to ogg-files. I've managed to to do so with VLC - but only file by file. Is there a way to just convert whole folders to ogg. Even if the files contained are in a lot of different formats?
View 7 Replies
View Related
Jun 13, 2011
I want the LAMP server to present an upload page to the user The user uploads a zip file containing txt files which are tables in clear-text format The server : opens the zip validates the text files (going to skip this for now, but will try to make later) converts the files as here imports them to MYSQL tables All this is supposed to happen automatically, then the user can immediately use the website with the updated data How to implement this (esp. the first part with the zip file)
View 1 Replies
View Related
Dec 22, 2010
I share my music between ubuntu and windows 7 (nothing fancy just copy, paste, external hard drive). and have learnt that my music collection doesn't show up right in windows media player because WMP can't read version 2.4 right. most of my collection is saved in 2.4. I used mp3tag on windows for converting my whole collection but wiped the computer recently and had to start over. This time i would like to just convert my whole collection on my ubuntu pc through the terminal. I tried using EyeD3 but it didn't seem to work for me. But perhaps i typed the command wrong. Could someone show me either a proper command for converting my mp3 collection to v2.3 OR recommend another ubuntu program/commandline that can handle 7,500 songs and convert them to ID3v2 v2.3.
View 3 Replies
View Related
Nov 22, 2010
I need to write a windows batch file to run unix commands by logging onto a telnet unix server. For example , I might want the batch file to log onto the unix sever, run the ls command, collect the output in a file and ftp it back to my windows desktop
View 8 Replies
View Related
Mar 18, 2009
I have a written a java code to ftp a file from the windows box to unix box. It keeps giving me the following error : "java.io.FileNotFoundException: PORT 204,63,56,5,16,78: 550 Permission denied." I am able to ftp manually from windows to unix.
View 5 Replies
View Related
Jan 15, 2010
I have been having a problem with K9 Copy whenever I try to convert a DVD to MPEG files using the method without encoding, but for some reason lately it seems to be splitting each episode into about 6 or 7 pieces instead of just one. I never usually have a problem with this, but for some reason it seems to be doing this whenever I try to rip something. On a side note, I am running on Obuntu 9.10 and have K9Copy version 2.3.0 installed. I have tried installing several other versions, but it does the same thing with each.
View 9 Replies
View Related
Jan 15, 2010
I have been having a problem with K9 Copy whenever I try to convert a DVD to MPEG files using the method without encoding, but for some reason lately it seems to be splitting each episode I am trying to rip into about 6 or 7 pieces instead of just one.
I never usually have a problem with this, but for some reason it seems to be doing this whenever I try to rip something. I am running on Obuntu 9.10 and have K9Copy version 2.3.0 installed. I have tried installing several other versions, but it does the same thing with each.
View 6 Replies
View Related
Nov 17, 2008
I need to write a batch file for windows that automatically starts the cygwin tool in windows and executes the unix scripts.Previously we had these scripts in unix server.Now we need to migrate them to Windows server.For this reason we are using cygwin tool that allows the scripts to be executed on Windows server.We had written a batch file that starts the cygwin tool,but we were not able to execute the unix scripts.How can we write a batch file such that it executes all the unix scripts in cygwin.
View 5 Replies
View Related
Dec 15, 2010
I wanted to install this package to convert one Unix book into pdf. Since I have not set up the internet in the debian, I download the .deb files in winxp and transfer these files to my pen drive and then access it in the Debian. So I got all the 'depends' packages for the chm2pdf from the Debian Packages site and tried to install. Console was still asking for more dependencies. If I have got all the 'depends' packages which are required for chm2pdf, then why does it give problems ?
View 3 Replies
View Related
Dec 17, 2010
Write a script to convert all DOS style backslashes to UNIX style slashes in a list of files
View 2 Replies
View Related
Sep 17, 2010
I have a few ogg files that I want to put on my phone. My phone doesn't play oggs, so I need to convert. It's just an audiobook so I really don't care about quality. Oddly, nothing I try seems to be up to the task. Here's what I tried so far:
sox my.ogg my.mp3: "sox FAIL formats: can't open output file `x.mp3': SoX was compiled without MP3 encoding support" mencoder: wants video too?? Wha?? vlc (from GUI): "p, li { white-space: pre-wrapStreaming / Transcoding failed: It seems your FFMPEG (libavcodec) installation lacks the following encoder: MPEG Audio layer 1/2/3. If you don't know how to fix this, ask for support from your distribution.
This is not an error inside VLC media player. Do not contact the VideoLAN project about this issue." lame my.ogg my.mp3: "sorry, vorbis support in LAME is deprecated." audicity (via GUI): success..but I'm now going to have to somehow script it. This is very annoying. It makes me want to rip directly into mp3 from now on. Is there an easy way to convert an ogg file to an mp3 from the command-line?
View 9 Replies
View Related
Sep 28, 2010
A simple TCP based chat server could allow users to use any TCP client (telnet, for example) to communicate with each other. For this question you should consider a single process, single thread server that can support exactly 2 clients at once, the server simply forwards whatever is sent from one client to the other (in both directions). Your server must not insist on any specific ordering of messages as soon as something is sent from one client it is immediately forwarded to the other client. As soon as either client terminates the connection the server can exit
View 4 Replies
View Related
Sep 28, 2010
i want a process that can operate as both a TCP echo server and a UDP echo server. The process can provide service to many clients at the same time, but involves a single process that does not start up any other threads.
View 3 Replies
View Related
Jun 7, 2011
I am only using the 128 character set defined in the original ANSI standard. But as a whole how are the files implmeneted differently. I am not concerned with the display, i.e. if a tab is displayed with 6 or 8 characters but the actual internal representation in memory
One differnce I've hear is the use of (Windows) vs. for line termination (Linux).
View 3 Replies
View Related
May 20, 2011
How do I write a script to convert all DOS style backslashes to UNIX style slashes in a list of files /
View 3 Replies
View Related
Dec 27, 2010
Any SCP client (on Windows/Cygwin) support UTF-8 encoding of filenames?
WinSCP does not support UTF-8 encoding with SCP protocol but with SFTP.
View 3 Replies
View Related
Jan 28, 2010
I used the following command to get the unix time of root user creation:
Code:
awk -F":" '$1 == "root" {print $3}' /etc/shadow
How can i convert this into the date/time of creation?
I am writing a shell script, which determines the OS installation date among other stuff, and i am assuming the root user's account creation date should be a pretty accurate pointer. Are there reasons why i should not be assuming so?I would be open to other suggestion for getting this date/time, but it would nevertheless be interesting to convert the unix time to "real" time without doing complex manual(or otherwise) computation..
View 4 Replies
View Related
Mar 20, 2010
what are the series of files that are called when a user make copy operation from usb mass storage to hard disk?i have reached the code of the usb mass storage in linux kernel 2.6.33 and i want the exact code the make the copy how can i do that?
View 2 Replies
View Related
Dec 6, 2010
I tried to tag late onto a question similar to mine on stackoverflow (Find Non-UTF8 Filenames on Linux File System) to elicit further replies, with no luck so far, so here goes again... I have the same problem as the OP in the link above and convmv is a great tool to fix one's own filesystem. My question is therefore academic, but I find it unsatisfactory (in fact I can't believe) that 'find' is not able to find non standard ascii characters.
Is there anyone out there that would know what combination of options to use to find filenames that contain non standard characters on what seems to be a unicode FS, in my case the characters seem to be 8bits extended ascii rather than unicode, the files come from a Windows machine (iso-8859-1) and I regularly need to fetch them. I'd love to see how find and/or grep can do the same as convmv.
[Code]....
View 2 Replies
View Related
Feb 7, 2010
I am trying to use regex or pcre to find out the matched from multiple textfiles. how to write a relative program on linux C?
View 3 Replies
View Related
Mar 16, 2010
i am now running Slitaz 2.0 and i would like to know how to run windows applications on my system. My OS didnt come with this wine ive been hearing about so i dont know what do do.
View 7 Replies
View Related
Jan 12, 2011
my instructor gave me a project in c programming language, the probelem i don't have a c program combiler and i don't have a unix os on my computer, and my knowledge in c program is soo weak i took it years ago, i have this code but it does't compile on Dev-C++ on Windows OS, so if you just help me out with this program:
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
[code]....
View 5 Replies
View Related
Jun 9, 2010
I want to read the line in the text file and get the string in the file and paste it in the directory column
for example i have a line like /ftp/prod/SWC1407.DOC
from this 1407 should be parsed and appended at the end of the move command
mv /ftp/prod/SWC1407.DOC /nfp/1407
View 7 Replies
View Related
Sep 16, 2010
I wish to create my own shell for my operating systems project in college...
My professor has asked me to make sure that my shell can execute at least 30 or 40 commands... I have around a month's time
I have seen endless source codes in the net, I'm not able to understand any of it
How do i get about doing it?
View 2 Replies
View Related
Jun 2, 2010
How simulate unix kernel in c++..or give me a link....
View 2 Replies
View Related
Mar 2, 2009
what is the best/accurate way to get the process id in java code in order to write to the log file. To be specific: I am using avalon logkit for logging. I really cannot find a way to write the process id to each line in the log.
View 1 Replies
View Related
Jun 9, 2011
In follow-up to the cmd.exe question, what is the PowerShell equivalent to echo %cd%, or Linux/Unix pwd?
View 3 Replies
View Related