Search Results

Search: Posts Made By: santhoshks
1,554
Posted By santhoshks
here are the details : example my service...
here are the details :
example
my service file list is as below
hostname
region name
...
...
so on

for each service , my command list file is having corresponding command entry as below...
1,554
Posted By santhoshks
Shell Programming
Hi,

I am using two files - one file contains list of service name , other file contains commands for each of these service name .

I have to read each service name and check this string in 1.cfg...
1,605
Posted By santhoshks
#!/usr/bin/perl -w # Print the value of the...
#!/usr/bin/perl -w
# Print the value of the command line arguments
$FSNCount = $ARGV[2];
#print "Replacing all QQQ in $ARGV[0] - with $FSNCount in $ARGV[1]\n";
$DateField=`date +%Y%m%d`;
chomp...
1,605
Posted By santhoshks
Perl script to change the date in some scenario
Hi ,

I have file FSN.log which contains number 100. i have other Perl script when i run it , it ll increment this FSN.log value.

now my requirement is
when the count in FSN.log becomes 999,...
943
Posted By santhoshks
your code for i in `seq -f "%04g" 1 1000` do...
your code
for i in `seq -f "%04g" 1 1000`
do
echo "130400030000010$i00001
130400030000010$i00002
140050030000010$i00005A"
done

works fine , but ill not display the numbers which are...
943
Posted By santhoshks
it dint work.
it dint work.
943
Posted By santhoshks
Help with incrementing data in some field
Hi
I have the below set of lines , i need to duplicate these lines 1000 times, also eevrytime when it is incremented , it should increment the one in Blue color.
130400030000010000200001...
3,799
Posted By santhoshks
Hi , Try this.. #!/usr/bin/ksh while...
Hi ,
Try this..

#!/usr/bin/ksh
while [ 1 ]
do
if [ -f /data/source/a.txt ]
then
echo " File found"
exit 0
else
sleep 30 # sleeps for 30 seconds
echo "not found "
fi
done

code...
3,115
Posted By santhoshks
what is "s" actually ?
what is "s" actually ?
3,115
Posted By santhoshks
Thank you , it s working.. awk '{ for...
Thank you , it s working..
awk '{ for (i=NF;i>=1;i--) { if(s!= ""){s=s" "$i}else{ s=$i }} {print s;s=""}}' file

but i dint understand this part
if(s!= ""){s=s" "$i}else{ s=$i }} {print...
3,115
Posted By santhoshks
To reverse a string
Hi All,

I would like to know , how to reverse a given string

example :
Hi how are you
Required Output:
you are how HiThanks
Showing results 1 to 11 of 11

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