Ubuntu :: Command To Read Files?

Jul 17, 2011

know the basic command for reading the README file after you tar the program using terminal Ubuntu 11.04.thx

View 2 Replies


ADVERTISEMENT

Programming :: Using Expr Command To Read Values From Two Different Files?

Mar 20, 2011

I have an assignment where I have to use an expr command to read values from File1.txt and File2.txtHeres the assignment:Create two files.File1 has one line with the value of 5.ile2 has one line with the value of 100.Edit your new file using Gedit or VI and change it so it performs the following actions:Read the values from the files above (file1 and file2)Divide the value from file2 by the value in file1.utput the result of this calculation to a new file called file3. My .scr file is week3prog3_george, in file1 I put var1=5, file2 is var1=20.Then, I put in my .scr file this:

#!/bin/bash
expr File2.txt / File1.txt

It returns an error message stating "non-integer argument."And...how do you point the .scr file to read values from two different files, and the book my school has provided does not contain the info I need.

View 1 Replies View Related

General :: Samba Does Not Keep Windows Attributes (read Only Files As Read Only For Example)?

Jul 16, 2011

I want my samba to keep my windows attributes exactly what the user setted in windows I mean if it has read only file in win box and copy it to samba share ,samba keep it read only and same for other attributes but it does not do it now with my configuration:Quote:

[global]
workgroup = DOMAIN
server string = File Server

[code]...

View 3 Replies View Related

Software :: Making A Bash Script To Read In Different Files And Rename Output Files?

May 7, 2009

Until now i haven't had to dabble with bash scripts.

I have a program that reads in data files. These are named datafile01_R, datafile01_G, datafile01_B, they then increment, so datafile02_R etc i have about 600 of these. the program reads in 3 data sets at a time from each run, so files_01 r, g, and b.

The program then does its magic, and outputs about 40 different files, depending on the file, they gone to folders named R, G, B, psa, or tracking.

The program itself has configuration files to say where the files should gone when analyzed, there is also the config files that reads in the data sets.

At the moment i have to run one set of data, then go in and manually change the input file location, and run again. But, doing this, even though a different data set, the new set overwrites the old set in one of the output folders. So i need a way to increment the output filenames after they are written and before the program is run again with the new data set.

View 1 Replies View Related

Ubuntu :: Allow Empty Return From Read Command?

Feb 19, 2010

I am writing a short script to do some backups.Here is a small section of it:

Code:
echo -n "Please enter your choice ..."
read CHOICE

[code]....

View 3 Replies View Related

General :: Equivalent Of Read -r - Solaris Command

Jan 3, 2011

What is the equivalent of read -r (solaris command ) in Linux ? read utility in solaris will read a single line from standard input and -r option is used not to treat backslash () as an escape character .

View 4 Replies View Related

Software :: Read Command Not Executed In Script

Nov 2, 2010

I have a read command in the following script, but it does not get executed when I run the script. What's wrong with the read statement?

View 3 Replies View Related

Ubuntu :: Command With The -r Option To Compare A Large Number Of Files And Files In Subdirectories

Jun 16, 2011

I am using the diff command with the -r option, to compare a large number of files and files in subdirectories. My main interest is to find out which files have been changed, and not what the actual changes are, and since a lot of files has been changed, it would be a lot easier to view the file names only. Is there and option for diff that might do this, or does there exist a similar tool/command that could do the job?

View 1 Replies View Related

Ubuntu :: Unable To Read Files From PSP?

Jan 11, 2010

I cant get to my files on my PSP. It says that its FAT32 formatted. I cant make a new partition without removing the files on it.

View 2 Replies View Related

Ubuntu :: NFS Mount - Files Read-only

Mar 28, 2010

I've set up an NFS server on my MacBook, and mounted it on my Ubuntu desktop. Everything works fine, except all the files are read-only.

[Code]..

View 2 Replies View Related

Ubuntu :: How To Read Files On Other Partition

Jun 18, 2010

I was trying to uninstall all my audio drivers/software because of conflict issues.Anywaysomehow I corrupted/deleted/destroyed important stuff. When I try to boot I get this message, "Your screen, graphics card, and input device settings could not be detected correctly. You will need to configure them yourself". I tried doing some of the various things suggested on the forum, to no avail. It wont let me log directly to the computer at the any terminal it offers because it wont accept my user name etc. Anyway, I partitioned the drive and loaded a fresh copy of 10.04 (which is what I already have) and would like to view the files on the corrupted side so I can import my urgent documents.

View 4 Replies View Related

Ubuntu :: Mounting .dd Files To Read It?

Mar 1, 2011

I have a .dd file from testdisk on an external hard drive. how do I mount this image to read it?

View 9 Replies View Related

Ubuntu :: USB Is Read Only - Can't Copy Any Files

May 18, 2011

my USB has become read only and i cant copy any files onto it...

View 3 Replies View Related

Ubuntu :: Read Lines From Big Zip Files?

Jun 30, 2011

How to see the first/last lines in a zip file (like head/tail commands)? The zip file only contains one file of big size.

Also, is it possible to read the lines from the zipped file one by one in C++ programming?

It's not a good idea to unzip it first due to its big size.

View 3 Replies View Related

Red Hat / Fedora :: Read From Standard Input In 'growisofs' Command?

Jul 12, 2010

I need to create backup of internal drive and write it on DVD. I want to do this in single command...like below: ntfsclone -f --save-image --overwrite - /dev/sda1 | growisofs -Z /dev/sr1=/dev/stdin

in above command, i tried to to create backup of first partition of internal drive and need to write this backup on DVD. But above command has some probolem due to which it could not write backup on DVD....and how to read from standard input in 'growisofs' command?

View 2 Replies View Related

General :: Command Line Utility To Read Info From An Iso?

Nov 16, 2010

I am trying to find a linux cmd line utility that will read info from an iso file. The problem I have is that the file is always corrupt so I cannot mount it because I only have around 100k of it but all I need is to extract the headers of what the iso contains. how I can achieve this I have searched the internet with no look at all.

View 1 Replies View Related

Server :: Set The Cat Command To Read Specified Lines Of A Text File?

Feb 17, 2011

how can I set the cat command to read specified lines of a text file,like if I have a text file with 100 lines, who can I say cat only line 23 to 42?

View 3 Replies View Related

Ubuntu :: Command Line To Copy Files From One Location To Another / Retain Source Files Group / User?

Feb 20, 2011

Is there a method at the command line to copy files from one location to another and retain the source files group and user?I'm migrating some MySQL files from one machine to another.I want to back-up the original files in the directory presently. They have owner:group of mysql, some have owner:group root:mysql and so on. To copy them under cli or Nautilus everything changes to root for I execute sudo cp or gksudo nautilus and copy via gui.

Since it is MySQL data I could simply do a dump of the database and restore it on the other machine. But there's about 20 db's and I want to do this via a copy for it will be faster - at least that is what I think.

View 5 Replies View Related

Ubuntu :: How To Make Files Read And Write

Jan 12, 2010

i know that chmod +x makes a certain file executable but how do i make a file read and write.

View 3 Replies View Related

Ubuntu :: Read Files In Partition From Windows?

Mar 23, 2010

[Sorry if this is misplaced; I just couldn't think which category to put it under.] So yeah, I'm almost exclusively using karmic (yay!), but I still have to use that vista install I have smushed in a corner of my HD from time to time. Now, I installed karmic using the default, latest file system (ext4, I believe it is, right?). Last I remember hearing, that presents a bit of a problem, doesn't it?

View 5 Replies View Related

Ubuntu :: Read Text Files In Windows?

May 25, 2010

A real os should at least e able to read and write plain text, you think? But no, when I try to open my text files (mainly made with gedit) some characters are ass, swedish letters rarely work and ', ", / and so on are not represented as the characters I want to see. Is there a easy, fast way to read (and print!) my text files at school, where they have only windows, without spending half an hour fixing the file by hand?

View 6 Replies View Related

Ubuntu :: Can Read But Not Copy Files From UFS Drive

Aug 15, 2010

My Freenas server is currently off line for the moment pending the arrival of some thermo paste and I need to get some files off one of the drives. The drive is formatted in the UFS file system.I am using a usb to sata converter to hook the drive up to my laptop which is running 10.04.I am then able to browse the files by going to my /mnt folder. The problem is I cannot copy any of the files. I get a permission error. I have tried chmod 777 command to change the permission but I get an error about it being read-only. I tried running nautilus as root to copy the files but I still get a permission error. Using nautilus as root to change the permission or alter any of the read/write options fails because the drive is read only.

From what I understand I can only mount the drive as read only because its UFS and I can't change the permissions because its read only. Sounds a bit like an endless loop lol.Running Freesbie (freebsd live cd) didn't do me any good as it didn't even detect my hard drive and I don't want to learn a new OS just to transfer my files.ny advice would be appreciated. I really don't want to wait until my thermo paste comes and I will be on the road for the next couple of weeks so I won't even be able to get it setup. I need these files now.

View 1 Replies View Related

Ubuntu :: Unable To Delete Read-only Files?

Aug 21, 2010

I'm trying to delete files on a USB disk. If I try using terminal using rm, because files are write only. I can't change this, even as root using chmod or unmount mount. When I use fdisk I still can't reformat, either as superuser or root. I get the following :

Disk /dev/sdh: 16.1 GB, 16064184320 bytes
7 heads, 37 sectors/track, 121140 cylinders
Units = cylinders of 259 * 512 = 132608 bytes

[code]...

View 9 Replies View Related

Ubuntu :: Any Apps That Are Able To READ .eml Files, NOT Convert Them?

Sep 5, 2010

Are there any Linux apps out there that are able to READ .eml files, NOT convert them?

View 3 Replies View Related

Ubuntu Security :: All Files And Folders Are Read Only?

Sep 6, 2010

I've recently upgraded to 10.04 and have noticed that all the files or folders I've been creating recently are read only. I can manipulate the folders on my ubuntu system itself and create new entries, folderes, subfolders, and save files. IE a payment receipt in pdf format. However if I then try to move or copy any of these to my DROBO (data storage device) the file gets the LOCK Icon on it and becomes read only. If it is a subfolder I can no longer copy to it and if it's a regular file, say a pdf or flv I can't modify it. Attempting to change the file permissions on either my ubuntu desktop or any other folder works but once it goes to the drobo I lose the ability to change it off of ---. Again, this was all working fine before doing the upgrade to 10.04. Yes I did do a clean install to 10.04.

View 6 Replies View Related

Ubuntu :: No Longer Read Files Burned While?

Nov 30, 2010

I burned these very important data files on the large DVD discs and now Ubuntu can no longer see them. It can only see the file folders but the files are still there. I took a bad screenshot with a camera but you can still see that the files are still there.

View 9 Replies View Related

Ubuntu :: How To Read Backup Files In Windows

Jun 15, 2011

I had some problems with my hdd, I fixed most of the problems with "testdrive" or "testdisk" (cant remember) but I have some bad sections on my disk right where my important data is. I made a backup with "dd" from a live cd. I have the backup with a reading error or 5 so I guess most data is safe? I have the backup of the whole drive on an other hdd and now I need to get just a few folders out of it. I tried in windows but I can't read it. Poweriso can but not the privet folders like /var/ and that folder I need. I had a password on the account so I guess that is part of the problem? How to read the backup file in windows?

View 4 Replies View Related

Software :: Command To Display Amount Of Data Read And Written?

Apr 3, 2011

I know there's a command to display the live amounts of data being written and read to the disk.Like, it tells you how many blocks have been read/written so far to a device

View 1 Replies View Related

Ubuntu :: Disable Read Only Files For Editing For GRUB2?

Jan 15, 2010

I tried to follow "Configuring GRUB 2" at /etc/default/grub (file) in the instruction at
But the file is read only? How do I make it so that it can be modifiedie GRUB_DEFAULT=0 to GRUB_DEFAULT=1

View 4 Replies View Related

Ubuntu :: Picasa Doesn't Read Ini Files Copied From XP?

Sep 9, 2010

I have about 20 000 photos in XP which have mostly been tagged, cropped, etc using Picasa. That Picasa is working OK.

I am shifting my activities from XP to Ubuntu & am just getting to the Photo part.

In Ubuntu, I have the current Picasa (3.0.5744-02) & that is working OK with any new photos I download to Ubuntu & modify in Picasa there.

My next step was to copy a folder of photos from XP to Ubuntu & look at them in Picasa. They copy perfectly & Picasa finds them OK. All the tags are there OK.

But the cropping & other editing from Picasa XP is not seen in Picasa Ubuntu.

The ini file is there & looks the same as ini files generated in Ubuntu.

Should I expect my XP edits to be visible in Ubuntu?

How can I get that to work, without re-editing 20 000 photos?

View 1 Replies View Related







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