Summary: Can anyone help me with comparing two vaiables in unix shell script. This is what i'm trying.... if [ $X -ne $Y ] then ----- else ---- fi Wher...
Summary: Hi, Im trying to set variables in awk script but does not work, I dont know what Im doint wrong, this is my script. #!/bin/sh snmp-cpu="`snmpwalk -v ...
Summary: Shell Scripting -- Variables In the main script i have exported the variable and accessing it in another file but when i echo the value the value of t...
Summary: Hi i've been trying to write shell script with awk that I want to search a substring with variable of shell script In old one ,I wrote awk that fi...
Summary: Thank you so much for the help. I would like to know what is the purpose of ~, :space: in the awk command. I really appreciate if you could give me b...
Summary: Hi, I'm trying to run loops in shell scripts using the following script. loop=1 while [ loop -lt 10 ] do echo 'this is my $loop text-line' loop='expr ...
Summary: In shell script sed or awk command, can I use hexadecimal code for substitution? I want to perform the following: Input file: Line1 Line2 Line3 Line4...
Summary: Dear all, I wonder how to find the size of an array in shell script. For example, I declared an array as following: #! /bin/sh a = (1 adf 8 2 se) How ...
Summary: In shell script I am inserting the record in to the table.After excuation the script output is commit complete which is fine but I need my echo should...
Summary: Hi guys, i have a file inside file file name are stored 1 filename per line i want to open the file and read each line from the file and process it......
Summary: Hello All, I am looking for a way to get a string from a file and assign it to a variable in Shell Script. Example I have a file FILE containi...
Summary: I need create a variable for store command: grep -y 'ORA-' $DIR_LOG ARQ. after i need to validate this statment in the sheel script. Examples IF...
Summary: Hi: This is a common problem with any shell script that runs fine from the command line, but fails from cron. You need to set up your environment in t...
Summary: Hello, I want to give back the first 3 letters of my hostname to a variable in a shell script like this principle: N=awk'{printf substr(`uname -n`,1,3...
Summary: My first shell script logs into a shell, after setting some environment variables. After log into the shell, I call second shell script. This shell al...
Summary: I need create a variable for store command: grep -y 'ORA-' $DIR_LOG ARQ. after i need to validate this statment in the sheel script. Examples IF [ ex...
Summary: I solved my issue with another one i filed: 'comparing 2 files with shell script' in this forum. Thanks for your assistance. Suresh sureshht...
Summary: I'm trying to write a shell script to monitor certain files and display a warning when they reach a certain size. The idea being to give a warning BEF...
Summary: Hello Can anybody explain how I can ftp the reult of a sql script in a shell script that is executed via a cronjob??I would like the result to be se...
Summary: Hi, I need help for a shell script to have a user enter a date into the program. When the date has been entered in format dd/mm/yyyy, i need the scrip...
Summary: Hi, I need to run a command and hit 4 times in response to the prompts after the command is run. I don't know how to do this in a shell script. Could...
Summary: I have used the following to compare script efficiency... #!/bin/sh # timer by stefan caunter # little efficiency script to display run # and cpu tim...
Summary: I need to know if the connection fails to the remote host in a shell script. Which error codes etc should I check for? What would be in the if stateme...
Summary: I am completely baffled by this problem..I have a shell script. Near the start I declare a series of variables for example: TODAY="`date +%y%m%d`" LOG...