02-16-2006
google:c shell considered harmful
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Simple shell script :
date
test_fn()
{
echo "function within test shell script "
}
on the shell prompt I run
> . test
Then I invoke the function on the command line as below :
test_fn()
It echos the line
function within test shell script
and works as expected.
... (5 Replies)
Discussion started by: r_subrahmanian
5 Replies
2. UNIX for Advanced & Expert Users
Hi all,
In windows script, passing arguments can be done in both "call by value" and
"call by reference". Refer
http://www.commandline.co.uk/lib/treeview/index.php
Can we have call by reference in unix too?
Thanks in adavance,
Sonal. (5 Replies)
Discussion started by: sonaluphale
5 Replies
3. Shell Programming and Scripting
Hi All,
I have a very long code called myfunction -> "if ..... else if .... else if ..end if "
And i have several other codes which need to call the "myfunction" code.
How can C-shell call a function "B]myfunction" ? Can any body give me an example ?? (1 Reply)
Discussion started by: Raynon
1 Replies
4. Shell Programming and Scripting
Hi,
I have a query ..
i have 2 scripts say 1.sh and 2.sh
1.sh contains many functions written using shell scripts.
2.sh is a script which needs to call the functions definded in 1.sh
function calls are with arguments.
Can some one tell me how to call the functions from 2.sh?
Thanks in... (6 Replies)
Discussion started by: jisha
6 Replies
5. Shell Programming and Scripting
hi friends,
I am working with shell commands and all these works properly.
Then i created a small function which includes these commands.
Now the problem arises. When the commands are run by calling this fuction.it
shows error.
Why i am not able to run the unix command inside a function.... (1 Reply)
Discussion started by: gjithin
1 Replies
6. Shell Programming and Scripting
Hi,
I have a K shell
a.ksh
function abc {
// Some logic
}
In
b.ksh
i have included the a.ksh
./a.ksh
I want to call the abc function from this b.ksh script.
Thanks
Vijay (2 Replies)
Discussion started by: vijaykrc
2 Replies
7. Shell Programming and Scripting
Hi all,
I have a doubt..
If we create shell functions through a script itself, can we use the same functions in command line also..
for example:
$ cat a.sh
##### Functions
function system_info
{
}
function show_uptime
{
} (4 Replies)
Discussion started by: raghu.iv85
4 Replies
8. Shell Programming and Scripting
I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line
if
then... (8 Replies)
Discussion started by: saku
8 Replies
9. Shell Programming and Scripting
so i have a very big script that has the following format:
functionA () {
....
...
....
}
Results=$(functionA)
the code inside of functionA is very huge. so by the time the script gets to the "Results=" part, several seconds have already passed. the script is about 15MB in size.... (4 Replies)
Discussion started by: SkySmart
4 Replies
10. Shell Programming and Scripting
so i noticed that when a shell script has a function defined in it, running "sh -x" on that shell script from the command line doesnt show what the function is doing. i like this.
is there anyway for anyone to get around that? to be able to see exactly what a function or functions are doing? (4 Replies)
Discussion started by: SkySmart
4 Replies
METADATA(1) User Commands METADATA(1)
NAME
MAT - Metadata Anonymisation Toolkit
SYNOPSIS
mat [options] files
mat-gui
DESCRIPTION
The Metadata Anonymisation Toolkit is a lib (with a CLI and a GUI) created to anonymise file's metadata. In essence, metadata answer who,
what, when, where, why, and how about every face of the data that are being documented. They can be a risk for privacy.
OPTIONS
-h, --help
show this help message and exit
-a, --add2archive
Add to outputed archive non-supported filetypes
-b, --backup
Keep a backup copy
-c, --check
Check if a file is free of harmful metadatas
-d, --display
List all the harmful meta of a file without removing them
-f, --force
Don't check if files are clean before cleaning
-l, --list
List all supported fileformat
-v, --version
Display version and exit
EXAMPLES
mat --display mydocument.pdf
Display the mydocument.pdf's harmful metadata
mat --check *.jpg
Check all the jpg images from the current folder
NOTES
MAT only process metadata, it does not handle file data. Blame yourself if you are traced back because of the data of your files. MAT is
not perfect : In most of the cases, a forensic expert with a lot of time can trace back your document. If you want absolute privacy, use
plain-text.
AUTHOR
Julien (jvoisin) Voisin <pouicpouicpouic@gmail.com>, during the GSoC 2011
BUGS
MAT does not handle watermaking/tattoo for now.
SEE ALSO
exiftool, hachoir-metadata
Metadata Anonymisation Toolkit August 2011 METADATA(1)