Software :: Block Searching With Sed?
Mar 16, 2011I need to extract blocks of text in the file source.txt. The file contains these tree lines in case A:
opcode_a :
10000001;
opcode_b : 00011101;
[code]....
I need to extract blocks of text in the file source.txt. The file contains these tree lines in case A:
opcode_a :
10000001;
opcode_b : 00011101;
[code]....
I was just trying to search for something in the yum gui and got the following error...Anyone else getting this?
Code:
Traceback (most recent call last):
File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 391, in _do_search
for (pkg, inst) in res:
ValueError: too many values to unpack
are there any commands to search your Mac using terminal? I tried usin grep to search but it seems somewhat unresponsive and nothing comes up.
For example, I would type "grep Files" (A folder name) and it just prints a blank line and nothing happens.
I have a database called 'gaming' and with in that database there are several tables and data. I was asked to find a module called 'ako ldap' and disable it (setting it from 1 to 0). My question is how in MySQL do I search for a string if I don't even know what table to search in? I know how to search using the 'select' statement as long as I know where the table data is. In this case I only know which database but nothing more except what I am looking for.
View 1 Replies View Relatedim working on a mini project which basically use a simple database(Database.txt) which displays its information in this format :apple chiku banana
Code:
#!/bin/bash
Title=
[code]....
Two nights ago I was trying to diagnose what was wrong with my internet connection. I couldn't get web pages to load, IRC and ssh weren't connecting, and email wasn't downloading (I still use POP3). I didn't know what to use to check my internet connection. I did a ping, but I didn't know how to interpret the results. So without the internet, I was totally blind.
Are there documents anywhere which install with Debian which I can search offline when my internet connection dies?
been searching for days now for a crossword app for Fedora... Im finding it extremely hard to believe that such app doesnt exist? Yet, my searching hasnt yielded anything so far. Is there nothing in the repo?
View 9 Replies View RelatedI am searching for a usefull PasswordManager for Opensuse 11.4. All I found till here are Apps that wont run. I found:
Password Gorilla (wont run)
KeePassX (I am not even able to install)
Password Dragon (is a Java App, that is just launchable via Terminal and I dont know how secure it is).
Does less have an incremental search?
I'm on xubuntu.
I'm currently trying to design a small, simple enough shell program for area codes. I have a list of area codes in a database, and I am trying to write a program that will have a user input an area code, and then have the program print out information that immediately follows that area code in my database. I assume I need to use a find or locate command, but I'm not sure if I should be searching for a string or the number itself. The number could possibly occur at some other point in the file, though the way I have the file set up it only occurs once at the newline.
what function I should use and how I should go about it? As is I only have the absolute bare-bones beginning of having an echo for the prompt to input an area-code, and the read once it's input. Without the find I'm not sure how much farther I can get. Also, would it make it easier if I added some character such as a ! to the end of the number at the newline to make it easier to search for? With a macro that would be easy enough to do.
I am trying to search particular directory which has files with extensions like .html,.mp3,.xml etc I have a list of such files
What I am doing in my script is
for file_name in `find /home/ -name index.html -o -name song.mp3 -o -name help.xml`;
do
if [ $file!='' ]
then
[Code].....
I have a file which provide the output of all the applications which started and running successfully. But it doesn't give the Error message of the applications which are failed. For example there are 5 applications (ABC,DEF,NMO,STO,XYZ) and application STO failed so I will get the following output (out.txt). content of out.txt file
Application ABC is Running
Application DEF is Running
Application NMO is Running
Application XYZ is Running
I want to generate the text message based on the information on out.txt that STO application is Failed.
I have searched a lot in google regarding the various search commands available for linux, but everywhere i got the commands only for files. But suppose i know the name of a folder but not it's path, then what is the command to search for it's path.
View 10 Replies View RelatedI had opened a file in vim editor in my ubuntu 8.04 & wanted to see if line ends with
(like DOS) or
(in UNIX)
I tried
Code:
:%s/
//gn
& vi editor got hung with processor nearing 50%
Then I pressed ctrl+c & vim resumed with message
Code:
147416605 matches on 1 line
So my question is
(1)why this reaction from vim ?
(2)I want to see all control characters in file.
I used notepad++ in windows & it had option to differentiate tabs, spaces, return etc.
I am in love with this wallpaper [URL] for slackware. I serched in google until page 32 and no image appear that match this one.
View 5 Replies View RelatedWhat I am usinggrep -B 1 -A 2 "Installed" /var/log/updates.logInstead of tailing the log is there a way to grep all lines of the log with word Installed AND today's date? Also, what about grep lines of the log that contain a specific date and more than one word, by example : ('Installed' or 'Failed' on '2011-06-24')?
View 14 Replies View RelatedI want to search lines with these stings with one or more spaces..
e.g
Code:
a b
a b
a b
a b
How will I achieve this by egrep ?
I tried searching for files in documents: joe@Debian:~/documents$ find -iname *.odt ./canadian-public-holidays.odt I then moved to the work_search directory which is located in documents: cd work_search joe@Debian:~/documents/work_search$
joe@Debian:~/documents/work_search$ find -iname *.odt
[Code]...
I used Rhythmbox for a long time, but I've recently "switched" to openbox, and I don't want a load of GNOME libs and files tainting my clean OS. Also, I don't want any QT apps, by virtue of the fact that I am doing fine with only GTK installed and don't want extra libs. I prefer an audio player on the lighter side. I've been tinkering with Audacious but I guess I just haven't taken to it.
View 3 Replies View RelatedI'm using a Cyrus Imap Email on our mail server. What can I use to search email contents for all emails that resides in the server? Any thoughts?
View 1 Replies View Relatedi get the desired result with
find . -name "*" | xargs grep -i "*searchPattern*"
---but not with
find . -name "*" | grep -i "*searchPattern*"
why this difference?
I have a file that contains 5 fields and anothen one with two I want to take the value from user and search file1 and if the value exists then write in file2 to the $2 to the line that $1=value
file 1
1:fsdfsd:g:33:fsdf
2:yytgdcf:a:3:sgd
[code]....
My ASUS Wl500g Premium v1 (with NSLU Linux) now working not only as router, but SSH/OpenVPN-client.Now I want mini-server on Debian for1. Torrent-client;2. Samba-server;3. vsftpd/OpenSSH/OpenVPN-servers.I've already chosen this:Intel "D525MW" (Atom D525-1.80Ghz, iNM10, 2xDDR3 SO-DIMM, SATA II, D-Sub, SB, 1Gbit LAN, USB2.0, mini-ITX)2 * SO-DIMM 2Gb DDR3 SDRAM SEC (PC8500, 1066Mhz, CL7) original2 * 1000Gb Hitachi "Deskstar 7K1000.C HDS721010CLA332" (SATA II)and I'm searching for a case (that can take on board 2 HDD 3.5) and powerfull RAID-controller.
View 1 Replies View RelatedI'm on the Fedora 14. I'm getting troubles. I can't do YUM UPDATE! See the attached image. It's trying to search for mirrors forever. Impossible how awful the performance. What shall I do? My project development has been paused for a moment.
View 9 Replies View RelatedI often have many windows open on many virtual desktops and I have hard time finding some application.
So is there any tool for searching open windows?
Currently I using Awesome as my window manager, but it does not need to be dependent on it.
I often send and receive gpg-encrypted mail. At the moment I use thunderbird + enigmail (in linux) to do that. As far as I know there is no way in thunderbird to find all encrypted messages which bodies contain particular keywords. There also seems to be no option to save encrypted mails decrypted (so they would be searchable). However for me it is important to be able to search old encrypted mails.
Is there a way in linux to save incoming mails automatically decrypted in my inbox and save outgoing encrypted mail decrypted in the send folder? Both times adding a line to the body which remarks that the mail was encrypted.It could be another email client for linux that could to that or perhaps a solution using procmail or maildrop.For a procmail solution I guess there could be some problems with encoding (perhaps one have to use emil?). Note that the solution should work for multipart encrypted messages (including encrypted attachments) too. The point is that the mails are encrypted on the mailserver or more generally on their "way through the net".
I have PDF files that I would like to be able to search the text of. I tried the GNOME Search for Files program (Places->Search for Files...) but it didn't find the PDF files that contained the text. What do you use to search for text in PDF files?
View 2 Replies View RelatedI have been using Ubuntu 10.04 Lucid Lynx for some time and I have some problems with Tracker (the searching tool):
1. It looks like it reindexes after every turning on a computer. It always starts at 0/55234 files.
2. It doesn't index e-mails in Evolution. I'm using IMAP, but all mail is marked for offline use. So it's on the harddisk. And it worked in older versions of Ubuntu.
3. GUI is totally different than the one which is shown on the website of Tracker [URL]. How is it possible? Is Ubuntu using some old version? Moreover the Czech translation is lost in Lucid. It was 100% translated in Karmic, and now it's completely English.
I've got some photos with two or more tags on and I was wondering if there was a way of only showing photos that had one tag and not another. I've found a way of doing it with AND and OR (the default) but I really want to search, for example, all my 'holiday' photos that don't have any pictures of person 'X' in.
View 1 Replies View RelatedI used to open Rhythmbox and click on the playlist. Then I typed a song's name and the chosen song would appear highlighted on the playlist.
However, since I upgraded to Maverick when I repeat that same procedure Rhythmbox will search for an artist containing whatever I typed instead of a song's title containing it.
I want the old feature back. I don't know if I'm being clear...