Software :: Using Sed Or Awk To Filter A File ?

Apr 9, 2009

I am using Mailman to create a mailing list for my company. Our membership database is stored in a MS SQL 2000 server. I have figuired out how to write a batch script to export my email address into a text file.

The file is formatted as so:

Code:

Mailman sync_members scripts needs only email address. How can i use sed and/or awk to filter this file and leave me with just the addresses.

I need a file with each email address, 1 per line. Blank lines are ok.

View 3 Replies


ADVERTISEMENT

OpenSUSE :: Setting File Filter For File Open Dialog (to Suppress Showing "hidden" Files, Etc.)?

Dec 10, 2010

On both my 32-bit laptop (openSUSE 11.3) and my 64-bit desktop (openSUSE 11.2) I have been unable to find out how to prevent seeing all the "hidden files" when opening files in many applications, including (for example) GIMP, Xournal, OpenOffice, gedit.In the Control Centre "File management" options "Show hidden and backup files" is NOT checked in "File Management Preferences.

View 2 Replies View Related

Programming :: Filter Last 24 Hour Data And Put In New File?

Aug 30, 2010

i have file server 1 (filesvr01acess.log) and disc server 1 (discsvr01acess.log) in unix box(say ip adress of the box 10.39.66.81)
Similiarly i have file server 2 (filesvr01acess.log) and disc server 2(discsvr01acess.log) in unix box(say ip adress of the box 10.39.66.82). Now my requirement is write sheel script for ..

1. I need only last 24 hour data out of the file server 1 and file server 2 and then finaly put this data in one new file

2. Similiarly same need for discserver 1 and discserver 2.

FYI, each .log files mentioned above is nicely order as date and time as it is created. I can view through cat or search by using grep comand in unix I am wondering if we can achieve through grep command in unix

View 1 Replies View Related

General :: Filter Find And Du By Content Of Inner File In Subdirectory?

May 30, 2010

I have the following command that I run on cygwin:

