Ubuntu :: -cp Recursive But Ignore Some Source

Jul 4, 2010

I'm still trying to learn, but seem to be hitting a few walls when it comes to man pages. I don't know where else to look so I hope to get some help here - or at least another idea. I'm trying to learn c++ as well as *nix terminal commands, and I like to make a backup of my compiled program and .c files each time I reach a successful compile (99-100% bug free).

My problem is I like to use an alias instead of a script to backup my work onto a USB. I don't want the hundreds of log files (10K+) copied since I usually delete them anyway.

My alias:

How do I tell cp to ignore the folder '~/work/log' during the backup?

If cp doesn't have such an option, I am open to other ideas, but I would still prefer something that I can alias since I already backup my .bash_aliases file.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Prevent Recursive Mappings In .vimrc?

Aug 12, 2010

I've added the following to my .vimrc:

Code:
function CommentLines()
:'<,'>s/^///

[code]....

View 1 Replies View Related

Ubuntu Servers :: Can't Get Bind9 Recursive To Work?

Apr 11, 2011

I have googled for hours and can not find an answer to what this means.

dig @172.16.255.254 twitter.com.
; <<>> DiG 9.7.0-P1 <<>> @172.16.255.254 twitter.com.
; (1 server found)
;; global options: +cmd
;; Got answer:

[Code]...

And I have a very long debuging log file I will not post unless requested. I also have added a ufw allow from all to all rule for testing purposes only.

View 6 Replies View Related

Ubuntu :: Recursive Site Downloader Unsuitable

Apr 21, 2011

To do this, I would like to recursively download all the pages within the domain, such that their link structure is preserved. This would be tedious to do by hand, however. As it stands, I could probably use wget for this, but I would prefer something more specially designed for site downloading. I have already tried webHTTrack, but found it unsuitable. Perhaps httrack with a particular set of command line parameters would work better?

View 3 Replies View Related

Ubuntu Security :: Revert Original User For Fs / And Recursive

Jul 7, 2010

Trying to configurate gadmid-bind, I change the user and group of my entire filesystem, I archive some advance getting all back but for now,sudo leave me with a problem about guid, i changed sudoers to root againg, but i don't get all back.I dosen't have network connection, because nm-applet dosen't start on my user, and when i run on a xserver with root user it give me: The device is not ready.

View 9 Replies View Related

Ubuntu :: Get A Recursive Listing Of All Files Under The Current Directory?

Jan 2, 2011

If I runls -R1I get a recursive listing of all files under the current directory.However, if I dols -R1 *.avi, ie I want to search only for files with the file descriptor .avi, I get an errorQuote:ls: cannot access *.avi:No such file or directorySo it seems I am using ls incorrectly. What's the correct way to use wild card pattern matching when using the -R switch? Or maybe that isn't possible?

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

General :: How To Write Non Recursive Makefile

Dec 14, 2010

I want to write simple non recursive makefile, but I am not getting syntax of it. Please give me example with simple description. I had read docs, html's but I am not getting how that works please give simple example. consider I have following directory structure.

[Code]...

View 1 Replies View Related

Programming :: Getting Perl Simple Recursive Sub?

Feb 16, 2011

This is my sub;

Code:

