9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
sorry for my questions about that below script but i have an error that i don't understand.
It seems that my find command is not working fine but for me the command is ok
Thanks for your help
=====================================
/usr/IBM/HTTPServer/apache_cache... (4 Replies)
Discussion started by: steiner
4 Replies
2. Shell Programming and Scripting
I have script data.sh which has following error.
Script Name : data.sh
#!/bin/sh
infile=$1
len=${#infile}
echo $len
texfile=${infile:0:$len-4}
echo $texfile
run command
./data.sh acb.xml
I get following error message: (5 Replies)
Discussion started by: man4ish
5 Replies
3. Shell Programming and Scripting
Why I get bad replace when using eval?
$ map0=( "0" "0000" "0")
$ i=0
$ eval echo \${map$i}
0000
$ a=`eval echo \${map$i}` !!!error happens!!!
bash: ${map$i}: bad substitution
How to resolve it ?
Thanks! (5 Replies)
Discussion started by: 915086731
5 Replies
4. Solaris
Any body known this command uadmin 2 (2 Replies)
Discussion started by: Rajesh_Apple
2 Replies
5. Linux
Some forums, including this one, look bad in FireFox on my new installation of Arch. Or more specifically, the main font looks bad.
I had the exact same problem on Fedora a few years ago when I did a new installation. I thought I rememberered that the solution there was to install some Lucida... (0 Replies)
Discussion started by: KenJackson
0 Replies
6. Shell Programming and Scripting
Hi All,
I'm not confortable in writing script, can someone can help me, when I run that script below i found this error code : -bash: ./script.sh: /bin/sh.: bad interpreter:
Here is the script
for i in *
x=${i##*.}
z=$(perl -e 'print time;')
t=$(echo $z-$x|bc)... (12 Replies)
Discussion started by: bzb23
12 Replies
7. Shell Programming and Scripting
Hi
A Ksh script is deployed in a server and executed through cronjob.
If one of the line in the middle of the script fails . Are the remaining lines executed ? (3 Replies)
Discussion started by: Sivaswami
3 Replies
8. Shell Programming and Scripting
I need to write a script that can find a bad record (for example: there is date field colom but value provided in the file for this field is N/A) then script shoud searches this pattern and then insert the whole record into the bad file.
Example:
File1
Name designation dateOfJoining... (2 Replies)
Discussion started by: shilendrajadon
2 Replies
9. UNIX for Advanced & Expert Users
I need to write a script that can find a bad record (for example: there is date field colom but value provided in the file for this field is N/A) then script shoud searches this pattern and then insert the whole record into the bad file.
Example:
File1
Name designation dateOfJoining... (1 Reply)
Discussion started by: shilendrajadon
1 Replies