Search Results

Search: Posts Made By: rbatte1
348
Posted By rbatte1
One line sed option
How about using a single line sed like this:-sed "s/^C\( CALL.*'\(Gmax\|Gmin\|HS10\|HS2\|HS9\|Hmax\)'.*\)/\1/" source_file_name > target_file_name

It's a little messy to read, so:-

The s...
340
Posted By rbatte1
This is telling you that the value for pday is...
This is telling you that the value for pday is not set or not an integer, so your command as a whole becomes invalid. Could you sh -xv rmAgingFile.sh file*.log 2 and review the output to see what is...
Forum: AIX 1 Week Ago
773
Posted By rbatte1
It depends quite what you are looking for. Do...
It depends quite what you are looking for. Do any of these help (sorry but I no longer have access to AIX so I'm a bit rusty!)lspv
lspv -v
lspv -l
lsvpcfg # (possibly with a -l...
465
Posted By rbatte1
I'd be very worried by this approach. You are...
I'd be very worried by this approach. You are inviting someone to put something dangerous in a file and mentioning that as a parameter and then you will call/run that unrestricted code to control...
943
Posted By rbatte1
Yes, the value of outvar will just hold all the...
Yes, the value of outvar will just hold all the content of your file. You might prefer to process the variable or create another by reading the file in a different way. It's up to you, but you can...
741
Posted By rbatte1
I must admit, I like jim mcnamara's neat...
I must admit, I like jim mcnamara's neat response. It made me wonder about the string often all of the kinds of Norway as an example where the string might exist embedded in another word. Is this a...
558
Posted By rbatte1
Okay, I'm sure we can help with that. A few...
Okay, I'm sure we can help with that. A few questions for clarity though:-
Must the filename in the fastconcatg directory be the prefix of the directory that the source was found in?
What do we...
943
Posted By rbatte1
The outvar=`cat test.out` is not great from a few...
The outvar=`cat test.out` is not great from a few things:-

The backticks ` are deprecated and can make complex statements difficult to read. You would be better to wrap such code with $( and )
...
757
Posted By rbatte1
Why single quotes anyway? They stop...
Why single quotes anyway? They stop interpretation of the string quoted. If you want to pass something that changes, how about one of these:-ssh $i "systemctl is-enabled ${j}"; # No...
844
Posted By rbatte1
From my suggestion in post 5, I'm sure you can...
From my suggestion in post 5, I'm sure you can attempt to replace the sub-process on line 2 (the bit between $( and )) such that the output it creates uses a loop based on a counter to create the...
844
Posted By rbatte1
Do you want something more like:printf --...
Do you want something more like:printf -- "/path/to/xxx.py \\\\\n%s\n\t--ref /path/to/file \\\\\n\t--run /path/to/data\n" \ # Set up the output format with fixed strings and an...
1,037
Posted By rbatte1
The problem is that your expression is matching...
The problem is that your expression is matching Listen followed by any number of spaces then 443. Your definition is explicit in being for 'any number of spaces' with the * sequence.

Do you...
881
Posted By rbatte1
Does the output from last show you who (and where...
Does the output from last show you who (and where from) people were logged in at that time? Look especially for lines that say down in them.

Does that help you?


It might help in future if...
Forum: What is on Your Mind? 12-02-2019
1,484
Posted By rbatte1
Hello Neo and all, This is an excellent...
Hello Neo and all,

This is an excellent idea. I'm certainly not in the running and must apologise for having again been idle and returned to Emeritus status. I'm sure not to have surpassed by...
961
Posted By rbatte1
Welcome hkoshekay, I have a few to questions...
Welcome hkoshekay,

I have a few to questions pose in response first:-
Is this homework/assignment? There are specific forums for these.
What have you tried so far?
What output/errors do you...
971
Posted By rbatte1
If you have them in a file, how about:-cut -f-3...
If you have them in a file, how about:-cut -f-3 -d"." input|sort|uniq -cWould that do? It's not quite the pretty output, but you get the detail you need.



I hope that this helps,
Robin
Forum: AIX 09-11-2019
5,602
Posted By rbatte1
I would suggest mirroring your loglv00 now too. ...
I would suggest mirroring your loglv00 now too.


Kind regards,
Robin
Forum: AIX 09-04-2019
5,602
Posted By rbatte1
My apologies for being away for a few days. ...
My apologies for being away for a few days. There should be no difference with the process because they will both do the same thing. If the lost LUN is now available and visible to the volume...
Forum: AIX 08-22-2019
5,602
Posted By rbatte1
You have lost access to a disk, hdisk37 How...
You have lost access to a disk, hdisk37

How is this provided? If it's a real disk, then it's broken. If it's SAN provided, then something has gone wrong in the provision.

If you can get the...
2,585
Posted By rbatte1
Could you just do this?:-tr "§" "|" < inputfile >...
Could you just do this?:-tr "§" "|" < inputfile > outputfile




I hope that this helps,
Robin
515
Posted By rbatte1
Rather that ps -ef | grep pmon | grep -v grep |...
Rather that ps -ef | grep pmon | grep -v grep | awk ...... might I suggest ps -ef | grep [p]mon | ....... instead. The square brackets are a pattern match that has only one option, but because there...
4,016
Posted By rbatte1
Great! Glad we could help. Kind...
Great! Glad we could help.



Kind regards,
Robin
4,016
Posted By rbatte1
Does you client support the -b flag for sftp? ...
Does you client support the -b flag for sftp? That would allow you to write the commands you want in a separate file and refer to the file in your sftp command.
At the moment, the sftp command...
136
Posted By rbatte1
Welcome Vinesh_123, I have a few to...
Welcome Vinesh_123,

I have a few to questions pose in response first:-
Is this homework/assignment? There are specific forums for these.
What have you tried so far?
What output/errors do...
5,929
Posted By rbatte1
I've had a few problems with systemd and a very...
I've had a few problems with systemd and a very simple start/stop script too. I was asked to set something that that was not a true service to run at boot time. After much testing and tracing, the...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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