Ubuntu :: Include Flag Not Working For Grep?

Apr 19, 2011

I'm trying a recursive search -- only PHP files -- and yet grep is searching SQL files too.

Code:
sneakyimp@Ubuntu-64bit:/var/www/site$ grep -irl --include='*.php' 'car_images' *
2011_02_11_dump.sql
car_images_pending.sql
client/search_results.php

[Code]....

View 8 Replies


ADVERTISEMENT

Programming :: Grep - Include Glob With Shell Variable

Nov 10, 2010

Code:
grep -r $SEARCHDIR --include="day_$YYYY-$MM-*" -h -o -e PATTERN

The above command does exactly what I want: limit the search of files in $SEARCHDIR to those specified by --include.

I use double quotes rather than single quotes because of the shell variables. I would have thought this would cause the shell to expand the "*" but this doesn't seem to be the case.

View 1 Replies View Related

General :: Rsync - Cygwin On XP - Delete Flag Not Working

Aug 4, 2009

I installed cygwin with rsync on a Win XP Machine. My goal is to backup a folder from one hard drive to another (both on XP machine).

I run the following command from a batch file:

Works fine except the --delete flag is not working. Copies everything in source to destination, but doesn't delete some extra files that are present on the destination, but aren't on the source, which it's supposed to. I looked at the rsync man page, and I'm doing everything right... such as not using wildcard.

The same command works perfect on another computer (XP machine; source and dest both on XP machine).

View 1 Replies View Related

Ubuntu :: Difference Between /usr/local/include And /usr/include?

Jul 11, 2010

What is the difference between /usr/local/include and /usr/include? When I compile my program, is both /usr/local/include and /usr/include avaliable? Can I copy a file from /usr/local/include to /usr/include?

View 1 Replies View Related

Ubuntu :: Unity Application Search Results Include Non-working Shortcuts?

Jul 12, 2011

I'm running Ubuntu 11.4. I've played with different versions of Picasa, installing the Linux version via Ubuntu Software Center and also using Wine. At a certain point I had several versions of the application installed and things were getting. When I search for Picasa in the Unity application search field (clicking the button with the dot in the centre at the top left of my screen) I got several results for Picasa, some of which when clicked would start Picasa and some which wouldn't. When I remove all versions of Picasa both from Wine and native I still get some results for Picasa which don't start Picasa when clicked.

View 2 Replies View Related

Software :: Difference Between /usr/include And /usr/local/include?

Jul 8, 2010

I just downloaded the SDL source code. i did compile and make of this code.then i did make install. but i didnt see the files of SDL.h and lib.SDL.*** in /usr/include/ but later i found out that these files are placed in /usr/local/include and /usr/local/lib. how can i specifically install libraries on /usr/include and /usr/lib

View 2 Replies View Related

Ubuntu Networking :: Balkin F5d8010 Working In 10.10 - Newer Kernel(s) Include Support

Dec 10, 2010

I'm trying to get a Balkin f5d8010 working in Ubuntu 10.10, 64 bit. Most of what I see from searching the web is from 2008 or earlier. Anyone know if the newer kernel(s) include support for this, or can I get the drivers somewhere?

For what it's worth, lspci shows:

Code:

I came across this.

[url]

View 3 Replies View Related

Ubuntu :: "-r" Flag For Mailx Not Working?

Jun 22, 2010

I recently set up an email server at work on a ubuntu box, running exim4. Everything seems to be working fine, but when I try to change the "from" header in the message, its not letting me.

I wanted to send a message from the root user as "admin".

I assumed this would be easy as:

Code:
mailx -r admin recepientname

but for some reason the mailx program is claiming that "-r" is not a legitimate tag, when I try it tells me:

Code:
mail: invalid option -- r
usage: mail [-eIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] to-addr ...
[-- sendmail-options ...]
mail [-eIiNnv] -f [name]
mail [-eIiNnv] [-u user]

View 1 Replies View Related

