General :: List Of RPM In Text File - How To Check Installation

Dec 16, 2010

I have a text file with a long list of RPM's. I need to check if each RPM is installed. I'm sure I can cat out this file and run "rpm -qa" against it, but I'm having trouble with the syntax right now...

View 5 Replies


ADVERTISEMENT

General :: Scripting - Move A List From A Text File To Directory ?

Jan 10, 2011

I'm sure I've done this before and am having a brain fart.

I have run into this a couple of time this last month:

I have a list of torrent files (blahblahhexblah.torrent) saved in a text file. I would like to read the text file and populate the client directory.

I can echo the file using:

But I cannot remember how to pipe the output into the directory, nor can I find any resources that describe the process.

Interestingly enough, I've had a couple of opportunities to do similar tasks with passwords and privileges and even across the LAN in the last few days. Solving this problem will help me solve the others for next time.

View 2 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

Ubuntu :: Check For That) Then Add The Name Of That File To A Text File?

May 5, 2010

i am writing a script for my ubuntu server and basically i want it to download a file that i specifically type in then take that file put it in a certain folder (note file may or may not be archived so i'd have to check for that) then add the name of that file to a text file.i know sounds strange but this is what i got so far:

Code:
#!/bin/bash
echo "-----Star of Script-----"
echo "Please enter URL:"
read URL
cd testdir
wget $URL
//extraction here + delete original archive (rar,zip,anything :S)
echo name_of_file >> list.txt
echo "-----End of Script-----"

View 6 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

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

Programming :: Store Line From Text File Into List C++

Feb 6, 2011

I'm wondering how it is possible to read each line from a text file, and then store each line separately in a list, using C++?

View 2 Replies View Related

Ubuntu :: Get A Message To Flash Up On Screen Based On A List Of Messages In A Text File?

Oct 10, 2010

i've been using some subliminal software on windows for a while now and have found it to be really good. It basically just flashes up a message on screen over the top of whatever is going on at that time but the message is only there for about 30 milli seconds

The message is not there long enough for your conscious mind to read it but the theory is that your subconscious mind will read it.It actually works really well. THe problem is that they dont package a linux version although they do have an OSX version, i'd really like this on ubuntu.

Tried it in wine and it installs but nothing happens after that. Alternatively perhaps somebody can tell me how you could get a message to flash up on screen based on a list of messages in a text file?

View 4 Replies View Related

Software :: What Program To List All Installed Packages In A Text File And Compare 2 Lists

Feb 22, 2011

I need to get names of all installed packages in 2 machines and save them in 2 text files, then I want to compare these 2 files to know the differences between 2 files and from that I could know the differences between 2 machines. Is it possible to do that and what program I could use?

View 2 Replies View Related

Debian :: Migration Check List - To Check - Prepare Or Reconfigure

Feb 3, 2010

I am new to Debian but not Linux-based systems. I have been experimenting a lot with Debian Lenny/Squeeze. I am growing more comfortable each day with the Debian design. Yet there remain many unexplored areas. I am creating a migration check list. Things to check, prepare, or reconfigure when moving from one Linux-based system to Debian.

I have a good computer background and my current check list probably is fairly good. Yet I would appreciate input and opinions from experienced Debian users of things to watch in such a migration. Login defs, passwd/group files, different directory locations, keymaps, services and daemons, etc. I am not too concerned with the desktop as I plan to stick with KDE 3.5 for a while and I can basically move those settings across.

View 4 Replies View Related

Programming :: Check Menu & Check List In Utility Dialog?

Aug 19, 2010

I want to put check menu & check list in utility dialog.i dont know how i do this

View 1 Replies View Related

Ubuntu Installation :: 10.10 Installer Hanging - Dialog Showing Check List

Mar 21, 2011

I am trying to install ubuntu 10.10 on an eee pc 1000H but the installer is hanging on the installation dialog that shows the check list for installation (min disk space, connected to the net, plugged in to wall outlet, etc).

View 4 Replies View Related

General :: Check The List Of Devices Installed Using Terminal?

May 21, 2011

I want to know that is there any command by which i can check which type of hardware devices are installed in my Linux box like SVGA,Sound Card,LAN Card.

View 4 Replies View Related

General :: Replace Text In One File With Text From Another File Using Sed?

Apr 28, 2010

How could I replace text in one file with text from another file using sed?

The text in each of the files would be surrounded by a starting and ending delimiter or a starting tag, say like /* */ so to easily find them.

View 8 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

General :: File Privileges - Check And Set Who Can View Or Open A Given Folder Or File?

Jul 30, 2010

How can I check and set who can view or open a given folder or file?

View 1 Replies View Related

General :: Moved File Partitions - File System Check Failed On Fedora, Windows Will Not Boot

Dec 16, 2009

my partitioning layout was as follows

Vista Recovery
Windows 7
GRUB
Extended
-->Fedora 12 (ext4)

so, I shrunk my recovery in Windows 7 successfully, and booted into my Fedora 12 live cd to run Gparted, and move the partitions so that the free space could go towards fedora, I did such, and then I couldn't expand the partition to my dismay. Next, I woke up this morning, tried to boot to fedora to run SSH, grub loaded, but when I tried to boot fedora, I got the "File system check failed" error, and when I tried 7, it just went to a blank screen with a single "_" in the top left-hand corner.

View 7 Replies View Related

Programming :: Remove Lines In A Text File Based On Another Text File?

Jan 28, 2009

I have a text file called file1.txt containing many lines eg.

line1
line2
line3
line4
line5
line6

Then i have another text file called file2.txt contains

3
5
6

Is there a command to remove the lines in file1.txt based on the keywords in file2.txt? note: It should remove line3,line5,line6 based on 3,5,6

View 10 Replies View Related

General :: Convert An HTML Email Saved As A Text File To A PDF File From The Command Line?

Aug 23, 2011

I need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.

Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?

View 1 Replies View Related

General :: How To Verify If The File Is Binary Or Text Without To Open The File

Sep 7, 2010

how to verify if the file is binary or text without to open the file

View 2 Replies View Related

General :: Change Password Using A Script File And Text File?

Jun 26, 2011

This is for educational purpose. In fact it is my lab tutorial for a subject.I want to capture the users password when he changes his password. Both new and old.This is the script i have come up with:

Code:
#!/bin/bash
echo "Changing password for user $USER."

[code]...

View 5 Replies View Related

General :: Convert A Html File Into A Text File?

Mar 8, 2010

i'm trying to convert a html file into a text file when i simply run "html2text <filename>" the output displayed is the way we want but when i redirect the same using "-o" or ">>" the file is having extra characters in it. i even tried -ascii,but no much use.

View 4 Replies View Related

General :: Copy Some Text In One File And Paste It To Another File?

Sep 19, 2009

favor and let me know how can I copy some text in one file and paste it to another file ,when both of the files are being opened by vi text editor ?

View 7 Replies View Related

Ubuntu Installation :: Wine Cannot Check Out License File?

Jul 27, 2011

I am trying to run a program under wine which needs to use a license. The program is unable to check out the license file.

View 3 Replies View Related

Ubuntu Installation :: Iso File In /etc/apt/sources.list?

Oct 5, 2010

In my netbook /etc/apt/sources.list contains the cdrom asdeb cdrom:[Ubuntu ....]/hardy main restrictedIf I keep the iso file in /ubuntu and then want it to be refreshed during #/etc/apt/apt-get updatehow must I motify /etc/apt/sources.list

View 4 Replies View Related

Fedora Installation :: Error It Just Says Check The Log File For More Details And In The /tmp/setupXX.log?

Jan 28, 2009

I am trying to install Fedora-ds on Fedora Core 10 and I am getting a weired error.it just says check the log file for more details and in the /tmp/setupXX.log

[09/01/28:16:01:35] - [Setup] Info Administration port
[09/01/28:16:02:00] - [Setup] Info 9830
[09/01/28:16:02:00] - [Setup] Info The interactive phase is complete. The script will

[code]....

View 4 Replies View Related

General :: Check File Exists

Feb 20, 2010

I have scenrio where i have to check first whether the files exists or not then count of records should not be equal to zero and file should be of current day not the previous day then only process my next task.There are three files totally.please let me know how to write script to achieve the same.

View 2 Replies View Related

Ubuntu Installation :: Unlocking Sources.list File?

Feb 24, 2010

how to unlock my sources.list file, so I can add code and upgrade Firefox 3.53 to 3.6?Ubuntu 9.10Forget it...I tried again, and it saved my source code...

View 2 Replies View Related

Fedora :: How To Reduce Language List (spelling Check)

Mar 16, 2010

Is there a way to reduce or edit the list of languages in the Spelling Checker application? I'm using only three languages:English / United States

Dutch / Netherlands
Croatian / Croatia

The other languages waist my time, I would prefer that surplus languages are not displayed in the list. Is the language list configurable?

View 2 Replies View Related

General :: Check If Two Paths Are Pointing To The Same File

Oct 6, 2010

I've got a script to recursively create symlinks in my home directory to my settings directory, to keep the files under version control. I would like it to skip files which are already symlinked via a parent directory. That is, if I have these files/directories:

~/foo/ -> ~/settings/foo/
~/settings/foo/
~/settings/foo/bar

, how do I check that ~/foo/bar and ~/settings/foo/bar are the same file?

Edit: D'oh, another few minutes of searching revealed the answer: readlink -f $path

View 3 Replies View Related







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