Ubuntu :: When Create On Windows A Text File In Greek - It Doesn't Recognize It

Jun 3, 2010

When I create on windows a text file in Greek, It doesn't recognize it with Ubuntu... So I created a script:

Code:
#!/bin/bash
fileName="$@"
fileNoExt=$(basename "$fileName")
fileType=$(file "$fileNoExt")

[Code]....

View 1 Replies


ADVERTISEMENT

General :: Windows 7 - Unallocated Space - Pc Doesn't Seem To Recognize Windows Anymore?

Apr 23, 2011

I have a hp pc that has a hard drive of 750 gb and a recovery hard drive of 31gb. I installed linux side by side with windows 7 for dual booting. Now I can't boot windows 7 anymore. During the installation of linux, I chose the advanced option so as to manually partition the drives for linux. On the available list of drives, I chose the 750gb and clicked on modify. I chose 150gb for the root "/" (on ext4) and 700mb for swap out of the 750gb and clicked install. After finishing the installation I restarted the pc and sought to test linux. The linux works fine but when i tried to start windows, I have a boot error. My pc doesn't seem to recognize windows anymore. It takes me straight to the HP recovery tool. I don't understand why. So I logged into ubuntu and check the disk utility and I discovered that I have a whooping 600gb unallocated space. It's like my whole windows is gone. This is what Disk Utilty shows

150gb ext4 | Free 600gb | RECOVERY 31GB NTFS | HP_TOOLS 108MB FAT

What can I do to recover my windows back?

View 3 Replies View Related

Ubuntu :: Grub2 Doesn't Recognize Windows 7

Sep 1, 2011

I installed windows 7 after I installed linux. I got grub reinstalled but windows doesnt show up in the grup menu. So I run in linux sudo update-grub, but this doesnt find my windows system.

Here's my fdisk -l

Code:

Device Boot Start End Blocks Id System
/dev/sda1 1 8511 68358144 83 Linux
/dev/sda2 8511 8572 487425 5 Extended

[code]....

View 8 Replies View Related

Ubuntu :: Windows Doesn't Recognize Files Saved?

Aug 4, 2011

I've had a problem for a while-- when I save files on a USB stick in Ubuntu, then put it in a windows computer, it doesn't recognize the files. It only recognizes a video file that I have, but not the .doc files. The folders either don't appear or only appear as shortcuts.

View 9 Replies View Related

Ubuntu :: System Doesn't Recognize Share Files From Windows

Sep 20, 2010

I have Ubuntu 10.04 in my laptop and at the same time I have Windows 7 (partitioned disk). I use mostly Ubuntu, but I need windows for some stuff. I want to share files of windows with Ubuntu (is weird but when I installed Ubuntu never gave me the option "share files from windows", I dunno why). Anyway, I can see the disk in Ubuntu, and I can see the folder /Documents and settings/, that creates windows by default with my files. However, the route is too long to arrive there from Ubuntu using the Terminal.

I created a shadow link using lndir to arrive to my files easier. It works fine, however, sometimes when I go to the files using this route, these are lightened in red, and when I try to enter to one of these folders, the system doesn't recognize it. After a while, these are in blue and I can go in them. Why it is happening?. What I did Is the "correct" way to do it?.

View 2 Replies View Related

Ubuntu :: Gedit Doesn't Recognize Txt File?

Aug 19, 2010

I typed in a text file (Feb.txt) at work using the basic Microsoft Notepad text editor and emailed it home. When I tried to open it from the email using the default gedit I got an error message - Could not open the file /tmp/Feb.txt gedit has not been able to detect the character encoding. check that you are not trying to open a binary file. Select a character encoding from the menu and try again.The character encoding is set to 'automatically detected'.

How come it can't detect the encoding? I had to manually set the encoding to Western(ISO 8599-15) to load it. I can't remember this happening in the past, and it was OK loading one I sent earlier (Jan.txt) which presumably had the same encoding, as it was written in the same way.

View 3 Replies View Related

General :: Windows XP Setup Doesn't Recognize Netbook's Harddrive?

Mar 4, 2010

Before Christmas, I wiped all partitions off my Acer Aspire One D150 netbook and installed Jolicloud Linux to try out. It's great, but I'm missing too much of my Windows-only software so I'd like to switch back.The problem I'm having is that the Windows XP Home setup CD is starting up the installer fine, but when it comes to selecting the harddrive to install on it's not finding anything.I've tried using GParted to wipe all partitions again and create a new FAT32 partition, but that's not being picked up by Windows XP setup either. (I've tried setting the 'boot' flag on this partition in GParted as well, but no change.)Is FAT32 not the correct paritition type for Windows XP Home? I'm thinking this isn't relevant at this point, because Windows XP setup doesn't seem to be mounting the HDD, nevermind analysing what partitions it has on it already.

View 3 Replies View Related

Ubuntu :: Dual-booted Computer Doesn't Recognize Windows Partition / Solve It?

Aug 18, 2010

I have a gateway laptop that I have attempted to dual boot, but the computer only sees the Ubuntu OS and the Vista Windows Recovery Partition. (Actually, gnome reports 3 separate Ubuntu OSs... part of the problem?)

When I type fdisk -l, I get the following message code...

View 5 Replies View Related

Ubuntu Installation :: Grub Doesn't Recognize Windows 7 Partition - 10.10 Maverick User?

Dec 23, 2010

I recently have installed Ubuntu 10.10 Maverick Netbook Edition in my personal netbook. The thing is that I had installed Windows 7 in the hard disk drive so I decided to install Ubuntu alongside with it. After the process of installation everything was cool but I hadn't the Grub working. I then pressed the Shift button during the booting process so I got the Grub menu but it didn't show the Windows 7 partition. The Windows installation was not erased because its file system is present in Nautilus. I have tried reinstalling the Grub a thousand times but nothing changes. I have attached the results of the boot info script so you can have some info about my booting configuration.

View 9 Replies View Related

CentOS 5 :: Vfat File System Doesn't Recognize By 5.6?

Aug 10, 2011

my android phone doesn't seem to be recognized by the system and it's file system is vfat how did it occur while i've been using my phone as a storage device it still works yesterday but upon plugging it in the usb port it says "cannot mount volume".....

View 1 Replies View Related

Ubuntu :: Create CSV From Text File?

Jun 16, 2011

I have a file like:

a
1
2

[code].....

and I would like to convert it to CSV, so that it looks like:

a,1,2
b,1,2
c0,1,2
d0a1,1,2

Basically, I would like to move every 2nd and 3rd line onto the above line, and put a comma to separate

View 5 Replies View Related

Programming :: Create A Duplicate File Of A Text File In PHP?

Nov 11, 2010

What I plan to do is, create a duplicate file of a text file, and then append some text into the new text file.

View 1 Replies View Related

Ubuntu :: Create A Text Searchable PDF File?

Apr 13, 2010

I can do multiscan documents using xsane and the scanner and create multipage PDF. My next wonderment was how would you create it so you can search for text in the PDF file. I am assuming the scanner is really just creating an image file. And the reader needs text? I did find a decent OCR web based solution. It looks like it would be a lot of work to put something like that together.

View 4 Replies View Related

General :: Create Folder Name From The Text File?

Jun 23, 2010

1. I need guide on how to create a folder name from the text file with .txt format.

2. First, I call the function of reading the directory.

3. Then, I dont know how to do.

4. Finally, I close the directory

This is my source code in perl

## read text.txt file ##
open F, "from/$directory/text.txt";
read F, $buf, 9999;
close F;[/size]

This source code is used to print the folder with date format like "ddmm" d stands for day and m stands for month

if ($command =~ s/-O "(.*)"/-O "$websites/$month/$file"/)

Instead, I want to have the name from text.txt to be folder name

View 4 Replies View Related

Programming :: Create Cvs From List Text File

Dec 21, 2010

I have a file with 5000 lines. it is a list of books authors, series and titles. all lines start with the author names, than there is a dash (-) than the series name, a dash again and the title of the book.

The problem I encounter is that sometime there is a series, sometime not, and as I try to enter this list in a database, I wanted to create a cvs file to import into mysql.

ex:

The best would be to be able to add in the second line, a "space dash space" just after the author name, but how to make sure it does not do it to the first line as well.

If I could separate all line with 2 dash, (grep ?) then I would be able to do a simple replace, and change the single dash into two.

View 2 Replies View Related

Software :: Create Binary File With Text In It?

Nov 17, 2010

How to create binary file with text in it, something like

Quote:

Hola Mundo!

I want it binary, because I want to execute it directly from Bios before Windows.

View 7 Replies View Related

