General :: Awk/regex With A Post?

Apr 2, 2010

I have a data file with the following format 0 i j # # # # with other random lines of text to be filtered out.The following script works when there aren't many #s, but it shuffles long lists of data.

/^0/ {
split($0,token)
printf("%s %s ", $2, $3)

[code]...

View 4 Replies


ADVERTISEMENT

General :: Which Regex Standard Is Used In Grep?

Apr 12, 2011

I'm wondering if it's POSIX + ASCII or something else is mixed in?

View 1 Replies View Related

General :: Regex Edit In Skype?

Jan 13, 2010

I am not a big skype user, but I was chatting with my sister, made a typo and habitually typed

tpyo
s/tpyo/typo/

to my surprise it actually changed the history. I am using the linux skype client 2.1.0.47-r1 and my sister is using 4.something on windows.

When she tried to do the same thing, it didn't work. Does anyone know if this is specific to the linux version?

View 1 Replies View Related

General :: Regex Escape The Comma?

Aug 12, 2010

sometimes there are one, sometime there are two exchanges in this log file. the 100= is the stock exchange- if there are two, they are seperated by a comma. i understand how to escape a comma in a regex, but I am having trouble with combining it.

35=8 39=1 38=1000 32=13 14=754 31=1.11 44=1.1 100=AMEX,ISE
35=8 39=1 38=1000 32=151 14=205 31=1.1 44=1.1 100=AMEX
35=U 39=2 38=1000 32=45 14=184 31=1.1 44=1.1 100=AMEX,ISE

[code]...

View 11 Replies View Related

General :: Sed Regex To Match Words Via A Pattern

Oct 24, 2010

I have some lines of text and I want to detect words that meet some criteria with sed.

E.g. The line "tetris cat dog test cactus stereotype"

I want to detect the word that contains two (2) ore more t letters. That mean the words tetris, test and stereotype.

The following regex doesn't do the job because it can;t distinguish words very well.

I thinks I have ti incorporate something like [^ ] in the regex but I wasn't successful...

View 3 Replies View Related

General :: Regex - Using Find To Locate Filenames Before A Certain Date?

Jul 11, 2011

I have a ton of files that are timestamped directories. These all look like2011-06-24_13.53.36 // a directory name for june 24th, 1:53:36 pmI have thousands of these directories. I want to do operations on some of the older ones. Let's say I give it a string for date time that matches that exact format, like i'll give it2011-06-25_00.00.00 // june 25th, 12amI want to find all the directories BEFORE my time. So if i give the string for 12am on june 25th, i want to find all the directories before then.If not i can find EVERY directory i have like this and then filter after wards. The created/modified dates are not tied to the actual timestamp im looking for (that would make this easier)

View 2 Replies View Related

General :: Regex To Find Min / Max Length Words In File?

Jan 29, 2011

i am trying to find all 3 and 4-character length words in my file (which is huge and has alot of entries in it, a big fat wordlist!).My attempt with this regular expression (which I thought should work, found something on length search here: [URL]

cat sorted_noapostrophe.txt| grep '.{3,4}'

but it returns no results? Also to find any words starting with 'f' which are between 3 and 5 characters (inclusive) long, how can this be done?

View 4 Replies View Related

General :: Emacs - Search And Replace Regex In Multiple Buffers?

Apr 7, 2009

I'm fairly comfortable with emacs but I can't seem to find how to do this. I deal with a lot of text files and find myself performing a lot of regular expression replacements to correct the formatting of the text -- or to extract certain tidbits of data from large ugly-looking files.

I know how to perform a regular expression replacement in one buffer at a time. But how do you perform a regular expression search and replace across all open buffers? I have found a method to perform a regex search and replace across a directory by marking files but I need to do it in the open buffers.

View 2 Replies View Related

General :: Perform Action When Clipboard Contents Match Regex?

May 20, 2011

I use the Actions feature of KDE's Klipper utility to run certain commands when I copy something into the clipboard that matches a particular regular expression. Unfortunately, I have to turn on Enable Clipboard Actions and select the command from a menu every time I copy something that I want to run the command on. I'd like to have that command run automatically instead.

You'd think this was possible, as there is an automatic checkbox in the action settings dialog box:

Unfortunately, that appears to do nothing. The documentation included with Klipper does not indicate what that checkbox is supposed to do.

Is it possible to configure Klipper to run a command automatically if the contents of the clipboard matches a regular expression? If not, is there another way to accomplish this?

View 1 Replies View Related

General :: Expressing A Specific Range With Regex And Perl Extractors?

Feb 27, 2010

I am tryng to get values BBA 204- BBA 324 from a log file.

this is my script:

zmore log.gz | perl -nle 'print for m/BBAs[2|3][0-9][0-4]/g' | sort -u | perl -ne 'print if /^BBAs204$/../^BBAs324$/'

the first perl one liner gives me everything from BBA 200 to BBA 394, and the second perl one liner cuts it down to BBA 204 to BBA 324

Is there a elegant regex that will allow me to skip the second perl one liner and just take out the BBA 204 - BBA 324

View 2 Replies View Related

General :: 'find' Command Regex To Exclude Hidden Files?

Jun 28, 2010

I have the following command which finds all files that have changed in the last day and lists them. How can I exclude hidden files like .bash_history?

View 3 Replies View Related

Server :: Apache2 SVN Post-commit Script Certificate Error Post-commit Hook Failed (exit Code 1) With Output?

Oct 12, 2009

I am using apache2 with subversion and trying to get post commit script to run an svn update command. All svn commands seem to work fine manually

Everything used to work fine but then the server ip changed and I can no longer access it with the web name and have to use the ip directly

I am using tortoise svn with vista on my work machine

Here is the script

#!/bin/sh
export LC_CTYPE=en_US.UTF-8
/usr/bin/svn update /home/common/webroot/bob

Here is the result.

Command: Commit
Modified: C:UsersMattDesktopcheckout - bobindex.php
Sending content: C:UsersMattDesktopcheckout - bobindex.php
Completed: At revision: 63
Error: post-commit hook failed (exit code 1) with output:
code....

I think what i need to do is update the certifcate for the apache2, but I'm not sure how to do this, where to put it, and then which of the thousand apache config lines needs to be changed

View 5 Replies View Related

General :: Command Line - Print A Group Of Text Matching A Regex?

Sep 22, 2011

I'd like to print only few groups from text matching a regex. How can I do that in the Linux command line?

What other tools for text processing are there in Linux?

View 3 Replies View Related

Ubuntu :: Cannot Post On Forum - Click On "submit" To Post A Thread The Page Will Just Say "loading..."

Sep 28, 2010

For some odd reason, I cannot post on the ubuntu forum and the LinuxMint forum. Yea, I know.... the irony... I am using Mozilla and have tried Chromium, but that did not fix my problem. When I click on "submit" to post a thread, the page will just say "loading..." and nothing happens for a really long time. Does anyone know what is up? I tried posting on one other forum that I go to often and it seems to work out fine. I haven't tried any other forums though.

View 7 Replies View Related

General :: Cannot Post Files To /var/www/html Using FTP?

Nov 25, 2010

I created a local user acount and tested FTP. This allows me to post files to this directory using filezilla. I then created a webftpaccount and set the home directory to /var/www/html. Here are the permission to this directory using ls -l drwxrwsr-x 6 webftpaccount webftpaccount 4096 Nov 23 10:32 htmlhere are the permission on the sub directories

drwxrwsr-x 2 webftpaccount ftp 4096 Nov 14 07:37 myfinanceguard
drwxrwsr-x 2 webftpaccount root 4096 Nov 14 07:37 mylawguard
drwxrwsr-x 2 webftpaccount root 4096 Nov 14 07:36 xpiinc

I can log into the webftpaccount using filezilla client and it lists all the directories.It will not allow me to write a file into the html directory or any of the sub directories.Can someone help me set appropriate permissions on these directories so that I can get this working? I need to get FTP working so I set up dreamwaever FTP tlich and maintain sites.

View 7 Replies View Related

General :: Configuring LVM Post Installation?

Jul 1, 2010

I have some free space (not partitioned) on my disk drive. I have not configured LVM during installation.Is it possible to modify some of the existing partitions to be a member of LVM?

View 4 Replies View Related

General :: Centos Not Kicking Post Commands?

Feb 17, 2010

For some reason, when using this kickstart file the commands in the post section chroot is not executed. I used the ksvalidator to check the syntax and its correct.

Code:
# Kickstart file.
install
cdrom
key --skip
lang en_US.UTF-8

[Code]...

View 1 Replies View Related

General :: Wget Sent Edited Xml As Post Data?

Jul 8, 2010

To make an rpc call I need to sent an xml file as post data.I know how to do this with wget. It works fine when I have the xml already filled in (depending on the node values the response from the call is different).owever I want to be able to edit part of this file, and then sent that as post data using wget. can edit this file using sed (I dont want to rewrite the files each time this gets used; and it does get used alot, with alot of different values).

View 1 Replies View Related

General :: POST-FIX Relay Denied In Other Domain Name

Jun 8, 2011

I want to implement POSTFIX as our MAILSERVER.I have a couple questions some I already posted here now theres another error regarding on sending recipient in other domain like yahoo.com...using postfix server detected that i have an error on relay which is denied in other domain name...can anyone guide me how to fix it I think i have to update my main.cf.

View 3 Replies View Related

General :: SD Slot Recognition Post Bootup?

Feb 21, 2010

I have an Acer Aspire One "netbook" that has 2 SD slots. If I insert and try to mount an SD card post bootup it can't detect the card (not listed in fdisk -l, and no messages generated to dmesg). Almost as if the slot isn't functioning.

The weird thing is, if I boot the computer up with the SD card IN the slot, it picks it up no problem, shown in fdisk as /dev/mmcblk0p1, and I am able to mount it no problem. I am also able to unmount and remove the card and the SD slot continues to function normally. Although I can boot up the computer with the SD card in the slot with no issues, I'd like to be able to have that "slot" active on boot even if I don't have a card in it.

A few more details, Im running slackware 13 with fluxbox wm.

View 6 Replies View Related

General :: Cannot Boot, Black Screen After Bios Post?

Apr 6, 2011

I installed a Raid 2+0 a couple of days ago with windows 7, and everything was working fine until today. I left my computer for a couple of hours and when i came back all i see is this black screen with a blinking cursor, then i tried everything on the bios but every time i tried to boot it kept stuck there, right after the bios POST.Then i tried changing the SATA ports, that was something that fixed similar problems on my old Mobo, but this is strange because this mobo has 1 week, and the HD's (2x seagate 500gb) have 2 days, so they should be fine.

Then i tried with my ubuntu lucid lynx live cd, it has saved my life many times, it always works flawlessly and i thought i could use it to restore the boot files, but i was very surprised when it failed as well, it pops a message saying something like "invalid user pwsuid "user: unknown"{0}". Tried it many times with no luck, only that same message...Now i managed to boot from a "slitaz" linux dist. thats about 30mb, it has many useful tools.I can see the partitions/HD's on the Gparted and mount applications, but i still i havent managed to mount the raid i had on my Windows 7 install, im a bit scared of losing data, and i dont even know how to do it.Is there any way to fix thisrom the slitaz live cd?Maybe i could mount the Raid and then restore the Boot files from the slitaz live cd? I have a windows image i could use on the Raid, and i could copy the image files to a partition, make it primary, active and bootable...I really dont know, maybe that wont help either because the ubuntu live cd couldnt boot, i really dont know what whats going on and what could be the cause of this... maybe a worm/virus

View 2 Replies View Related

General :: Using Curl And WGet To Send HTTP Post

Oct 11, 2010

I would like to find out how I would use both curl and wget to sent an http post to get the hostnames of a few servers. I know am not even given any work of anything I have done, but the reason is that I am really lost, and I do not even know how to start it.

View 4 Replies View Related

General :: Find URL Of Screenshot To Insert Into New Thread Or Post?

Mar 15, 2010

I know what the URL of a webpage is and how to find it, but can't figure out how to do it with the screenshot accessory in Ubuntu 9.10. It is easy to use the tool to capture the image of a desktop, but won't let me do anything with the URL to insert it into anywhere!

View 5 Replies View Related

General :: Fedora 14 - Stuck At Post Installation Process

Feb 7, 2011

I am pretty new to Linux OS's, but I have gone through the process of installing linux onto several of my system already. The problem I am having is when I attempt to install Fedora 14 onto my Unbuntu 10.10 (erasing Unbuntu to be specific) I am stuck at the Post-Installation process.
I am using a CD-RW to install Fedora onto my Ubuntu, and I installed Ubuntu onto the computer originally with another CD-R.

I assume this usually takes a few minutes, as the pop-up says that it may take several, but it has been several hours with no progress. I was pretty far into the installation when the pop up appeared, and it said:
"Post-Installation: Performing post-installation filesystem changes. This may take several minutes.".
As I said, it has been several hours.

View 4 Replies View Related

General :: Add Files To An Iso Image And Auto Run A Script Post Installation?

Feb 4, 2011

I want to add my .tar files in the .iso image of redhat cd and untar the same at desired location using some script.how do I add the files in the ISO image?where to place the script? how to link the script so that it is executed after the installation completes (redhat).

View 2 Replies View Related

General :: Using Kickstart Post Install To Copy Remote Files

Feb 1, 2010

CentOS 5.3 32bit
I'm having trouble trying to copy files from an nfs mounted remote machine during the the post install with kickstart.

My post install:
%post
mkdir /mnt/foo
mkdir /mnt/foo/downloads
mount 206.xx.xx.xxx:/downloads /mnt/foo/downloads
ln -s /mnt/foo/downloads /downloads
sed -i '$ afoo:/downloads /mnt/foo/downloads nfs exec,dev,suid,rw,bg,soft,rsize=8192,wsize=8192 1 1' /etc/fstab
%end
%post --nochroot
cp -r /downloads/thirdparty/importantFolder /mnt/sysimage/opt
%end

View 11 Replies View Related

General :: Wget Webpage Using Post Method With Multiple Forms

Feb 19, 2011

I would like to download a webpage using WGET which needs a form submission (POST method) in order to appear. I can do that with this command.

wget --post-data="computer=hosts&style=list" http://www.example.com

The problem is there is more than one form on the requested page and I dont know how to tell WGET which one should it POST the data to.

View 3 Replies View Related

General :: Openfiler Post Install - Login As Root And Configure Everything Within The GUI

Feb 1, 2011

I downloaded the lastest x86 stable release of openfiler and installed it on VBOX durring the install I selected to manually do the partitions and added a

/boot
swap (x2 ram)
/

Partition scheme. I selected DHCP client on the network configuration. Now from what I understand once I have done that I should be able to point my browser to https:<IP>:446 and login as root and configure everything within the GUI. But when I log in there is nothing to configure. My host system is Ubuntu x86_64 4GB Ram amd dual core processor.

View 1 Replies View Related

General :: Run An Executable File ( Created From Qt) Post Installation (redhat)?

Feb 24, 2011

I want to run an executable file during or post linux installation which take input from user and closes on click of "ok" button. The thing i want to accomplish is something like the screen that turn up during the installation, like setting time or selecting some packages and then pressing next button...i want to do a similar stuff like the above said using my applicatio

View 2 Replies View Related

General :: Prevent The Logging Of Commands Run Into Syslog As Post-shell Expansion?

Dec 15, 2010

Is there an easy way to prevent the logging of commands run into syslog as post-shell expansion?

I.e log a command of "ls *.log" as just that, rather than "ls a.log b.log c.log d.log" It makes rather a mess of the log files.

View 1 Replies View Related







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