9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi guys need your help...how to simplify this script...
for i in `cat dmp.txt`
do
model=$i
more $model | grep : | cut -d ":" -f 2- | grep : | grep -v "=" > temp1
more $model | grep / | cut -d ":" -f 2- > temp2
more $model | grep = | cut -d ":" -f 2- > temp3
more... (2 Replies)
Discussion started by: zulabc
2 Replies
2. Shell Programming and Scripting
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)
Discussion started by: drew211
3 Replies
3. Shell Programming and Scripting
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)
Discussion started by: crimso
2 Replies
4. Shell Programming and Scripting
Input file:
2 aux003.net3.com error12
6 awn0117.net1.com error13
84 aux008 error14
29 aux001.ha.ux.isd.com error12
209 aux002.vm.ux.isd.com error34
21 alx0027.vm.net2.com error12
227 dux001.net5.com error123
22 us008.dot.net2.com error121
13 us009.net2.com error129Expected Output:
2... (4 Replies)
Discussion started by: sQew
4 Replies
5. Programming
my $branch_email_e = $FORM{r_Branch};
my $hostbranch_email_e = $FORM{r_Host_Branch};
my $branch_email_f = $FORM{r_Direction_generale};
my $hostbranch_email_f = $FORM{r_Direction_generale_daccueil};
my $branch_realname_e = '';
my $branch_realname_f = '';
... (4 Replies)
Discussion started by: callyvan
4 Replies
6. Shell Programming and Scripting
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)
Discussion started by: JayC89
6 Replies
7. Shell Programming and Scripting
Hi Everyone,
Below is the script, i feel there should be more simple way to do the same output, my one works, but feel not nice. like using index i feel it is slow (image my file is very large), maybe awk can do one line code?
Please advice.
# cat 1.txt
1 a
2 b
3 cc
4 d
# cat 1.pl... (6 Replies)
Discussion started by: jimmy_y
6 Replies
8. Shell Programming and Scripting
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)
Discussion started by: daytripper1021
5 Replies
9. Shell Programming and Scripting
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)
Discussion started by: sudhish
8 Replies