06-29-2012
Quote:
Originally Posted by
flyawaymike
Pardon the lack of indentation in that code, it doesn't pass through when pasting in it.
Put code inside [CODE] tags, not [QUOTE] tags.
(You can edit your post to fix it.)
This User Gave Thanks to cfajohnson For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I need to know how to copy hidden files recursively?
cp -r sourceDir/* targetDir/.
ignores the hidden files.
Thank you!! (2 Replies)
Discussion started by: usfrog
2 Replies
2. UNIX for Dummies Questions & Answers
I have a report file that is generated every day by a scheduled process.
Each day the file is written to a directory named .../blah_blah/Y07/MM-DD-YY/reportmmddyy.tab
I want to copy all of this reports to a separate directory without having to do it one by one.
However, if I try
cp... (3 Replies)
Discussion started by: ken2834
3 Replies
3. Cybersecurity
I'm looking for a easy way to do a recursive search through a directory structure for all files that begin with '.' that are group or other writable.
Any suggestions? (5 Replies)
Discussion started by: maficdan
5 Replies
4. Shell Programming and Scripting
################################################################
Copy this script to your path from where you want to search for all the files and directories in subdirectories recursively.
#################################################################
code starts here... (2 Replies)
Discussion started by: Ramit_Gupta
2 Replies
5. UNIX for Dummies Questions & Answers
Hi guys,
I want to copy folder and sub folders only. I don't want the files. If i use cp -r command it will copy entirely with files.
Could any one suggest me.
Thanks in advance (1 Reply)
Discussion started by: karthik82
1 Replies
6. UNIX for Dummies Questions & Answers
how can i copy those files into other directories have the same name but different in the end
i have files in directory called test:
10_10_asdadfsdfad.txt
10_10_11_asdawqefwkjasd.txt
10_10_11_12_asdafjjhoqwd.txt
i want to put them in exist directory thart i have on my system
i have... (1 Reply)
Discussion started by: t17
1 Replies
7. Shell Programming and Scripting
hi;
i need a script which will go to all directories and subdirectories and print the filenames as follow;
here i m printing only files listing in current directory
reason i m doing this is coz i want to perform some operations according to filename achieved so cant use find command;... (4 Replies)
Discussion started by: ajaypadvi
4 Replies
8. Shell Programming and Scripting
Hello again.
Well, I need help again sooner as I thought. Now I want to search for files with a known name within all subdirs, and copy the to differently named files in the same directory.
For example if I had only one file to copy, I would just usecp fileName newFileNamebut to do this... (1 Reply)
Discussion started by: cabaciucia
1 Replies
9. HP-UX
Dear All,
I will appreciate any help received. Our system is running on hpux v1
My problem is as follows:
We have many customer folders with name fd000100, fd000101 and so on
e.g.
(Testrun)(testsqa):/>ll /TESTrun/fd000100
total 48
drwxrwx--- 2 fq000100 test 96 Jun 27 2004... (17 Replies)
Discussion started by: mhbd
17 Replies
10. Shell Programming and Scripting
Hi Guys,
I need to copy the files to respective directories based on name of the file. My script is something like below
con=$1
for file in `cat $con`
do
file_tmp=$(ls -t1 $path| grep -i $file | head -n 1)
echo $file_tmp
if
then
cp $path$file_tmp $DIR/ap
if
then... (16 Replies)
Discussion started by: Master_Mind
16 Replies
LEARN ABOUT DEBIAN
indent
FBB::Indent(3bobcat) Text Indentation FBB::Indent(3bobcat)
NAME
FBB::Indent - Configurable text indentation
SYNOPSIS
#include <bobcat/indent>
DESCRIPTION
FBB::Indent and its various manipulators offer text-indentation. Text inserted into streams is indented over a fully configurable amount
using a set of manipulators and (static) member functions.
NAMESPACE
FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.
INHERITS FROM
-
STATIC MEMBER FUNCTIONS
o void clear():
Resets the indentation level to zero. The indent manipulator will have no visible effect after calling this member.
o void dec():
Reduces the indentation level by the current increment (4 by default). The indentation level is never reduces to a negative value.
o void inc():
Increments the indentation level by the current increment (4 by default).
o void setInc(size_t inc):
Defines the increment value used with the dec and inc members.
o void setWidth(size_t width):
Defines the indentation to a specific value width.
MANIPULATORS
The following manipulators (which are not part of the FBB::Indent, class, but are defined in the FBB namespace) can be inserted into the
FBB::Indent object:
o FBB::decindent:
This manipulator will first call Indent::dec. Then FBB::indent is called. The effect will be that the indentation level is reduced
just before the indentation is inserted.
o FBB::incindent:
This manipulator will first call Indent::inc. Then FBB::indent is called. The effect will be that the indentation level is incre-
mented just before the indentation is inserted.
o FBB::indent:
This manipulator will insert the currently defined number of indentation blanks into the ostream for which it it called.
o FBB::indentdec:
This manipulator will first call FBB::indent, Then Indent::dec is called. The effect will be that the indentation is inserted first,
immediately followed by a reduction of the indentation level.
o FBB::indentinc:
This manipulator will first call FBB::indent, Then Indent::inc is called. The effect will be that the indentation is inserted first,
immediately followed by a increment of the indentation level.
o FBB::nlindent:
This manipulator will insert a newline character (
). Then FBB::indent is called, indenting the next line over the currently
defined number of blanks.
EXAMPLE
using namespace std;
using namespace FBB;
int main()
{
cout << indentinc << "Not indented" <<
nlindent << "Indenting with 4 blanks
";
Indent::clear();
cout << "No indentation
";
}
FILES
bobcat/indent - defines the class interface
SEE ALSO
bobcat(7)
BUGS
None Reported.
DISTRIBUTION FILES
o bobcat_3.01.00-x.dsc: detached signature;
o bobcat_3.01.00-x.tar.gz: source archive;
o bobcat_3.01.00-x_i386.changes: change log;
o libbobcat1_3.01.00-x_*.deb: debian package holding the libraries;
o libbobcat1-dev_3.01.00-x_*.deb: debian package holding the libraries, headers and manual pages;
o http://sourceforge.net/projects/bobcat: public archive location;
BOBCAT
Bobcat is an acronym of `Brokken's Own Base Classes And Templates'.
COPYRIGHT
This is free software, distributed under the terms of the GNU General Public License (GPL).
AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl).
libbobcat1-dev_3.01.00-x.tar.gz 2005-2012 FBB::Indent(3bobcat)