sub projName
{
print "Enter project name: " ;
$PROJ = <STDIN>;
print "";

[code]....

I can call this routine and it works fine when I enter a valid name for $PROJ. If I enter an invalid name it goes to the else block and prints the statement. However, it does not call itself. Instead the script just exits.I've googled 'perl recursive subroutines' and the example don't appear to be doing anything different.

View 4 Replies View Related

Programming :: Recursive Search In A Tar.bz2 File?

Jul 14, 2011

I am looking for a one liner to search for a string in file(s) which are in a tar ball (.tar.bz2 in my case)

Code:
-bash-3.2$ tar -tjf /var/log/ABC/07142011-1412.tar.bz2
var/log/ABC/07142011-1412/
var/log/ABC/07142011-1412/live_hosts.txt
var/log/ABC/07142011-1412/all_hosts.txt
var/log/ABC/07142011-1412/LOGS.txt

How can I recursively look inside all the txt files in this tar file ?

View 10 Replies View Related

Programming :: SH - Recursive Variable Substitution

Jul 1, 2010

I have the following test code fragment:

Code:

When I try to run it 'sh' reports the following message^

Code:

You might understand what I mean with that test code so could you recommend how to achieve the required effect?

View 7 Replies View Related

Programming :: Set A Recursive Function As Inline?

Feb 3, 2011

Is it good to set a recursive function as inline? I would think it would increase the performance speed of the program.

View 2 Replies View Related

Ubuntu Networking :: Recursive Shared Media Folders (samba)?

Mar 20, 2011

I currently have samba set up to share to XBMC. One of my shares contains many folders. But the permissions aren't given to access those folder only the container folder.

I can browse the folders recursively with a windows Laptop

How do i enable recursive permissions?

View 9 Replies View Related

Ubuntu One :: Way To Ignore Whole Directories

Sep 25, 2010

is there any way to ignore whole directories in Ubuntu-One? I figured out that you can use /etc/ xdg/ ubuntuone/syncdaemon.conf to ignore files by adding a regex to ignore.default, but I assume this only applies to files. So, how can I avoid the syncing of some subdirectories of my synced folders? I guess I could use symlinks as a workaround, because I read somewhere that Ubuntu-One wouldn't follow them.

View 1 Replies View Related

General :: Command Line - Recursive Rm With Condition?

Mar 13, 2011

I have the following folder structure:

parent
- folder1
- main1.x
- main1.y

[Code].....

So, how can I achieve this?

View 2 Replies View Related

General :: Recursive String-search In Files?

Oct 28, 2009

find out a command to search among all *.dat files in a certain path (including subdirectories) looking for the following text in them:

Code:

--------------------------------------------------------------------------------
Elements with small area
Element Adjusted nodes
--------- --------------
16294 NO
17889 NO

and getting the list of elements with small area printed in a file "ErrorEl.txt". The output should have this form:

"/path/01/A.dat
bad-el#01
bad-el#02

[code]....

I know already how to find out the dat files containg a certain string

Code:

c=/path/
grep -R --include="*.dat" "Elements with small area" $c | cut -d: -f1>> ErrorEl.txt

but I don't know then how to get the element numbers(16294 and 17889 in the example above)

View 11 Replies View Related

Security :: SUDO Permission Setup On Particular Dir - Recursive

May 6, 2010

I am looking for a way to setup sudo access for a user, so that he can change permission of all files of the given dir.

eg:

By this user can change ownership of files which are on depth bellow to given dir (i.e /etc/userA-conf/), but while trying to change permission of /etc/userA-conf/../user-conf2 , getting error, user userA don;t have that permission.

Let me know what will be the right regex/pattern to achieve this.

In Solaris it's working fine, but I am trying it on Linux RHEL5.

View 3 Replies View Related

Programming :: Make Recursive Makefile Work?

Jun 8, 2011

I'm trying to make recursive makefile work but it's giving me two problems. I have a top folder with the main Makefile and one Makefile for each sub folder 'one' and 'two'. Makefile in subfolder 'one' and 'two' are identical. The top Makefile (still a bit messy) looking like this:

Code:
# Directories
CC = gcc
CFLAGS = -Wall -Wextra
TARGET_DIR = bin
MAIN_FILE = one.c

[Code]...

View 4 Replies View Related

Ubuntu :: Tell Apt-get Not To Remove (or Ignore) A Package

Apr 25, 2010

There is a package on my system that won't be removed. How can I tell apt-get not to remove that specific file?

sudo apt-get purge (remove) texlive-lang-cyrillic won't work.

View 2 Replies View Related

Ubuntu :: How To Ignore Certain Packages During Update

Aug 11, 2010

if there is a way to blacklist certain packages when updates come around. The reason for this is that I have two repositories that contain Smplayer and Mplayer. But one repository versions of this aren't VDPAU active (but the build is newer).

View 1 Replies View Related

Ubuntu Installation :: Tell Apt To Ignore Certain Updates?

Sep 18, 2010

I've updated my 10.04 kernel to 2.6.34 on my Asus Eee PC to fix wireless issues. However, the update manager keeps bugging me to "upgrade" to 2.6.32. How do I tell it to ignore this?

View 3 Replies View Related

Ubuntu :: Set Cpu Scaling To Ignore BOINC?

Nov 2, 2010

I am trying to set up my cpu freq. scaling to ignore BOINC. From what google has shown me this is done by setting a value of 1 for ignore_nice_load. However the location of said value does not seem to be the same in 10.04 as in the results from google. How do i set this or is there a better way to keep idle processes like BOINC from increasing the my cpu frequency?

View 4 Replies View Related

General :: Recursive Delete Specific Files From Sub-directories?

Mar 4, 2011

I would like to be able to recursively delete specific various files from a directory and sub-directories. For example:

Dir/
|_sub1/
|
|_ _rm *file1 *file2 *file3

[code]....

View 11 Replies View Related

General :: Recursive Searching Files In Directory Matching Given Name?

Apr 16, 2010

I am writing a shell script that finds all files named <myFile> in a directory <dir> or any of its subdirectories, recursively. I also need to take care of symbolic links that may form cycles, to avoid infinite loops. I am not supposed to use find command for the same

I started writing the code but got stuck. I thought using recursion may be a smart way, but its not working.

Code:
#!/bin/sh
findFiles()
{
thisDIR=$1
#cd $thisDIR
code....

View 5 Replies View Related

Software :: Create Symbolic Links From Recursive Folders?

Jun 7, 2010

However, can I run a command and create symbolic links for all files in a given folder and its subfolders and have all the links be in one folder?

I have a file structure such as:

FolderA
FolderB
FolderC

and I want to have symbolic links for all the files in the A, B, and C all in one new folder (FolderALL) for example. I have hundreds of folders that need to be done, so a simple 1 line command would be ideal if possible.

View 13 Replies View Related

Programming :: Compiling Recursive Makefile In Directory Structure

May 18, 2011

I'm having problems with compiling recursive Makefiles in my directory structure:
My folder layout is:
top/|- one/|- one.c (With main function)|- zero.c|- two/|- two.cin my top folder the make file looks like:

Code:
MAKE_DIRECTORIES = one two
.PHONY: all
all: $(MAKE_DIRECTORIES)

.PHONY: $(MAKE_DIRECTORIES)
$(MAKE_DIRECTORIES):
@echo $@
$(MAKE) --directory=$@
in my one and two folder I have the following Makefile:

Code:
.PHONE: all
all:
@echo $@
$(CC) $(CFLAGS) *.c
But when I compile it from top folder: make

I get following output:
Code:
one
two
Which states that directory statement by echo in main Makefile is ok but the files are not compiled in one and two.

View 5 Replies View Related

General :: Recursive Filesystem Notifications (inotify) For Karmic Koala?

Mar 11, 2010

I need a program which generates events when a file is moved, removed or its extended attributes are changed. I'm running Ubuntu Karmic Koala 32-bit desktop.inotify is the standard solution for such problems, but inotify cannot install a recursive watch, so the only option is to the equivalent of find on the filesystem, and add an inotify watch on each node. This is what e.g. inotifywatch does. This won't work for me, because my filesystem has 1 million files, and installing watches to all of them takes forever.

fanotify could work except that I would have to patch the kernel for that (I'm currently running 2.6.31-20), and maintaining patches to the Linux kernel is beyond my time commitment.I used to use rfsdelta (whose kernel module is similar to rlocate), but it just doesn't compile on 2.6.31, because it uses obsolete Linux security framework APIs.

View 1 Replies View Related

General :: Recursive Search For Files That Hold Some Specific Text?

Jan 18, 2011

How do I recursively generate a text file which has a list of all files on my server which contain a specific string anywhere in the files?

I know the following command can be used to replace a string recursively

find /var/www -type f -print0 | xargs -0 sed -i 's/old string/new string/g'

I do not want to replace the string, I just want a list of all files which contain the string.

View 4 Replies View Related

General :: Make A Cronjob Who Makes A Tag.gz Of Everything Inside A Directory In A Recursive Way?

Mar 23, 2011

I would like to make a cronjob who makes a tag.gz of everything inside a directory in a recursive way. BUT there is a HUGE directory full of jpg's. I don't want this one in the backup.Additional points if it can backup symbolic links.

View 2 Replies View Related

General :: Cp -ru -> Using The Recursive Copy And Update From Internal Drive To A Mounted Nas

May 4, 2011

I've mounted my NAS drive under the /media/ directory. I've copied a bunch of files from my current /var/www directory, using cp -Rpv (preserve). Now I want to do a cp -Rup /var/www/ /media/magneto/testing.cdw/ Based on the fact that these are two different file systems, i.e. one is a networked NAS connected through Samba, and the other is my computers internal drive. Will I run into problems with the date and time? how can I check before I run the copy?

View 4 Replies View Related







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