Search Results

Search: Posts Made By: asifansari
1,996
Posted By asifansari
I didn't get what you suggested.. alias...
I didn't get what you suggested..

alias PATTERN="${3:-grep whatever you want here}"

.....

COUNT=$(PATTERN|egrep "${start_tim}|${end_tim}" | awk ... etc etc ...)


While I need...
1,996
Posted By asifansari
I think I have already checked this, here is the...
I think I have already checked this, here is the execution results:


[root@dsc02-1 vf]# ./r.sh metrics.csv.20180730_13_00 15 "grep Gx|grep -v RAR"
+ METRICS_FILE=metrics.csv.20180730_13_00
+...
1,996
Posted By asifansari
Its a bash shell. Any ways to make it work. ...
Its a bash shell.
Any ways to make it work.

------ Post updated at 12:05 PM ------

Thanks for the prompt reply..
As stated the script is working fine if I do not give 3rd argument, this means...
1,996
Posted By asifansari
Substitute grep command at run time
HI
I am trying to use the following code in the shell script (using grep)


usage()
{
echo "Usage: ./$0 <file name> <interval> <pattern>"
}

METRICS_FILE=$1
INTERVAL=$2
PATTERN="$3" ...
17,950
Posted By asifansari
Thanks for your feedback. - this was not a...
Thanks for your feedback.
- this was not a question but an information.
- yes, we can use the one given by you in case the name pattern UP<number>.zip is not the same.
1,460
Posted By asifansari
Try this: for i in 1 2 3 4 5 6 7 8 9 10 11 12...
Try this:
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
do
cp ../../../EditDistanceRandomParsimonator/RAxML_parsimonyTree.test4D20RI$i.0 intree
echo "Enter Option"
...
17,950
Posted By asifansari
How to sort files based on file name having numbers
Right now there is no unix direct commad that can sort the files base on its name having numbers:
We can use the following:

In case your file name are like:
abc-UP018.zip
xyz-UP019.zip

ls...
Showing results 1 to 7 of 7

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