11-19-2001
I used -prune but I found no difference.. can it be a little more?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am using AIX Version 5.1
If I moved a file say using this command
but the directory rpt did not exist would this dump the file?
I went back to the directory I was moving it from and the file was gone and when I looked in the directory I moved it to of course that directory was not found.... (9 Replies)
Discussion started by: rocker40
9 Replies
2. Shell Programming and Scripting
Hi There,
I am trying to move files, the file is present in this location:
/iAm4Free/test/generate/txt/information.txt
I need to move it to:
/iAm4Free/test1/generate/txt/information.txt
The only difference is the "test" is replaced with "test1". But the constraint is. The parent... (5 Replies)
Discussion started by: iAm4Free
5 Replies
3. Shell Programming and Scripting
I wrote a script which moves files on first in first out basis.
for i in `ls -ltr | grep ^- | head -10 | awk '{print $9}'`
do
mv $i Test/
done
But donno some reason, this is not working on my Linux box. May i know the reason?
Can the above script be done by using positional... (2 Replies)
Discussion started by: venkatesht
2 Replies
4. UNIX for Dummies Questions & Answers
Hi
I need to be able to move files from one central locations to different servers on our network. So i want all of our operators to place files to one area on the main storage area. From there i need a script that first checks the file is stable (finished copying)
then copy to another server,... (5 Replies)
Discussion started by: treds
5 Replies
5. Shell Programming and Scripting
HI All,
I am coding a shell script which will pick all the .csv files in a particular directoryand write it in to a .txt file, this .txt file i will use as a source in datastage for processing.
now after the processing is done I have to move and archive all the files in the .txt file to a... (5 Replies)
Discussion started by: subhasri_2020
5 Replies
6. UNIX for Dummies Questions & Answers
I am running a code like this
foreach list ($tmp)
mv *_${list}.txt ${chart}_${list}.txt #mv: when moving multiple files, last argument must be a directory
mv *_${list}.doc ${chart}_${list}.doc #mv: when moving multiple files, last argument must be a... (3 Replies)
Discussion started by: animesharma
3 Replies
7. Shell Programming and Scripting
Hi guys can you please help me with a script to find files with one row/1 line of content then move the file to another directory my script below runs but nothing happens to the files....Alternatively Ca I get a script to find the *.csv files with "wc -1" results = 1 then create a list of those... (5 Replies)
Discussion started by: Dj Moi
5 Replies
8. UNIX for Dummies Questions & Answers
Selected directories on our system generate alerts when they exceed 60% of the disk space so I have used gzip to make the files smaller on one of the directories in question (AdminServer logs). I want to move these to another directory what is the best way to make this happen?
Thanks.. (4 Replies)
Discussion started by: nosuchluck
4 Replies
9. UNIX for Dummies Questions & Answers
Hi guys,
i need to test a script on my RedHat which it's mounted on a VirtualBox (oracle VM).
So i need to copy a directory with subdirectories, from a remote host to my VM.
I'd like to do that within cmd not with program like Filezilla or something like that.
Any idea please? (4 Replies)
Discussion started by: Newer
4 Replies
10. AIX
I have a bunch of hidden files in a directory in AIX. I would like to move these hidden files as regular files to another directory.
Say i have the following files in directory /x
.test~1234~567
.report~5678~123
.find~9876~576
i would like to move them to directory /y as
test~1234~567... (10 Replies)
Discussion started by: umesh.narain
10 Replies
prune(1) General Commands Manual prune(1)
NAME
prune - Prune directed graphs
SYNOPSIS
prune [ -n node ] [ -N attrspec ] [ files ... ]
DESCRIPTION
prune reads directed graphs in the same format used by dot(1) and removes subgraphs rooted at nodes specified on the command line via
options. These nodes themselves will not be removed, but can be given attributes so that they can be easily located by a graph stream edi-
tor such as gvpr(1). prune correctly handles cycles, loops and multi-edges.
Both options can appear multiple times on the command line. All subgraphs rooted at the respective nodes given will then be processed. If a
node does not exist, prune will skip it and print a warning message to stderr. If multiple attributes are given, they will be applied to
all nodes that have been processed. prune writes the result to the stdout.
OPTIONS
-n name
Specifies name of node to prune.
-N attrspec
Specifies attribute that will be set (or changed if it exists) for any pruned node. attrspec is a string of the form attr=value.
EXAMPLES
An input graph test.dot of the form
digraph DG {
A -> B;
A -> C;
B -> D;
B -> E;
}
, processed by the command
prune -n B test.dot
would produce the following output (the actual code might be formatted in a slightly different way).
digraph DG {
A -> B;
A -> C;
}
Another input graph test.dot of the form
digraph DG {
A -> B;
A -> C;
B -> D;
B -> E;
C -> E;
}
(note the additional edge from C to E ), processed by the command
prune -n B -N color=red test.dot
results in
digraph DG {
B [color=red];
A -> B;
A -> C;
C -> E;
}
Node E has not been removed since its second parent C is not being pruned.
EXIT STATUS
prune returns 0 on successful completion. It returns 1 if an error occurs.
SEE ALSO
dot(1), gvpr(1)
AUTHOR
Marcus Harnisch <marcus.harnisch@gmx.net>
prune(1)