Search Results

Search: Posts Made By: V3l0
2,319
Posted By V3l0
File 'cmd' (executable) #!/bin/ksh # Get an...
File 'cmd' (executable)
#!/bin/ksh
# Get an executable file in $*

list_dir=$(ls $*)

for file in $list_dir
do
if [ -x $file ]
then
#printing out if file is an execute...
41,059
Posted By V3l0
You have to put parenthesis !!! $ ((cat foo...
You have to put parenthesis !!!

$ ((cat foo 3>&1 1>&2 2>&3) | tee /dev/tty) > err.log
cat: 0652-050 Cannot open foo.
$ cat err.log
cat: 0652-050 Cannot open foo.
41,059
Posted By V3l0
Use this: Script is "cmd"#!/bin/sh echo "This...
Use this:
Script is "cmd"#!/bin/sh
echo "This is Standard Out"
echo "This is Standard Error" >&2

Use cmd script like this:((./cmd 3>&1 1>&2 2>&3) | tee /dev/tty) > err.log

The output...
17,183
Posted By V3l0
Try this code: #!/bin/ksh GetDate() { ...
Try this code:
#!/bin/ksh

GetDate()
{
# Exemple: GetDate -1 '+%Y%m%d'

typeset -i nDays=$1; format=$2
eval $(echo $TZ | sed '
s!\([^-0-9]*\)\([-0-9]*\)\(.*\)!typeset -i...
10,435
Posted By V3l0
In RED in the code ...
In RED in the code ...
41,059
Posted By V3l0
prog 1>/dev/null | tee fil Not tested ......
prog 1>/dev/null | tee fil
Not tested ... :confused:
15,048
Posted By V3l0
file.txtwget -q -O -...
file.txtwget -q -O - 'http://test.com:15100/cgi-bin/search'
wget -q -O - 'http://zzzz1'
wget -q -O - 'http://zzzz11'
wget -q -O - 'http://zzzz111'
wget -q -O - 'http://zzzz1111'
wget -q -O -...
2,436
Posted By V3l0
Push "Caps Lock" :D:D
Push "Caps Lock" :D:D
2,622
Posted By V3l0
NICE !!! :b::)
NICE !!! :b::)
52,647
Posted By V3l0
OK, in one file : #!/bin/ksh ...
OK, in one file :
#!/bin/ksh

ORIG="https://www.xxxxxx.com/change&$ ^this to?%checkthe@-functionality"
STR1=$(echo $ORIG | cut -d\? -f1)
STR2=$(echo $ORIG | cut -d\? -f2)

OUT=$STR2
...
2,622
Posted By V3l0
Try this: File atd#!/bin/ksh for i in $* ...
Try this:
File atd#!/bin/ksh

for i in $*
do
z=$(echo $i | grep TT)
if [ x"$z" = x ]
then
z=$(echo $i | sed -e 's/TB/T/g')
while [ 1 ]...
52,647
Posted By V3l0
Use 2 files: urlencode.seds/%/%25/g s/ /%20/g...
Use 2 files:
urlencode.seds/%/%25/g
s/ /%20/g
s/ /%09/g
s/!/%21/g
s/"/%22/g
s/#/%23/g
s/\$/%24/g
s/\&/%26/g
s/'\''/%27/g
s/(/%28/g
s/)/%29/g
s/\*/%2a/g
s/+/%2b/g
s/,/%2c/g
s/-/%2d/g...
13,421
Posted By V3l0
for i in file*.txt* do newname=$(echo...
for i in file*.txt*
do
newname=$(echo $i | cut -d. -f1-2)
mv $i $newname
done
Forum: Programming 03-28-2008
29,107
Posted By V3l0
Look in your code in warning: shared library...
Look in your code in warning: shared library handler failed to enable breakpoint
Core was generated by `blockMesh'.
Program terminated with signal 4, Illegal instruction.
20,721
Posted By V3l0
In Korn Shell, use : ...
In Korn Shell, use :

filename=$logDir/PyLog/$logname
or
export filename=$logDir/PyLog/$logname
2,903
Posted By V3l0
Sorry Era, but I think C is the best language to...
Sorry Era, but I think C is the best language to learn the way of programming, and the best for lisibility and maintening : just if the programmer is not a fool, and have a relative general...
3,508
Posted By V3l0
CUP or CPU ? Momory or Memory ? Solairs or...
CUP or CPU ?
Momory or Memory ?
Solairs or Solaris ?

Please check your message ... :confused:
2,743
Posted By V3l0
Please give an example of your data file and what...
Please give an example of your data file and what you want to obtain.
31,509
Posted By V3l0
# sed script to insert "header.txt" above the...
# sed script to insert "header.txt" above the first line
1{h; r header.txt
D; }
2{x; G; }
#---end of sed script---

cat header.txt
HEADER


cat file1
INSERT HERE
jkqfqjkdf
qsdjfhqskfh...
11,322
Posted By V3l0
You can use also :if [ x"$AcctID" = x ]...
You can use also :if [ x"$AcctID" = x ] ...
1,698
Posted By V3l0
grep ^high filename | grep "[0-9]" | lpr
grep ^high filename | grep "[0-9]" | lpr
6,495
Posted By V3l0
The first time you use 'sudo', you have to give...
The first time you use 'sudo', you have to give the root password ... :rolleyes:

So, I think your script is waiting for the password.

Why do you want to do a 'sudo' ???

NB: "sudo -u root" &...
2,118
Posted By V3l0
Please give an example of the filenames.
Please give an example of the filenames.
6,344
Posted By V3l0
"C:\..." ??? :eek: Which are the *NIX tools...
"C:\..." ??? :eek:

Which are the *NIX tools you are using on your Windows Box ?
3,447
Posted By V3l0
Which language : Shell, Perl, Awk, ... ?...
Which language : Shell, Perl, Awk, ... ? :confused:
Showing results 1 to 25 of 69

 
All times are GMT -4. The time now is 07:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy