hi guys need your help...how to simplify this script...
In addition to what RavinderSingh13 has already said...
Given that this script is incomplete, invokes more four times when it doesn't need to call it at all, sets a variable that isn't needed, seems to waste time creating 4 temporary files that are not used, and seems to waste time setting a variable that isn't used, the following simplified version of your code should produce the same syntax error as your current script:
If you would show us your complete script, tell us what shell you're using, what operating system you're using, what is in the files listed in the file named dmp.txt, whether any of the filenames in dmp.txt could contain any spaces or tabs, and what output you want your script to produce; we might be able to help.
I am trying to verify my understanding on setter and getter on java class with this example:
//MaximumFinder2.java
import java.util.Scanner;
public class MaximumFinder2
{
public static void main (String args)
{
Scanner input = new Scanner(System.in);
... (6 Replies)
I have the following code that print certain files in my directory and groups things together. I would be good to tidy and simplify this code up and would greatly appreciate suggestions.
if ($opt_raytrac == 1) then
echo ""
echo -n "\033*\)/ & /g' | sort -k 4n | sed 's/ //g' \
# |... (0 Replies)
Hi can anyone help me with how to simplify this regular expression
---------- Post updated at 09:16 PM ---------- Previous update was at 09:11 PM ----------
IS THIS RIGHT
? (3 Replies)
below is something i inherited:
if && && ; then
HOST_SELECT="-m quadcore"
fi
if && && ; then
HOST_SELECT="-m quadcore"
fi
if && && ; then
HOST_SELECT="-m octocore1"
fibelow is what i changed it to:
if && && ; then
HOST_SELECT="-m quadcore"... (2 Replies)
Hi all,
I have a script which runs every morning which clears down a series of directories. The structures of which are;
/opt/feeds/failed/feed1
/opt/feeds/succeed/feed1
/opt/feeds/failed/feed2
/opt/feeds/succeed/feed2
/opt/feeds/failed/feed3
/opt/feeds/succeed/feed3
etc
etc
Files... (6 Replies)
Hi,
Need your help guys. I'm trying to tweak my current shell-script to make it run faster. I think a part of the code that takes too long is the splitting of the 1st field of my CSV raw-file to date-time. Below is the 1st column of my CSV file:
$ awk -F"," {'print $1'} temp-*|head... (5 Replies)
Hi all,
How can I simplify following script,
Logic is to find two strings (strings are case sensitive) from a file.
if ; then
if ; then
Group=`echo $1_hostname`
fi
fi
Please help me on this.
Regards
Sudhish s. kumar (8 Replies)
I'm trying to write a script that simplify the use of grep utility. these are the option that I'd like to use with the script " -c -i -l -n -v". When I execute the script none of these option works. I really appreciate any idea or tips regarding this problem. here the code
echo " Enter 1-7:"... (2 Replies)