Never mind, I did more research, and now am using grep -v './temp/', dumping it into a new text file, then using mv -f to make that the original file. Thanks for reading!
---------------
Hi folks, I haven't done any scripting in years, and now I have a problem. Our backup tapes are filling up, and I'd like to remove an entire directory from the backup. The script we use creates a file for the backup (/tmp/backuplist), and I'd like to use grep to help me remove anything in the "/temp" directory. I've attached the script if you'd like an example.
If someone could tell me the syntax I'd need to do to remove this from my backup, I'd greatly appreciate it - thank you!
I have seen this used several times but not really sure of what it actually does. I am confused with the second grep as the argument to the first.
some commands | grep -v grep | some other commands
Can anyone provide an explanation?
Thanks, (5 Replies)
Hello. I'm a complete newbie to C programming. I have a C program that wasn't written by me where I need to write some wrappers around it to automate and make it easier for a client to use. The problem is that the program accepts standard input to control the program... I'm hoping to find a simple... (6 Replies)
How come grep testfile1 won't find anything in testfile1 (even though the characters sd are there in great quantity), but grep '' testfile1 will find plenty?
Do the single quotes prevent the shell from interpreting the testfile1 is interpreted as: grep *test whether or not characters sd exist*... (5 Replies)
I tried searching for answers but didn't find any.
When I grep a file results read
4.2.2.2
4.4.4.2
4.5.6.7
But I just want to select each result individually. For Example I want to be able to say
variable1="first grep result"
variable2="second grep result"
variable3="third grep... (8 Replies)
This should be so easy...
I want to find all the apps in /Applications that start with the lower case i (e.g. iTunes.app, iSync.app, iCal.app) They should all have the .app extension. I've tried:
ls /Applications |grep -o i*.app
ls /Applications/i*.app
Anyhow, I just want to see what apps... (2 Replies)
I hope someone can help me.
I have a folder e.g. /opt/application
Under that are many sub folders e.g.
Folder1
Folder2
Folder3
Folder4
Folder5
Folder6
etc
In some of these fodlers (not all of them) is a file called errors.log
I need to run a grep that will start at... (3 Replies)
Cheers!
In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not?
To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
Hello. I'm a noob, but have managed to get to the point of Solaris storage server running 4 X 3Tb in a RAIDZ pool. My current system is sharing via SMB a few different ZFS devices (puddle/TV, puddle/Movies, puddle/Music, etc).
My main server is going to be OSX, Mountain Lion. What I have set... (4 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Use the less command to view the words file.
To see the results of a grep that returns many rows, pipe the... (3 Replies)
Discussion started by: asaint
3 Replies
LEARN ABOUT DEBIAN
rdiff-backup-fs
RDIFF-BACKUP-FS(1) General Commands Manual RDIFF-BACKUP-FS(1)NAME
rdiff-backup-fs - Filesystem for accessing rdiff-backup archives.
SYNOPSIS
rdiff-backup-fs <mount_point> <repository> [repositories ...] [-option ...]
DESCRIPTION
rdiff-backup-fs is a filesystem in userspace that reads rdiff-backup archives and provides convenient access.
OPTIONS --debug <0-4>
Run rdiff-backup-fs in foreground with given verbosity of debug messages.
-f, --full
Store information about all revisions in memory. CAUTION: this may take a lot of memory if your archive contains many revisions.
-l, --last
Displays files from the most recent increment as directories, each holding every version of the file. CAUTION: this stores informa-
tion about all revisions in memory and therefore may take a lot of memory if archive contains many revisions.
-c <n>, --caching <n>
How many files retrieved from the rdiff-backup archive may be cached by filesystem. By default rdiff-backup-fs will cache up to 10
files. If this switch is set to 0, no caching will be done.
-r <n>, --revisions <n>
How many revisions should be stored in memory for on demand revision retrieval. By default rdiff-backup-fs will store up to 10 revi-
sions in memory.
-d, --directory <path>
Set directory for directory with temporary files. By default rdiff-backup-fs uses /tmp.
-v, --version
Print version of rdiff-backup-fs and exit.
SEE ALSO rdiff-backup(1)COPYRIGHT
rdiff-backup-fs is Copyright (c) 2007-2011 Filip Gruszczyski.
rdiff-backup-fs is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
AUTHORS
Filip Gruszczyski <gruszczy@gmail.com>
RDIFF-BACKUP-FS(1)