Ubuntu :: Logon Script - Create A File (if It Doesn't Already Exist) And Checks The File For Some Info

May 24, 2010

I want to create a logon script (or somesuch) that creates a file (if it doesn't already exist) and checks the file for some info otherwise. If it finds a given trigger in that file, it logs into a local database and does some operations.

Now my problem isn't with creating that file or even getting it to function as a logon script -- it's with permissions. After the logon script creates the file, I want that user to have read access on it ONLY. Further, I don't want to give the user any kind of root access so that they could do the database operations in question or chown/chmod the file.

What's the best practice here? I'm noticing that whenever the script runs (in .bashrc right now) the script runs with the current user's permissions. Ideally, I'd like to make it so the login script can run at a higher level of permissions, (higher than the user has). Is this even possible? What's the best way to do this?

View 1 Replies View Related

Programming :: String Format - Create A Text File ?

Feb 3, 2010

I am using C. I have a fuction that returns a string

Code:

I need to format this string so that I can create a text file like so:

So I'm trying:

Code:

But I get errors like:

View 2 Replies View Related

Ubuntu :: Create A Script To Count The Number Of Lines From A Text File?

Dec 17, 2010

I need to create a script to count the number of lines from a text file . The output must be put on another text file (no_lines.txt) and in this file i need to generate from the script this output :"File $FILE has $NO_LINES lines ".

View 3 Replies View Related

General :: Limit On File Size - Doesn't Allow User To Create File Which Are Greater Than 100Kb

Jun 13, 2011

I was just testing specifying limit on file size to a user and have added the following to /etc/security/limits.conf bob soft fsize 100 This basically should have said not to allow bob to create anyfile greater than 100Kb in size.

But the interesting thing is, if bob already has any file which is greater than 100Kb in size, it even doesn't allow to log him into the system both from console and SSH. Also nothing is logged in logs.. How do I configure it so that, bob can login to the system even though he has any file greater than 100Kb (but doesn't allow him to create file which are greater than 100Kb) ??

View 3 Replies View Related

Fedora :: Write A Bash Script That Will Create A New Text File?

Oct 22, 2009

trying to learn how to write a bash script that will create a new text file named jimbola in my home directory. The file will need to be able to have the first and last name of Jim Bola included in it.

View 4 Replies View Related

Programming :: Script To Create Simple HTML From Text File?

Oct 1, 2009

I am working on a script to convert a comma seperated text file into html code line by line. The text file is like so:

Code:

link url, image url, description and I want it to output this:

Code:

<td><a href=�link url�><img src="image url" alt=�description" /></a></td>

Here is what I have so far:

Code:

#!/bin/bash
var1='<td><a href=
var2='><img src="'
var3='" alt=�thumbnail image" /></a></td>'

[code].....

It puts the entire line into the html so its no good. I'll probably need to use awk (I think).

View 5 Replies View Related

Ubuntu :: Windows Text File Won't Run As Bash Script?

Mar 21, 2011

I created text for a bunch of "#!/bin/bash" scripts in MS SQL Server. Being on a Windows machine, I used Ultraedit to create text files for a few examples. After copying the files to a machine running Ubuntu 10.10, I changed group and owner, and made them executable. However, they won't execute. I get "file not found" errors. But, if I paste the content into text files created in Ubuntu, it runs fine.

View 1 Replies View Related

General :: FTP Text File From Windows?

Nov 17, 2010

I ftped a text file from Linux to Windows. I changed the mode to ASCII but it still transferred in BINARY mode. Why? Thanks.

ftp> ascii
---> TYPE A
200 Switching to ASCII mode.

[code]...

View 1 Replies View Related

Ubuntu :: Sort The Output To A Text File So That It Prints To The Text File At 1 Process Per Line?

Feb 6, 2011

im trying to output a list of running processes via a shell script. At the moment i got this which outputs the processes to a text file called out.

echo $(ps aux) >>out

The problem is though, the processes are all just one big block of text which makes it hard to read. Does anyone know how to sort the output to a text file so that it prints to the text file at 1 process per line? I know its probably simple but im very new to linux.

View 5 Replies View Related

Ubuntu :: Create Text File Which Lists Sales - Bash Script Shows Total Sales Of Each Month?

Mar 8, 2011

Firstly i'd like to introduce myself before I ask my question, i am currently studying a "Network Operating System 2" course, and in the syllabus the professor decided to use Ubuntu Linux for us. This is a first for me and I am truly greatly interested in the OS. It seems like a solid system once you get to know the deep foundations of it. The professor has already given us an assignment, but I feel its not fair as its just a bit too much from out of what he taught us .. He did not teach us what he is asking for. He asked us to create to a text file which lists the Sales from two Salespersons, and each one will have an amount for each month .. So 12 entries for each salesperson.

Using that text file, we should write a bash script which would read the values from the above text file, and produce a "Monthly Sales" text file, which shows the total sales of each month (combined from both the salespersons). I would like to ask for some guidance, some help on how to start. It's just that he didn't teach us any commands about this matter.

View 9 Replies View Related

General :: Convert A Windows Like Text File Into *nix Like Utf-8 Encoding Automately?

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

Ubuntu :: Create A USB Boot Drive With An .ISO File Of Windows XP?

Nov 8, 2010

How do you create a USB Boot Drive in Ubuntu with an .ISO file of Windows XP?

View 1 Replies View Related

Red Hat / Fedora :: Need To Copy A Text File To Windows Platform Running On Same System

Mar 22, 2009

I hv a text file in redhat linux platform and i need to copy this file to windows platform running on the same system. Is there any command for this.

View 1 Replies View Related

Programming :: Create Windows Hidden File From Using C++?

Oct 18, 2010

Lets start with useful information:I need to create a hidden file for windows/linux using my c++ program.The file will be created on a mp3 player (fat32 file system) and the name will be ".myFile", so the file will appear hidden onux system (period before the name).The problem:Using windows I'm able to see this file, cause the "hidden" attribute is not set.
On Windows API there's a function to do that (CreateFile), then I was trying to find a compatible function to set the hidden attribute, but there's no success until now.Could someone show me the way? There's a program to change these attributes: mattribI will try (again) to find the source code, if someone knows where could I find it

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved