Ubuntu :: Touch Contents Into A File?

Sep 1, 2011

I know that I can do something along the lines of

Code:
touch /var/www/index.html | echo "echo some contents" >> /var/www/index.html
but would like to do this without having to specify the directory again with echo, and maybe even use linebreaks / tabs on the echo in. Anyone know a neat one liner?

View 6 Replies


ADVERTISEMENT

Software :: Touch: Cannot Touch `/usr/share/apache-tomcat-6.0.32-src/logs/catalina.out': No Such File Or Directory

May 31, 2011

I want to install tomcat so i followed the steps mentioned in below link: [URL] After going through the steps i checked for

Code:

./startup.sh

but it showed me the error

Code:

touch: cannot touch `/usr/share/apache-tomcat-6.0.32-src/logs/catalina.out': No such file or directory
/usr/share/apache-tomcat-6.0.32-src/bin/catalina.sh: line 372: /usr/share/apache-tomcat-6.0.32-src/logs/catalina.out: No such file or directory

when i went through my "/usr/share/apache-tomcat-6.0.32-src/" there was no "logs" folder so i tried

Code:

find / -name catalina.out

but it returned nothing.BTW i have installed "apache-tomcat-6.0.32-src", "java-1.6.0". Please if any one could look into the problem and provide me the solution to error mentioned above and why there is no "logs" directory in "/usr/share/apache-tomcat-6.0.32-src/".

View 5 Replies View Related

Software :: Check The Contents Of A Text File For A Specific String And Remove It From The File From The Command Prompt?

Oct 14, 2010

I want to be able to check the contents of a text file for a specific string and remove it from the file from the command prompt. I would basically be searching through a number of files and if a specific string is found I would like it removed automatically. pretty much a find and replace, were the replace is nothing. any one got any ideas on how you would do this. I already have the search part sorted just need to be able to remove the string I don't want from the multiple files.

View 4 Replies View Related

Software :: Overwrite The Contents Of A File Without Changing The File Size?

Jul 12, 2010

We have some large files with sampling data in it. Don't want to delete these files. But want to quickly overwrite the file with 0s and/or 1s and preserve the original file size.

View 3 Replies View Related

General :: Replacing A String In A File With The Contents Of Another File?

Jun 15, 2010

I would like to know how I can replace a string in one file with the complete contents of another life.

View 10 Replies View Related

Programming :: Append Contents Of One File To Another Existing File?

Nov 17, 2008

I have two files list1.cfg and list2.cfg both files contains differentrecords details like

List1.cfg
NAME1:25:C:NAME LINE1:
NAME2:25:C:NAME LINE2:
CITY:25:C:City:

[code]....

Now I want to append contents list2.cfg to list1.cfg(It ispposible using cat list2.cfg >>list1.cfg) but I want to check if content of (record) in list2.cfg is present in list1.cfg then dont append it otherwise append it.

View 1 Replies View Related

Ubuntu :: Run With Touch And / Or Multi Touch Capabilities?

Jul 8, 2010

I would like to use as much FOSS as possible, particularly with touch screen computers. Is it possible to run Ubuntu with touch and/or multi touch capabilities? If so, will an HP Touch Smart computer run Ubuntu? I would very much like to purchase said machine via Linux Foundation discounts if this is the case.

View 2 Replies View Related

General :: Grep The Contents Of A File With Another File?

Sep 25, 2010

someone once told me that use can pass a file to grep and use that to search the contents of another file. if that is the case I'm not entirely sure why the following isn't working for me.

Code:

[root@LCENT01:~]#grep -i id_rsa.pub .ssh/authorized_keys
[root@LCENT01:~]#cat id_rsa.pub >> .ssh/authorized_keys
[root@LCENT01:~]#grep -i id_rsa.pub .ssh/authorized_keys

View 3 Replies View Related

Programming :: Check If File Contents In Another File?

Nov 4, 2009

i am trying to write a bash script. i have a text file called comp2.tmp which has a list of items in it

example comp2.tmp

Code:

filename.pdf
filename2.zip
filename3.ttf
and so on

I have another text file called comp1.tmp which should have the same list of files in it, but does not look as pretty

example comp1.tmp

Code:
someothertext here ...... 10/30/2009 ...... filename.pdf
=========================------------------==============
othertextagain .......... 09/28/2008 ...... filename2.zip
========================------------------===============
bunchmoretext ........... 04/12/2005 ....... filename3.ttf
and so on

i would like to check if the filenames listed in comp2.tmp exists in comp1.tmp

View 3 Replies View Related

General :: Ubuntu - Can't See Contents Of File

Jul 29, 2010

In Ubuntu 10.04, there is a certain file that appears highlighted in terminal. When I try to cat the file, it says there is no such file or directory. How can I see what's in this file? Is this a symbolic link?

View 1 Replies View Related

Ubuntu :: Print Out The Contents Of A File?

Feb 24, 2010

how do I print out the contents of a file?

View 4 Replies View Related

Ubuntu :: How To Delete The Contents Of This File.

Mar 23, 2010

/root/.local/share/Trash/files/I have a tar backup file in there and can't get rid of it. I've tried from root with Nautilus, the files disappear for a couple of seconds and then reappear.

View 7 Replies View Related

Ubuntu :: Way To View The Contents Of A .dsk File?

Apr 30, 2010

EDIT:SOlved, I'm trying to figure out how to delete this

View 1 Replies View Related

Fedora :: Touch A File In D Partition?

Aug 23, 2010

how can i touch a file in d partition i need to copy all my files in the home directory to d partion

View 3 Replies View Related

Ubuntu :: List Folder Contents To Text File

Feb 8, 2010

How to list the contents of a folder to a text file. I'm trying to list all my music, including all subfolders, etc. to a text file, but I can't remember the command.

View 3 Replies View Related

Ubuntu :: Use Nautilus To View The Contents Of The Bootloader File?

Apr 6, 2010

Is there somewhere that I can view the contents of the bootloader using nautilus?

View 2 Replies View Related

Ubuntu :: View Contents Of Initrd.lz File On Live USB?

Sep 7, 2010

What command do I need to use to view the /casper/initrd.lz file on a live USB? Here's what I know about initrd.img in /boot on standard installations:

Code:
zcat /boot/initrd.img-2.6.xx.xx-generic | cpio -iv
Now, what's the equivalent for initrd.lz files?

View 2 Replies View Related

General :: Listing Of Zip File Contents Using C?

Oct 20, 2009

how to do the listing of zip file contents using C?

View 1 Replies View Related

General :: Reading Contents Of PDF File?

Jun 8, 2011

is there any API to read content of PDF file & store it in buffer?

View 14 Replies View Related

Software :: Changing Contents In TGZ File

Feb 1, 2011

I'd like to change contents in a *.tgz file. I can uncompress (extract) using:
Code:
tar xzf archiv.tgz
and I get these 3 directories:
Code:
etc
install
usr
How to compress back to a tgz file?

View 2 Replies View Related

Software :: Tar.gz File Is MUCH Bigger Than It's Contents?

Sep 30, 2010

I have created an incremental backup of a Windows-client folder on a SLES 11 server using find and tar. The resulting file is about 615 MB, but inside the archive is only one file which has a file size of only 9.061 Bytes. BTW: it's a "The Bat!" config fileHere's the backup script:

Code:
Configuration
BACKUPFILE1="/<some_name>/Thunderbird"

[code]...

View 1 Replies View Related

Programming :: Locate A File By It's Contents?

Jul 16, 2011

A long time ago I wrote a short essay about the 'federal' 'reserve' board. I don't remember it's name or format. I think it's somewhere on my rather large hard discs (to of them divided into various partitions).I'm trying to write a command line that will find it based on a quote that is in it: "our fathers brought forth"I have tried various configurations of grep, and or combining grep with find, but I'm getting nowhere. I really don't understand the syntax of either command, or how they work together, and the examples that I can find are really no help at all.

View 6 Replies View Related

Programming :: Read The Contents Of A File?

Jan 11, 2010

I am trying to read the contents of a file into something else. I have a file.txt that I am working with, I want to read the file and take the data and run some commands with the data that it read. So if it read www.yahoo.com I want to be able to nslookup. Does that make sense? I have been trying to use the read command but that does not seem to work. I even was trying to read filename | > filename to see if I could even read any of the data at all. Nothing is working.

View 8 Replies View Related

Ubuntu :: Grub File Not Found - Try To View The Contents Says Do Not Have The Permissions

Apr 27, 2010

I already had ubuntu 32 bit version 9.10. but due to some tool compatibility reason I need even the 64 bit version 9.10. I dint want to delete 32 bit version so I wanted to install both on my system. I have windows vista as well.

So I booted with 64 bit version of Ubuntu, went on with the installation, until the point were it asks to choose the partition. 32 bit version had 16GB allocated and 10GB free. so I thought I will make new 8GB partition from the 10GB free space. So I selected the partition and clicked on change, and specified 8GB and ext4 format and mount point as "/". I clicked on continue and in a few seconds it popped up with an ERROR message, which I can't remember exactly, but it meant to say that it could not make the changes as the disk to which the changes were made is in use. So I should not use it until I reboot. So I rebooted and now I have grub error : file not found and grub rescue> prompt.

I tried to boot with the 64 bit CD again with the option of trying ubuntu without making any changes and it does show the 16 GB partition, but when I mount that partition I do not see any folders in the partition except for a folder named "lost+found". I try to view the contents of this and it says I do not have the permissions.

View 3 Replies View Related

Ubuntu :: Cannot See Folder Contents Using Standard File Browser Interface

Nov 5, 2010

I downloaded a FLAC album from a band's label.The weird thing is that I cannot see the folder contents using the standard file browser interface.However, VLC can see and play the files without problem.I don't believe the files have any sort of DRM, but they are legal, FWIW.

View 4 Replies View Related

General :: GUI Tool To Extract Iso File Contents On (KDE)?

Mar 3, 2010

I have an ISO CD image file and want to extract it's contents to a folder. I know there are ways to mount the image and stuff, but it's complicated. I'm looking for a GUI tool to open up the contets and extract needed files. On windows I would use WinRar to do this. K3B only allows me to burn the stuff, Arch does not work with ISO files :(Is there a similar tool on Linux, preferably from KDE world?

View 6 Replies View Related

General :: Reading The Contents Of A .bkf File Using A Non-Microsoft OS?

Apr 20, 2010

I have a .bkf backup file, created by the Backup utility that Microsoft provides with Windows XP. Is there a way to read the contents of the file using a non-Microsoft OS, preferably Mac OS X or Linux?

View 1 Replies View Related

General :: Zipping Folders And Their Contents Into A .zip File?

Nov 23, 2010

How do I make a .zip file that contains every file AND every folder in the directory?

View 4 Replies View Related

General :: How To Edit Contents Table Of Pdf File

Jul 17, 2011

how do i edit the "contents" of a pdf file. I tried pdfedit but I cant find where the content table list is stored.

View 1 Replies View Related

General :: Way To View The Contents Of A Berkeley DB File?

Jul 1, 2011

As the topic title states, I would like to know the preferred way of viewing the contents of a Berkeley DB file. The machine the file is on is running SuSE 9.3, with perl 5.8.6 and php 5.2.0 installed. (I'm not sure if stating that was necessary, but my understanding is that the more information I can provide you, the better. The purpose to this question is this: I have been requested to look into coming up with some form of Geocoding software for one of my company's clients. Specifically, I've been requested to look into trying to obtain Census tract/block information.

I discovered the Perl module Geo::Coder::US, which uses Census input (TIGERLine files) to create a Berkeley DB file, then reads said file to produce its own output. However, the output from Geo::Coder::US only provides latitude and longitude information.At the moment, my only interest is in popping the Berkeley DB file generated with the import script packaged with the Geo::Coder::US module. I'm trying to see what the contents of that DB file are, so I can determine if the information I'm after is even in there in the first place.

View 2 Replies View Related







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