find /cygdrive/d/tmp/* -maxdepth 0 -mtime -150 -type d | xargs du --max-depth=0 > foldersizesreport.csv

I intended to do the following with this command: for each folder under /d/tmp/ that was modified in last 150 days, check its total size including files within it and report it to file foldersizesreport.csv however that is now not good enough for me, as it turns out inside each

/d/tmp/subfolder1/somefile.properties
/d/tmp/subfolder2/somefile.properties
/d/tmp/subfolder3/somefile.properties
/d/tmp/subfolder4/somefile.properties

so as you see inside each subfolderX there is a file named somefile.properties inside it there is a property SOMEPROPKEY=3808612800100 (among other properties) this is the time in millisecond, i need to change the command so that instead of -mtime -150 it will include in the whole calculation only subfolderX that has a file inside them somefile.properties where the SOMEPROPKEY=3808612800100 is the time in millisecond in future, if the value SOMEPROPKEY=23948948 is in past then dont at all include the folderin the foldersizesreport.csv because its not relevant to me.so the result report should be looking like:

/d/tmp/,subfolder1,<itssizein KB>
/d/tmp/,subfolder2,<itssizein KB>

and if subfolder3 had a SOMEPROPKEY=34243234 (time in ms in past) then it would not be in that csv file.so basically I'm looking for:

find /cygdrive/d/tmp/* -maxdepth 0 -mtime -150 -type d | <only subfolders that have in them property in file SOMEPROPKEY=28374874827 - time in ms in future and not in past | xargs du --max-depth=0 > foldersizesreport.csv

View 1 Replies View Related

Programming :: JFileChooser : Setting The Default 'file Filter'

Sep 28, 2010

Code:

// create a filechooser;
JFileChooser chooser = new JFileChooser(cwd);
FileNameExtensionFilter filter = new FileNameExtensionFilter(
"sdf files (*.sdf)", "sdf");

[code]....

This will give 3 filefilters ('all files', 'sdf files' and 'xml files') for a fileopen dialog. Exactly as I want (in alphanumerical order), but XML is the default extension and I like SDF to be the default extension. Research has not revealed solutions; the setFileFilter method sets the primary filter. If I swap the sequence in the code, SDF becomes the default (as I want) but the sequence is wrong (All, XML, SDF).

View 3 Replies View Related

CentOS 5 :: Filter Bug In Rpm ?

Apr 3, 2009

It seems that rpm in CentOS has a filter to change the phrase "Red Hat" to CentOS

I understand why such a filter exists - but here's the problem -

From the EPEL rhnlib package, when viewing with rpm -qi -

Description : rhnlib is a collection of python modules used by the CentOS Network [url] software.

That gives an incorrect impression that [url] is a CentOS web site.

Package - rhnlib-2.5.10-1.el5 from EPEL

If you download the src.rpm from EPEL and view it with rpm -qip you get the filtered description, but when you install the src.rpm and look at the spec file, it clearly says CentOS.

I think you meant Red Hat. - pschaff

Perhaps instead of filtering the displayed meta data, the CentOS build system could do the filtering before the spec is built?

That way packages that are not built by CentOS will not be impacted, and cases in CentOS where the filter isn't appropriate could be handled by a list of package names that shouldn't be filtered.

Should I file this as a bug with rpm or is this sufficient?

View 8 Replies View Related

OpenSUSE :: How To Filter A Menu

Sep 3, 2011

I'm a KDE fan, but I installed GNOME 3 to give it a test drive. I like some aspects, but I don't care for all the clutter in the menu, in the form of KDE apps that duplicate the functions of native GNOME apps. So I just opened alacarte and un-checked all those KDE apps. Simple, cleaned up the menu beautifully. Then I booted into my main environment, right-clicked on my launcher to open its editor and delete the GNOME apps. All of my KDE apps were gone!

Deleting GNOME apps from KDE works fine: They stay gone in KDE but they're still present in GNOME. The reverse is not true. Is there a better way than what I tried? Besides installing a GNOME distro in a vbox; I tried that and found it too sluggish. I could also replicate a menu structure on a dock (Cairo), but I thought I'd check with the experts first in case there's a less clunky approach.

View 9 Replies View Related

Debian :: Any Way To Filter Syslog?

Jan 15, 2011

I wonder how I can filter the syslog? i.e. there is a message that I don't want to see logged in there etc?

View 3 Replies View Related

Fedora Security :: How To Filter Ports

Apr 28, 2011

I have open ports on my computer for vsftpd, pptpd, and I need help to filter this ports because they aper as open ports on internet, and this is pretty risky

View 3 Replies View Related

OpenSUSE :: Install L7-filter Application On 11.3?

May 15, 2011

I want to install l7-filter application on my opensuse 11.3 . I couldn't install it alone according to this guide :

Layer 7 Userspace HOWTO

the download link is :

Linux layer 7 packet classifier - Browse Files at SourceForge.net

View 1 Replies View Related

Ubuntu :: Filter The Broken Packages Name?

Sep 8, 2010

I want to backup my installed packages using this method mentioned in thread [URL] but the problem is I have 31 broken parkages, i want a way to know the broken parkages so I would remove them in my repack so when i restore the parkages I wont have broken parkages. For now i cant fix them as I dont have internet....

View 5 Replies View Related

Ubuntu :: How To Install Printer Filter

Jun 7, 2011

I am new to Ubuntu and would very much appreciate someone's assistance in getting my printer to work in the Ubuntu O.S.The printer filter is located in my /home/ldavis/opt... directory and not in the/opt/ OpenPrinting- Epson/ppds/Epson directory where some of the .ppd.gz are located and where the error message states it is looking for it. Do I need to extract the .ppd.gz in the /opt/OpenPrinting-Epson/ppds/Epson directory and install the filter in the same location?

After trying several times in vain, I attempted to download and install the pinter drivers using the sudo -i apt-get install <> and apt-get upgrade < >. It installed some Epson printer drivers, but I still get an error message that the printer is looking for a printer filter to be installed. Can someone please tell me how to install a printer filter and which directory should it be installed in?

View 5 Replies View Related

Debian :: Filter Cpu Info Using Lshw?

Mar 20, 2011

How to filter, output just cpu info using lshw?

View 3 Replies View Related

Networking :: Block A Domain Using URL Filter?

May 6, 2010

Can you show me how to block a domain from local access through URL Filter?ay be an example is a very good start.

View 10 Replies View Related

Networking :: Iptables Redirect Before Filter?

Apr 9, 2010

I'd like to set up an iptables configuration as follows:- Allow all traffic by default- For one user account (anonymous), block all traffic except:- All traffic on lo- All DNS requests, which should be redirected to 127.0.0.1Here's what I tried:

# Redirect
iptables -A OUTPUT -p udp -m owner --uid-owner anonymous -m udp --dport 53 -j REDIRECT --to-ports 53

[code]....

View 3 Replies View Related

General :: Awk Script To Filter And Delete?

Jul 5, 2011

I am trying to figure out how to write an awk script(or something better if it exists) to read a text file that contains lines like below.

4517-s-1295546289-10:58:09-2011-01-20.wav | 19990 KiB | 2940.5 KiB/s | binary | 100%
4517-s-1303247233-15:07:13-2011-04-19.wav | 167 KiB | 2918.3 KiB/s | binary | 100%
4517-s-1301431748-14:49:08-2011-03-29.wav | 36220 KiB | 2589.3 KiB/s | binary | 100%

[code]....

View 6 Replies View Related

Server :: Powerpath And Filter Out SDX Disks

May 3, 2009

We use powerpath on RHEL servers, with at least 2 paths to each disk, as you know the powerpath creates a pseudo devices called emcpowerX. I was wondering if there is any overhead if we don't use the lvm.conf to filter out all sdX disks? Except the "duplicate PV found" messages on LVM, does it delays the boot of the server?

View 1 Replies View Related

Server :: Squid For Lan Filter And Apache2

Nov 22, 2010

Im currently serving a web in apache2; no problems I recently set up squid to filter internet for my LAN users.

***i dont want squid to accelerate WEB requests in my apache2.

So the problem is that SQUID blocks my 192.168.1. LAN denied attemps, so far, its ok BUT IT ALSO BLOCKS ANY OF THE INTERNET USERS TRYING TO REACH MY HOSTED WEB.

Can i have both servers in the same box without interferring each other?

View 6 Replies View Related

Server :: Using IPtables To Filter Based Off Url?

Oct 8, 2010

I have a very simple set up.With Network Manager I can have my laptop act as a router (sharing all connections).I also have apt-cacher-ng as a debian package cacher.I would like to set up iptables to filter only the urls that are meant for a debian package cacher.
For example:I could use a "forward all" rule:

Code:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3142
Except then I would get a bunch of error pages every time I tried to do normal navigating.My question (again) is: Can iptables handle forwarding only on a specific url? If so how?Or is there another solution? (prferably without full fledged software like squid)

View 3 Replies View Related

Software :: How To Make Web Content Filter

Aug 25, 2009

I want to write a program to filter web content. I believe that i can write a filter program by usig java however problem is that how can i place this program like "internet -> filter -> web browser" ?

View 4 Replies View Related

Programming :: Bash: Using Grep To Filter 25 Or Above?

Dec 3, 2010

i have a sample that looks like this:

Code:
[schneidz@hyper temp]$ wget -q --output-document=- http://world.needforspeed.com/SpeedAPI/ws/game/nfs-w/leaderboards/events

[code]....

View 2 Replies View Related

Programming :: Filter ASCII Characters PHP?

Mar 8, 2010

How can I filter ASCII quotes( ' ) and double quotes ( " ) so that I can replace them with the UTF-8 equivalent?If I copy text from a Word Document(ASCII), and upload it to a web page with PHP. The Database(UTF-8) will replace these racters with incorrect character(s).I need some function that will replace these characters but I don't know how to differentiate the ASCII quotes and the UTF-8 Quotes without (somehow) converting the string to hex, then preg_replace'ing the hex code for the symbol.

View 8 Replies View Related

Ubuntu :: Error 407 On Proxy Filter?

Mar 30, 2010

This"407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )" is what I get when I try to update or Insatll any thing through Synaptic or atp.But apart from this the Google chrome & firefox works fine.They easily connect to Internet.

View 3 Replies View Related

Debian :: Cannot Install The Text Filter For FireFox

Jul 19, 2010

I cannot install the text filter that is usually below the address/search bar.

View 2 Replies View Related

Fedora :: Filter-lists Of The Subscriptions Are Gone On Every Restart

Dec 10, 2009

i have the following problem on FC12 x64, FF 3.5.5.

Since a few days my AdblockPlus AddOn forgets its subscriptions on a FF-restart. I already reinstalled it but no change. My own rules are still there, but the filter-lists of the subscriptions are gone on every restart.

View 1 Replies View Related

OpenSUSE :: Kmail Crashing When Trying To Create New Filter

Jul 2, 2010

Kmail is crashing on me when trying to create a new filter. Both ways it crashes:

1) Right click on message -> Create Filter -> Filter on From
2) Settings -> Configure Filters.

I'm running KDE 4.4.3-160.1.

[Code]...

View 4 Replies View Related

OpenSUSE :: Thunderbird Filter Rules Disappear

Aug 23, 2010

I'm running Thunderbird 3.0.6 on openSUSE 11.2 (x86_64). When I add a message filter rule, it disappears upon restart. This behavior is reproducible at all times. I suspected a write permission issue, but I checked permissions for the file msgFilterRules.dat and it is rwx for the owner.

View 4 Replies View Related

OpenSUSE Network :: 11.3 - Availability Of L7 Filter Support?

Mar 6, 2011

Is l7-filter support available in opensuse 11.3? When running a shaper script I get the following:
Code:
iptables v1.4.8: Couldn't load match `layer7':/usr/lib/xtables/libipt_layer7.so:
cannot open shared object file: No such file or directory
I have the xtables addons installed. Any ideas where I can obtain the missing library?

View 6 Replies View Related

Ubuntu :: Evolution And Forward To Filter Setup?

Jan 26, 2010

I have a "Forward to" filter set up in Evolution. It halfway works. The emails I want forwarded are matched and put in my Outbox. The problem is that the emails are never sent. I have to manually click the "Send / Receive" button. If left alone, the emails will sit there over the weekend, never sending until I hit Send / Receive.

View 1 Replies View Related

Ubuntu :: Filter Image Files By Size?

Feb 16, 2010

I need a command that will check the size (visual size, not file size) of every image in a folder and its sub folders, and make a copy (or even better, a hard link) of that file in a second directory if the image is larger than 1920x1080 pixels (in both dimensions, not just total area). Also, lots of these file names have spaces, so the command needs to be space-tolerant

I'm guessing I would need to use one of the imagemagick commands and find, but I'm not sure where to start. I'm still reading man pages, but I thought someone here might save me some time.

View 3 Replies View Related







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