09-17-2007
Probably because it can't treat files and directories the same?
Try "find ... -print -type f | xargs -n 1 chmod 777"
the "xargs -n 1 ...." means do a command per argument
the "find ... -type f" means only print files
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I've got 100 directories that each have 2 directories with in them.
Structered like this:
/home/domains/domain1/
through to
/home/domains/domain100/
and those 2 directories mentioned above are here:
/home/domains/domain1/directory1/
/home/domains/domain1/directory2/
through to... (7 Replies)
Discussion started by: Neko
7 Replies
2. UNIX for Advanced & Expert Users
Hello to all Unix gurus..
I am writing a generic script which takes the options of unix command as input and concatenate all the pieces and forms a complete executable command.
I am getting an error with the following command as I am resetting my own permission on the root directory. When the... (4 Replies)
Discussion started by: sdlayeeq
4 Replies
3. HP-UX
for security issue ,i would like to find all privilege tools that can setuid
how to do this (2 Replies)
Discussion started by: alert0919
2 Replies
4. Shell Programming and Scripting
hello there unix programmer
i have problem in combining file and their values..
here it is.
in my file1 i have values
1010<tab>10<tab>11<tab>13
1011<tab>11<tab>12<tab>14
in my file2 i have values
1010<tab>22<tab>23<tab>24
1011<tab>23<tab>24<tab>25
my desired output in shell... (7 Replies)
Discussion started by: jantzen16
7 Replies
5. UNIX and Linux Applications
i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies
6. Shell Programming and Scripting
Hello everyone, my friend is asking for yOur Help. He is asking the script for combined find and changemode utility... Thank you (4 Replies)
Discussion started by: iennetastic
4 Replies
7. Shell Programming and Scripting
I have two CSV lines, I.e.:
Line 1 = the,quick,brown,fox, ,jumps, ,the, ,dog
Line 2 = the,quick,brown,fox, , ,over, ,lazy,dog
Literally, columns missing from line 1 exist in line 2.
Any suggestions on quick ways to combined these two lines into one line:
New line:... (2 Replies)
Discussion started by: msf004
2 Replies
8. UNIX for Dummies Questions & Answers
I have a folder called "test" and this folder contains lots of other folders as sub folders, i intend to search for all file ending with .bin and then change the files to executable please how do i do this
---------- Post updated at 10:48 AM ---------- Previous update was at 10:42 AM ----------... (3 Replies)
Discussion started by: oyesiji
3 Replies
9. UNIX for Dummies Questions & Answers
Hello,
i need to search one word (snp1) from many files and copy the content of the columns of this word in new file.
example:
file 1:
SNP BP CHR P
snp1 1 3 0.01
snp2 2 2 0.05
.
.
file 2:
SNP BP CHR P
snp1 1 3 0.06
snp2 2 2 0.3
output... (6 Replies)
Discussion started by: biopsy
6 Replies
10. Shell Programming and Scripting
Hi everybody!
I try to printout a csv-file with the exeption of cell $1 and $4.
what i tried so far:
awk '{for(i = 1; i<=NF; i++);if(i == 1 || i == 4);else print($i)}' file.csv
..any ideas how it work and why my example fails?
Thanks in advance!
IMPe (3 Replies)
Discussion started by: IMPe
3 Replies
lorder(1) General Commands Manual lorder(1)
NAME
lorder - Finds the best order for member files in an object library
SYNOPSIS
lorder file...
DESCRIPTION
The lorder command is essentially obsolete. Use the following command in its place: % ar -ts file.a
The lorder command reads one or more object or library archive files, looks for external references, and writes a list of paired filenames
to standard output. The first of each pair of files contains references to identifiers that are defined in the second file. You can send
this list to the tsort command to find an ordering of a library member file suitable for 1-pass access by ld.
If object files do not end with lorder overlooks them and attributes their global symbols and references to some other file.
EXAMPLES
To create a subroutine library, enter: lorder charin.o scanfld.o scan.o scanln.o | tsort | xargs ar qv libsubs.a
(Enter this command entirely on one line, not on two lines as shown above.)
This creates a subroutine library named libsubs.a that contains charin.o, scanfld.o, scan.o, and scanln.o. The ordering of the object mod-
ules in the library is important. The lorder and tsort commands together add the subroutines to the library in the proper order.
Suppose that scan.o calls entry points in scanfld.o and scanln.o. scanfld.o also calls entry points in charin.o. First, the lorder command
creates a list of pairs that shows these dependencies: charin.o charin.o scanfld.o scanfld.o scan.o scan.o scanln.o scanln.o scanfld.o
charin.o scanln.o charin.o scan.o scanfld.o
This list is piped to the tsort command, which converts the list into the ordering that is needed:
scan.o scanfld.o scanln.o charin.o
Note that each module precedes the module it calls. charin.o, which does not call another module, is last. The second list is then piped
to xargs, which constructs and runs the following ar command: ar qv libsubs.a scan.o scanfld.o scanln.o charin.o
This ar command creates the properly ordered library.
FILES
Temporary files
SEE ALSO
Commands: ar(1), as(1), cc(1), ld(1), make(1), nm(1), size(1), strip(1), tsort(1), xargs(1)
Files: a.out(4), ar(4)
lorder(1)