General :: Grep Not Working?

Jul 15, 2010

I am trying to grep for A records in a bind zone file but I am failing.I am trying: grep "s+As+" db.domain.comBut there are no results.

View 12 Replies View Related

OpenSUSE :: Grep And Recursive -r Not Working?

Aug 9, 2010

works fine on a FAT32 dsk:

Code:

fgrep -iRn -C 2 'print' *.txt
---also recurses one level and displays all kinds of data
---------------------------------------------------------------
in root / ext4 directory:

Code:

fgrep -iRn -C 2 'print' *.* or fgrep -iRn -C 2 'print' *.txt
---displays msgs:
fgrep: *.*: No such file or directory
and
fgrep: *.txt: No such file or directory

I am probably missing something very basic.recursive does not seem to work from root directory.Is this (as they used to say) a feature? This is on an 11.2 system, upgraded to 11.3 (ran zypper verify to verify. According to it.. all is well).

View 9 Replies View Related

Software :: Grep Not Working Right With Colortail?

Jun 10, 2011

Put simply, this command won't work:

Code:
colortail /var/log/auth.log |grep -a "sshd"
However, these commands work perfectly:

[code]...

View 10 Replies View Related

Programming :: Input File - Grep Within Grep

Nov 22, 2010

I need to kind of grep within grep. My input file would be something like:

[Code]....

and I need to find the first occurrence of hello before MY PATTERN (hello 9008 in this case), so the output should be:

[Code]....

View 4 Replies View Related

Ubuntu :: Can't Boot Except With Noacpi Flag

Dec 18, 2010

yesterday ubuntu 10.04 hanged so i restarted it and i wasnt able to boot again all what i get is a blank screen with a blinking cursor... also windows7 dont boot (hangs during loading) after some googling i was able to boot only in linux by setting the noacpi flag during booting in grub but there was no internet connection (wired connection) i guess that noacpi is the reason ??

what i have tried :livecd: doesnt boot except with the noacpi flag and no internet connection reinstalling grub : doesnt solve the problem replace the power supply : nothing differ

View 4 Replies View Related

General :: What Does Mkdir -p Flag Do

Jul 19, 2010

What does the mkdir -p flag do? i.e the '-p' part?

View 1 Replies View Related

General :: What Does The -i Flag Mean In Rm File?

Oct 15, 2010

What does the -i flag mean in rm i my_file?

View 2 Replies View Related

General :: Necessary To Set Boot Flag?

Jan 24, 2011

