10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to filter out the special character whose ascii value doesn't fall within the range "" .
Example:� or Ć. So in that case is there any defined range which will filter out this characters.
I can filter those which falls withing "" . Need to filter those special chracter which doesn't... (14 Replies)
Discussion started by: Abhijit Sen
2. Shell Programming and Scripting
while getopts ":n:t:" opt; do
case "$opt" in
if ping -c 2 $host >/dev/null 2>&1
echo Host... (17 Replies)
Discussion started by: Vishal_dba
3. Shell Programming and Scripting
Is there any simple way to get/identify the variables that are used in a file and print those variable names. If I have something like this in a file,
I want to display the variables 'var', 'var2' and 'var3' from that file. I tried something like... (6 Replies)
Discussion started by: pvamsikr
4. Shell Programming and Scripting
I have the below scenario in my environment
Developers used to copy file from windows to Linux box. Some time on the copied file developers miss to run the dos2unix utility. Because of this script gets failed during the execution. Most of the failures are due to the dos2unix format... (7 Replies)
Discussion started by: kalpeer
5. Shell Programming and Scripting
Hi everyone I am new to the forums.
I haven't done much linux myself but I have been asked if I can do the following.
Write a linux script that needs to scan a certain folder every x amount of minutes and if there is a file in the folder then it needs to call a different script.
Is this... (2 Replies)
Discussion started by: Bosbaba
6. Shell Programming and Scripting
I have two files. File1 or the master file contains two columns separated by a delimiter:
File 2 which is the file to be processed has only a single column
What I need is an awk script to identify unique names from file 2 which are not found in the... (6 Replies)
Discussion started by: gimley
7. Shell Programming and Scripting
Have a script that I'm trying to adapt for something else, but I do not understand the following lines. Can anyone help?
I know what expr does, `expr 8 + 2`, but:
FILENAME=`expr //$FILE : '.*/\(.*\)'`
UNPACKDIR=`echo $FILE | sed -e s/$FILENAME//g`
Thanks (6 Replies)
Discussion started by: bound4h
I need to write a script capable of identifying when a high cpu utilitzation process. It sounds simple but we are on a AIX 5.3 environment with Virtual CPU's (VP's) and logical CPU's. Please any ideas or tips would be highly appreciated. Thanks.
Harby. (6 Replies)
Discussion started by: arizah
9. Shell Programming and Scripting
I am new to BASH and writing a small script to identify the SHELL .
echo "it's Bash"
echo "it's not Bash"
$ bash -x a.sh
a.sh: line 4:
where am I missing . PLease advice . (10 Replies)
Discussion started by: talashil
10. Shell Programming and Scripting
I have two scripts ( /tmp/k1.sh and /tmp/k2.sh ).
k1.sh calls the k2.sh .
For security reasons, I must be sure that the k2.sh is being called by the k1.sh .
Is it possible for the k2.sh identify that it's been called by the k1.sh?
I mean, identify the complete path of the k1.sh (... (6 Replies)
Discussion started by: crematoriumm
BZEXE(1) General Commands Manual BZEXE(1)
bzexe - compress executable files in place
bzexe [ name ... ]
The bzexe utility allows you to compress executables in place and have them automatically uncompress and execute when you run them (at a
penalty in performance). For example if you execute ``bzexe /bin/cat'' it will create the following two files:
-r-xr-xr-x 1 root bin 9644 Feb 11 11:16 /bin/cat
-r-xr-xr-x 1 bin bin 24576 Nov 23 13:21 /bin/cat~
/bin/cat~ is the original file and /bin/cat is the self-uncompressing executable file. You can remove /bin/cat~ once you are sure that
/bin/cat works properly.
This utility is most useful on systems with very small disks.
-d Decompress the given executables instead of compressing them.
bzip2(1), znew(1), zmore(1), zcmp(1), zforce(1)
The compressed executable is a shell script. This may create some security holes. In particular, the compressed executable relies on the
PATH environment variable to find gzip and some other utilities (tail, chmod, ln, sleep).
bzexe attempts to retain the original file attributes on the compressed executable, but you may have to fix them manually in some cases,
using chmod or chown.