Search Results

Search: Posts Made By: mukulverma2408
4,935
Posted By mukulverma2408
Dear Experts, This is what I've tried by...
Dear Experts,
This is what I've tried by converting into epoch time and it's giving me the desired result however it seems to me like this is not the standard way of doing this, do you mind taking a...
4,935
Posted By mukulverma2408
Hello Rudic, Thanks for your quick revert....
Hello Rudic,

Thanks for your quick revert. Yes the entries are sorted. Haven't gave it a shot since i wasn't sure where to start with. One thing that i got to know is that the timestamp need to be...
4,935
Posted By mukulverma2408
Filter records from a log file based on timestamp
Dear Experts,

I have a log file that contains a timestamp, I would like to filter record from that file based on timestamp. For example refer below file -
cat sample.txt

Jan 19 20:51:48...
1,503
Posted By mukulverma2408
Running local script remotely with arguments
Dear Experts,

I have found this script on internet that can be used to execute local script remotely

#!/bin/bash
# runremote.sh
# usage: runremote.sh localscript remoteuser remotehost arg1...
3,028
Posted By mukulverma2408
Hello RuciC, Apologies for not being clear...
Hello RuciC,

Apologies for not being clear enough, I have been trying to create script that will remove number divisible by 2 from array, this is what I've tried :

#!/bin/bash
echo "This is a...
3,028
Posted By mukulverma2408
Hello Experts, How can i do this with array,...
Hello Experts,

How can i do this with array, this is what I am trying :

num=$( echo "${arr[i]}%2" | bc )
7,955
Posted By mukulverma2408
Hi Don, Thanks for your reply, the script is...
Hi Don,

Thanks for your reply, the script is now working perfectly.

Can you please help to explain below part, the script seems to be working fine without decreasing the counter as well.
...
7,955
Posted By mukulverma2408
Removing duplicate items from an array
Hello Experts,

I am trying to write a shell script to find duplicate items in an array, this is what i have tried :

#!/bin/bash
echo "This is another sample Progg to remove duplicate items...
3,028
Posted By mukulverma2408
Saving Mod in a variable
Hello Experts,
In one of my shell script, I've been trying to calculate mod and saving it in a variable, below is what I have tried but it isn't working.
Any help appreciated!!!

#!/bin/bash...
8,981
Posted By mukulverma2408
Thanks @bakunin, that was useful
Thanks @bakunin, that was useful
8,981
Posted By mukulverma2408
Getting number of argument passed to a shell script
Hi Experts,

I have been trying to work on a simple shell script that will just add the two argument passed to it. Here is what i tried :

#!/bin/bash
welcome(){
echo "Welcome to this Progg....
14,391
Posted By mukulverma2408
Thanks Rudic, Really liked the way you did...
Thanks Rudic,

Really liked the way you did it, very short and crisp. Just wondering if there is way to achieve it via sed or some other array operation.
14,391
Posted By mukulverma2408
Thanks Rudic, Can you please also explain...
Thanks Rudic,

Can you please also explain the logic used in below part :

od -An -c
14,391
Posted By mukulverma2408
Adding Two Array in shell script
Hi Experts,

I've got this problem where I need to add two array in shell script such that that is an element is greater than 9 then it get further split into individual digit, something like below...
3,538
Posted By mukulverma2408
Get count of multiple word in single command
Hello Experts,

I have a log file that contains 4 different type of exception :
1- Exception
2- Fatal
3- Error
4- Exec

My requirement is to find count of each type of exception, i tried...
9,932
Posted By mukulverma2408
Hi Chubler, Thanks for the reply, can you...
Hi Chubler,

Thanks for the reply, can you please also help me to understand the example mentioned here?
9,932
Posted By mukulverma2408
Implementing linked list in shell scripting
Hello Experts,

Is it possible to implement linked list in shell scripting? is yes then how can we do it? Any working example is highly appreciated.

Thanks in advance.
2,244
Posted By mukulverma2408
Thanks Every-one, that is really helpful :) ...
Thanks Every-one, that is really helpful :)

---------- Post updated at 05:55 PM ---------- Previous update was at 05:27 PM ----------



Hi Scrutinizer, thanks for the solution, the problem is...
2,244
Posted By mukulverma2408
Emulate group-by in shell script
Hello All,

I saw this problem on one of the forum and solved it using group-by in oracle sql, though I am a bit curious to implement it using shell script :

There is a file having number of...
27,408
Posted By mukulverma2408
Tried using mv, but no luck find...
Tried using mv, but no luck

find /home/arpu/test -name '*.txt' -exec mv '*.txt' '*.bak' {} \;
27,408
Posted By mukulverma2408
Find and rename file recursively
Hi,

I have a directory which contains multiple files with .txt extension, i want to rename all these file to .bak extension using find command, this is what i've tried, please help me to correct...
1,003
Posted By mukulverma2408
Thanks Makarand, Its working fine. Could you...
Thanks Makarand,

Its working fine. Could you please also explain the reason for choosing ""
1,003
Posted By mukulverma2408
Problem in staring a file name to variable
Hi All,

I have a script in which i want to store my file name in a variable named "FILE", below is the approach i am using :

mydate=`date +%d%m%Y`
DATE=`date +%Y-%m-%d`...
4,535
Posted By mukulverma2408
Hi Don, Thanks for your info but this is the...
Hi Don,

Thanks for your info but this is the log file and a new file gets create after exceeding a certain size limit, in this way I am sure to get the size of latest file
ls -ltr...
4,535
Posted By mukulverma2408
How to check if my log file is growing properly?
Hi All,

I want to check if one my log file is updating properly, how can I achieve it.
The approach I am trying is to get the file size at two different interval and than comparing it eg :
...
Showing results 1 to 25 of 82

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