In another forum (I each day visit a lot of them) a user was stating that you need to set a boot flag to make the root partition bootable, if you create partitions with GParted in order to install a Linux with GRUB2. Another was suggesting that, if you install Linux with GRUB2, the installer automatically sets a boot flag to the root partition to make it bootable (I don't remember the names). I neither believe the first nor the second thesis and I'm hoping that in this excellent forum some Gurus not only are saying I'm right but also give a comprehensive answer.

View 2 Replies View Related

General :: Getting To The GUI On Red Flag Desktop 5.0NE

May 26, 2010

I just bought an Eee Box with Red Flag Linux Desktop 5.0NE. My intention was to use it as a backup server at home to backup files and photos, etc.

How to I get to a graphical user interface so I can start to know what I'm doing?

When I switch on the machine, it says:

Red Flag Desktop 5.0NE
Kernel 2.6.21.0-22 on an i686
localhost login:

View 1 Replies View Related

Red Hat :: Default Value Of Stay_setuid Flag?

Apr 6, 2010

From the man page for sudoers (RHEL5.4), I notice that the default value for stay_setuid flag is 'OFF'.

In RHEL4.8, th man pages don't specify the default value.

What is (maybe) the default value of 'stay_setuid' in RHEL4 ?

View 1 Replies View Related

Ubuntu :: HP_RECOVERY Partition Is Hidden Despite Lack Of Flag?

Jan 9, 2010

Little explanation: OEM HP pcs come with an HP_RECOVERY partition which contains an installer which will wipe the HD and install vista (shivvers) Now despite how much I looooove vista, I was wondering why the OS_TOOLS partition shows up in places and recovery doesn't... especially cause niether have a hidden flag...

(As a side note, what the hell does OS_TOOLS do? google yields no answers)

View 8 Replies View Related

Ubuntu Servers :: Bootable Flag Doesn't Change

Feb 15, 2010

A week or two ago I installed Ubuntu Server 9.10 on a Intel DG945SEJT-based machine with two WD RE2-drives. I used unetbootin-windows-408.exe to to prepare a USB stick with the 32 bit version of the server version of Ubuntu. The installation went smooth without any problems.

Now when I'm trying to do the exact same thing to an almost identical server (larger HDD:s) I can't change the bootable flag to "on" on the physical raid partitions I create to host /.

I use the the following partition scheme: 10 GB /, 4 GB swap and the rest as /home. They're all on software-RAID1. Last time I did this (and many times before that) I was able to set the flag to "on".

When I press enter it just shows "updating filsystem.." etc. for some second but then nothing happens, the parameter is still on "off". This causes the whole installation to fail in the end due to an error when installing GRUB -> "can not install grub in /dev/sda "fatal error"".

My only conclusion is that the installer downloads some new files from the internet which causes this problem, as I said - nothing else is different except the harddrives (WD RE4-GP).

View 5 Replies View Related

Ubuntu :: Append Data To A File Where Immutable Flag Is Set?

Mar 10, 2010

I want to append data to a file where immutable flag is set..So i have tried this command chattr +a file_name to append data..But i am unable to append the data..

View 7 Replies View Related

Ubuntu Installation :: Delete The Partition With Flag Bootable?

Sep 6, 2010

Well I currently have a windows partition currently formatted as ext3 which has the partition flag bootable (It previously had Windows Vista on it). I also have a windows partition with NTFS filesystem with Windows 7 on it which is not bootable because the previously mentioned partition became formatted by me. And I also have more partitions for Ubuntu, which is currently the only OS working.

To show it visually: [URL]

So my question is can I delete the partition called "Inter" and recreate a new partition and format it again with ext3? It has the partition flag bootable, won't I loose all of the partitions this way? It's also the primary partition? Is there a big risk?

View 2 Replies View Related

Ubuntu :: Win7 - Changed Partition Flag To Boot

Jun 2, 2011

I just installed windows 7 and ubuntu stopped booting even though it was still there, so I thought I would just change the partition flag to boot. I found out later that I had to create a new mbr but after I changed the boot flag, windows 7 stopped booting and I tried changing it back, but it didnt work. So I was wondering if i didn't use the correct flags or is there another way to get windows 7 to boot again? I was using GParted to change the partition flags and that i am using windows 7 ultimate 64bit

View 1 Replies View Related

Ubuntu :: Make Init Use A Certain Flag For A Service It Starts?

Jun 15, 2011

I've installed MongoDB and I want init to start the database with the --journal flag. I'm quite rusty on how init works, but I know it involves the /etc/init and /etc/rc directories.I've found /lib/init/upstart-job and someone in the chat is suggesting that I just edit that bash script, but I can see it's involved with more than half the system service, so I'm a little hesitant to edit it. In fact, I'm pretty sure if I followed that advice I'd really screw up my system and then the person "helping" me would just stop responding.

View 1 Replies View Related

Fedora :: Ls Flag For Listing Directories?

Oct 31, 2010

Is the command "ls -d" meant for only listing directories? Because i tried it and it ALWAYS display just a blue dot. If not what is the correct way to show only directories? I.e. MSDOS equivalent "dir /ad".

View 2 Replies View Related

OpenSUSE :: 64-Bit Desktop Kernel Does Not Use NX CPU Flag

Dec 1, 2010

I recently install 64-bit OpenSuse 11.3, the first time I'd used Suse 64-bit - I have to say it has been all good so far, which is great. However, today I was experimenting with a tool that tests vulnerabilities which should be remedied if using an NX capable processor. I am running 2.6.34.7-0.5-desktop on an Intel Core i7. I downloaded a 64-bit compatible version of paxtest from :

[URL]

Running it I was surprised to see that the NX capabilities of the CPU do not appear to be honored. Here are my results:

PaXtest - Copyright(c) 2003,2004 by Peter Busser <peter@adamantix.org>

Released under the GNU Public Licence version 2 or later

Mode: blackhat
Linux callandor 2.6.34.7-0.5-desktop #1 SMP PREEMPT 2010-10-25 08:40:12 +0200 x86_64 x86_64 x86_64 GNU/Linux
Executable anonymous mapping : Killed
Executable bss : Killed

[code]....

From my understanding, NX was one of the big deals a few years back and was a main feature provided by the PAE kernel. I would have thought the default 64-bit kernel would have included NX support. I also thought per NX bit - Wikipedia, the free encyclopedia that NX support has been in the kernel since 2.6.8 I looked in config-2.6.34.7-0.5-desktop but did not see anything related to NX/XD config wise, other than DEBUG_NX_TEST What am I missing here? Shouln't this test fail in the Executable [bss, stack, etc.] tests on 64-bit with a NX capable processor?

View 4 Replies View Related

General :: Flag To Test Is Not Directory?

Mar 25, 2011

I found that this tests if a give filename is a directory or not:

Code:
-d "$FILENAME"

But what test for not a directory? I tried

Code:
-D "$FILENAME"

But this doesnt work?

View 1 Replies View Related

Security :: /tmp And /dev/shm - Mounted With The Noexec Flag

Dec 24, 2010

If /tmp and /dev/shm partitions are mounted with the noexec flag then this prevents someone from executing something in those partitions.

Example:

You will get permission denied

However if you execute that same script like this:

Then the script gets executed which makes the noexec flag useless.

If there any way to prevent this bug/vulnerability?

View 3 Replies View Related

Ubuntu Installation :: Remove Manually Installed Flag On Packages

Jan 5, 2010

After updating to Karmic, Synaptic shows almost all of my installed packages in the category "Installed (manual)", including about half of the packages that belong to a clean Ubuntu installation (e.g. apparmor, apt and hundreds of others). As a result, I can't easily get a list of those packages that I did indeed install manually and may want to remove. Is there a way of removing the "Installed (manual)" flag from all packages?

If I could do this, all packages that do not belong to the core Ubuntu system should show up as "Installed (auto removable)" and I could individually mark only those as manually installed that I really still need and let apt/synaptic uninstall everything else. I know that with today's hard disks, disk usage of installed packages is not an issue. But those packages accumulate over time and need to be updated with every security update and every ubuntu dist-upgrade, wasting time and bandwidth.

View 2 Replies View Related

Ubuntu :: Error: Line 29137: Bad Flag Alias Index: 0

May 9, 2010

I am getting the following errors continuously whenever I update/save a config file in /etc/

Code:

error: line 29136: bad flag vector alias
error: line 29137: bad flag alias index: 0

The config file got updated though. I am just worried that this may be something bad.I update the files using the command sudo gedit <config_file>. I haven't encountered this before in Karmic. Has anyone encountered the same error messages? This might be a problem with gedit. I tried doing the following and the error messages also came up:

1. In terminal, gedit foo.txt

2. In gedit, type anything and save

3. Terminal will show the following:

Code:

...
...
error: line 19234: bad flag vector alias

[code]....

Running artha from the terminal also causes the error.I've managed to get the top-most line of the error:

error: line 15: bad flag alias index: 0
error: line 15: bad flag vector alias

The hardest thing about this is I have no idea what's causing it. I thought it was gedit but running artha (from the terminal) also causes the error.Sigh. This is a clean install of Lucid, which again makes it even harder to know what causes it.

View 9 Replies View Related







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