Search Results

Search: Posts Made By: sagar_evc
2,886
Posted By sagar_evc
Thanks. I need uniq entries based on ip address
Thanks. I need uniq entries based on ip address
2,886
Posted By sagar_evc
Select ip and date using sed or gawk
1.56.253.48 - - [09/Nov/2009:07:02:24 +0100] "GET "
1.6.253.48 - - [09/Nov/2009:07:02:24 +0100] "GET "
1.65.253.48 - - [09/Nov/2009:07:02:24 +0100] "GET "
1.65.253.48 - - [09/Nov/2009:07:02:24...
13,025
Posted By sagar_evc
but "path" in my config file doesn't specify...
but "path" in my config file doesn't specify anything about users. It just give a a directory path. Does Samba get the user details from file system?

Also, What does the "password servers" do?
13,025
Posted By sagar_evc
samba user.map file
I am using Samba 3.0.33. The user.map file is not referred anywhere is Smb.conf. Infact, I couldn't see the user.map file any where in samba. But everything seems to be working. Is there an...
4,325
Posted By sagar_evc
Change in the line 5 -> for (U in UL) {print...
Change in the line 5 ->
for (U in UL) {print A[1] "\t" A[2] "\t" A[3] "\t" UL[u]}

U should be in upper case in UL[U]
3,503
Posted By sagar_evc
https://www.unix.com/shell-programming-scripting/24...
https://www.unix.com/shell-programming-scripting/24135-generate-random-number-korn-shell.html

$RANDOM will generate a random number which can be appended to your filename
13,987
Posted By sagar_evc
I think you are getting these values with some...
I think you are getting these values with some other characters (may be spaces)
try to echo each one of them
13,987
Posted By sagar_evc
#!/usr/bin/ksh Interchange_value="23.45" ...
#!/usr/bin/ksh
Interchange_value="23.45"
Assesments_value=34.65
Transfees_value=3
TE_value="9"
Combined_amount=`echo ""$Interchange_value"" + $(expr $Assesments_value) + $(expr $Transfees_value)...
13,987
Posted By sagar_evc
post the whole script if you could ...
post the whole script if you could

#!/bin/ksh

a="2.33"
b="4.33"
g=9.7805
value=`echo ""$a"" + $(expr $b) + $g | bc`
echo $value

even this code works for me perfectly....
2,700
Posted By sagar_evc
post the error lines if you could
post the error lines if you could
13,987
Posted By sagar_evc
https://www.unix.com/shell-programming-scripting/18...
https://www.unix.com/shell-programming-scripting/18660-adding-float-numbers.html

read this post. This works for me
2,769
Posted By sagar_evc
it works as if dot is not there. Should there...
it works as if dot is not there.
Should there be some regexs to match numbers in batch scripts?
10,242
Posted By sagar_evc
https://www.unix.com/shell-programming-scripting/20...
https://www.unix.com/shell-programming-scripting/20828-input-inside-while-read-loop.html

see the above thread.
#!/bin/ksh

echo "Enter config file path:"
read config

echo "Enter tmp file...
9,425
Posted By sagar_evc
Wow! nawk works for me.
Wow! nawk works for me.
9,425
Posted By sagar_evc
awk 'NR==FNR{arr[$1]=$2","$4}NR!=FNR{for(i in...
awk 'NR==FNR{arr[$1]=$2","$4}NR!=FNR{for(i in arr){split(arr[i],ss,",");
if(i==$1 && ss[2]<$4) print i,ss[1],ss[2],$4,$4-ss[2]}}' file1 file2

I was trying to understand how this command works......
2,094
Posted By sagar_evc
echo option4 Value4 | sed 's/option4.*/option4...
echo option4 Value4 | sed 's/option4.*/option4 <new value>/'
1,757
Posted By sagar_evc
awk '{ if (NF>0) { print $0}}' ax3.t | grep...
awk '{ if (NF>0) { print $0}}' ax3.t | grep DELETING | tail -3 | cut -f1 -d":"|sed -n '1!G;h;$p'
12,891
Posted By sagar_evc
0-59/15 * * * * sh /usr/ss/job This will not...
0-59/15 * * * * sh /usr/ss/job

This will not run in Solaris. Whatz your flavour?

S
7,386
Posted By sagar_evc
Is there a signal that is triggered if the script...
Is there a signal that is triggered if the script exits due to the lack of disk space?

S
7,386
Posted By sagar_evc
shell scripting best practices - trap command
I know there is a command called trap which can be used to capture the signals from a shell script and redirect the control to a required function (such as a cleanup).

My question is - Those of...
2,368
Posted By sagar_evc
Is this a question? Sorry, I didn't get you
Is this a question? Sorry, I didn't get you
2,368
Posted By sagar_evc
#!/bin/sh. temp=`date '+%d'` temp=`expr $temp...
#!/bin/sh.
temp=`date '+%d'`
temp=`expr $temp - 1`
filename='echo subscriber.log.`date +%Y-%m-`$temp'
more $filename| grep Purchase subscriber.log > dacha
ftp -v -n "10.15.20.245" <<cmd
user...
2,368
Posted By sagar_evc
temp=`date '+%d'` temp=`expr $temp - 1` echo...
temp=`date '+%d'`
temp=`expr $temp - 1`
echo subscriber.log.`date +%Y-%m-`$temp

This should give you the yesterday's file name
2,368
Posted By sagar_evc
#!/bin/sh. find <directory> -mtime +1 -name...
#!/bin/sh.
find <directory> -mtime +1 -name subscriber* -exec ls -el {} \; >> temp.file
#cut the last field to get the file name and assign it to a variable filname
more $filname | grep Purchase...
2,368
Posted By sagar_evc
find <directory> -mtime +1 -name <pattern of the...
find <directory> -mtime +1 -name <pattern of the file name> -exec ls -el {} \;

This command should give you the file created a day earlier. You cut the file name field and use in your script.

S
Showing results 1 to 25 of 30

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