SHTOOL-FIXPERM.TMP(1) GNU Portable Shell Tool SHTOOL-FIXPERM.TMP(1)NAME
shtool-fixperm - GNU shtool file permission fixing command
SYNOPSIS
shtool fixperm [-v|--verbose] [-t|--trace] path [path ...]
DESCRIPTION
shtool fixperm fixes file permissions inside a source tree under path by cleaning up the permission bits. It determines the cleaned up
permission from the already set bits. It is intended to be run before a tarball is rolled (usually with shtool tarball) out of a source
tree. The trick is that this is more convenient than having to set the permissions manually or by using a large file list.
OPTIONS
The following command line options are available.
-v, --verbose
Display some processing information.
-t, --trace
Enable the output of the essential shell commands which are executed.
EXAMPLE
# Makefile.in
dist:
shtool fixperm -v *
...
HISTORY
The GNU shtool fixperm command was originally written by Ralf S. Engelschall <rse@engelschall.com> in 1996 for OSSP eperl. It was later
taken over into GNU shtool.
SEE ALSO shtool(1), chmod(1).
18-Jul-2008 shtool 2.0.8 SHTOOL-FIXPERM.TMP(1)
Check Out this Related Man Page
SHTOOL-MKSHADOW.TMP(1) GNU Portable Shell Tool SHTOOL-MKSHADOW.TMP(1)NAME
shtool-mkshadow - GNU shtool create shadow tree using symlinks
SYNOPSIS
shtool mkshadow [-v|--verbose] [-t|--trace] [-a|--all] src-dir dst-dir
DESCRIPTION
This command creates a shadow tree of src-dir under dst-dir by recreating the directory hierarchy of src-dir under dst-dir and by creating
the files of src-dir by linking them into the corresponding directories under dst-dir via symbolic links. When src-dir can be reached via
relative paths from dst-dir, relative symbolic links are used, too. This high-level functionality is originally designed for developers to
create copies of source trees.
OPTIONS
The following command line options are available.
-v, --verbose
Display some processing information.
-t, --trace
Enable the output of the essential shell commands which are executed.
-a, --all
Really shadow all files and directories in src-dir. Default is to skip CVS related files and directories, backup files, object files,
etc.
EXAMPLE
# shell script
shtool mkshadow -v -a . /tmp/shadow
HISTORY
The GNU shtool mkshadow command was originally written by Ralf S. Engelschall <rse@engelschall.com> in 1998 for Apache. It was later
revised and taken over into GNU shtool.
SEE ALSO shtool(1), ln(1).
18-Jul-2008 shtool 2.0.8 SHTOOL-MKSHADOW.TMP(1)
:) Hi,
I am assigning value to array in for loop,
here is the code:
for arg in $FILE
do
TMP=`dirname $arg`
${DIR}=$TMP
echo ${DIR}
let "i = $i + 1"
done
Here TMP gives,
d1/data/BCR
d1/data/BLM
Getting following error: (3 Replies)
cp $PATHLOGS/$DATE/*.* $TMP/logs_tmp/
cp $PATHLOGS/$DATE1/*.* $TMP/logs_tmp/
Before copying the files I have to check if the directory $DATE1 and $DATE2 exists.
If directory exists then, check if the folder contains some files.
if the file exists then, check if the file size is greater... (3 Replies)
I have changed the premission of a file to 777. Now I would like to change permission to previously used ( UNDO ). Is there any command ?:confused: (3 Replies)
Everytime I try to run a shell script I get the error message permission denied.
So I have googled/searched around and have been using the command chmod u+rwx (filename) to give myself permission to execute my program. However, I was wondering if there was anyway to actually just this to... (5 Replies)
Hi All,
So I'm new to scripting and I've been put in a position to convert a bunch of files with specific extensions in a folder and all its subfolders to uppercase including their extension. I figure so far I could do something like this:
...
...
and then input $line into another bash... (12 Replies)
Hello,
I am trying to stream lines written into file. When first source is down, I expect the code to swap to second line and run it.
Script below works as usual and it prints out each line of the input file (s.txt):
#!/bin/bash
while read -r line;
do
echo "$line"
done <"$1"
exit 0Output... (12 Replies)