Search Results

Search: Posts Made By: simpsa27
3,564
Posted By Neo
I used to use Linode. The basic, cheapest one...
I used to use Linode. The basic, cheapest one is now $5 USD a month:

https://www.linode.com/pricing/

But I'm sure there are even cheaper services out there, for sure.

Also, one of our...
Forum: Web Development 11-12-2019
6,160
Posted By Neo
Congrats on starting to learn JS and JSON APIs. ...
Congrats on starting to learn JS and JSON APIs.

Does your code work?
1,732
Posted By drl
Hi. Here are the important parts of a script...
Hi.

Here are the important parts of a script that seems to do what you wish (including a sample data file). It runs twice, once considering the underscore as a separator, then as a character:
#...
1,732
Posted By RudiC
How about, given your grep accepts "regular...
How about, given your grep accepts "regular expression extensions" like \b that are not necessarily available in all systems / versions:

grep -o "\b[sS][^ ]*" <<< "String Filter increment. The...
1,732
Posted By vbe
:) If you are trying to learn what can be done...
:)
If you are trying to learn what can be done by grep ( because others would suggest use sed or awk...)
As I only have my mac laptop at the moment this is what I would do if were to use only grep:...
2,890
Posted By vbe
Dont use view... use cat instead... but you...
Dont use view... use cat instead...
but you could also:
grep "WARNING: " datasource.log
1,792
Posted By bakunin
I am not sure but probably the various nested...
I am not sure but probably the various nested subshells are at fault. As Corona688 mentioned. I only saw your second version and did not realise in your first posting the "cd" was within the...
1,792
Posted By Corona688
Your line: logfile=`cd...
Your line:

logfile=`cd '/opt/product/apachetomcat/8080/8.5.5_8080/apache-tomcat-8.5.5/logs'` was nonsensical, as `` captures the output of a command and the cd command outputs nothing. So you...
1,792
Posted By Scrutinizer
Hi try: ...
Hi try:
logdir=/opt/product/apachetomcat/8080/8.5.5_8080/apache-tomcat-8.5.5/logs
cd "$logdir"
2,022
Posted By MadeInGermany
The following is the total amount of the top...
The following is the total amount of the top process plus its children plus its children-children plus...(all down the tree)
pstree -ac 9059 | wc -l
2,022
Posted By vgersh99
somewhat rough - for a given data sample - can...
somewhat rough - for a given data sample - can probably be generalized:

pstree 9059 | awk -F'[-*]' '{print $3+$5}'
2,649
Posted By rbatte1
Does the apmccctrl.sh script start up the...
Does the apmccctrl.sh script start up the processes in the background? Can you share it (wrapped in CODE tags, of course)

Some indenting of your code would help the clarity of the process,...
7,962
Posted By RudiC
We are subtracting field 7 ("available") from...
We are subtracting field 7 ("available") from field 2 ("total"), as you do in your script above.
The OFMT is an awk variable defining the "format for printing numbers; initially = "%.6g"." (man...
7,962
Posted By RudiC
In principle, yes. However, inside the ((...))...
In principle, yes. However, inside the ((...)) ("arithmetic expansion") you don't need the $ , see e.g. man bash.

But, you have picked the perfect line to illustrate what I was talking about:
To...
1,699
Posted By MadeInGermany
Mabe the process name is too long for pgrep then...
Mabe the process name is too long for pgrep then use pgrep -f (run on the full args).

---------- Post updated at 14:41 ---------- Previous update was at 13:52 ----------

In your post both the...
3,571
Posted By RavinderSingh13
Hello simpsa27, Your Welcome, happy to help,...
Hello simpsa27,

Your Welcome, happy to help, could you please go through following and let me know if this helps you.

awk --re-interval '/Primary-login/{ ...
3,571
Posted By RavinderSingh13
Hello simpsa27, Could you please try...
Hello simpsa27,

Could you please try following and let me know if this helps you.

grep "login" Input_file | tail -1
You could put any string there in place of login above, let me know if you...
3,571
Posted By RavinderSingh13
Hello simpsa27, Could you please try...
Hello simpsa27,

Could you please try following and let me know if this helps you.

awk --re-interval '/Primary-login/{val=$9} END{match(val,/-[0-9]{10}/);print substr(val,RSTART+1,RLENGTH-1)}' ...
5,470
Posted By apmcd47
Basically the [...]construct matches any of the...
Basically the [...]construct matches any of the characters inside the square brackets. So if you wanted to match any time from 03:00 to 06:59 inclusive the following expression will match:...
5,470
Posted By apmcd47
There's your problem! No century. Try $ sed -n...
There's your problem! No century. Try
$ sed -n '\^4/26/17 0[89]:[0-9][0-9]^p' IntroscopeEPA.log
instead!

Andrew
5,470
Posted By apmcd47
Basically as you are using the slash for...
Basically as you are using the slash for searching sed stops at the second slash. By prefixing the slashes in between with backslahes, they won't be interpreted by sed as the end of the search...
1,149
Posted By rbatte1
You have two main choices:- Adding another...
You have two main choices:-

Adding another line into your SQL, you could tryselect count(*), state from pg_stat_activity group by state;
select count(*) from pg_stat_activity;
\q

If you need...
2,461
Posted By drysdalk
Hi, I've had to hard-code the variables in...
Hi,

I've had to hard-code the variables in this example of course, but something like this should work.


$ cat script.sh
#!/bin/bash
duplicate_user_list="rod jane freddy"...
Showing results 1 to 23 of 23

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