Search Results

Search: Posts Made By: rbatte1
126
Posted By MadeInGermany
[Tip] ptree for Linux
Unix (and Linux) uses a process tree that gives a natural security, by simple inheritance of attributes.

The following ptree script shows it. It runs on all Linux flavors.
Mostly useful for...
309
Posted By RudiC
Difficult to believe with unmodified input files....
Difficult to believe with unmodified input files. Pls report back your findings.


A regex using "alternation" as brought into play in rbatte1's post #4 will be the most efficient approach, as...
309
Posted By RudiC
Nice approach indeed! Could be curtailed to ...
Nice approach indeed!
Could be curtailed to
sed -r "/'($(paste -sd\| file2))'/s/^C//" file1, including the item list file as well.
Forum: What is on Your Mind? 2 Weeks Ago
149
Posted By RavinderSingh13
Happy New Year 2020 to all :)
Hello All,

I would like to wish A very Happy New Year 2020 to all. May GOD bless all of us with TRUE knowledge, wisdom, great attitude, honesty, hard working capability, great health :b:

Cheers...
707
Posted By RudiC
A few comments allowed? The way you programmed...
A few comments allowed?
The way you programmed your script might not be the best use of resources:

for i in `cat file1` # useless use of cat, may fail on spaces in...
569
Posted By jim mcnamara
MicroFocus COBOL is your very best ORACLE option....
MicroFocus COBOL is your very best ORACLE option. It specializes in supporting ORACLE db's. It also is highly compatible with mainframe COBOL.
This will be the relatively easy part, moving code...
697
Posted By drl
Hi. All in a single perl code: extraction of...
Hi.

All in a single perl code: extraction of rightmost 2 digits, omit any containing lines greater than 33, numerically sort left-over lines based on right-most 2 characters:
#!/usr/bin/env perl...
Forum: Shell Programming and Scripting 3 Weeks Ago
614
Posted By MadeInGermany
Only match 443 or 9443, most simple as ERE (egrep...
Only match 443 or 9443, most simple as ERE (egrep or grep -E)
egrep '^Listen[[:blank:]]+9?443$'
Using a Posix character class rather than a GNU \s
Forum: Shell Programming and Scripting 4 Weeks Ago
674
Posted By Scrutinizer
Hi, the reason that the script is so slow, is...
Hi, the reason that the script is so slow, is that it is firing off 12 different sub shells per line in the input file, so that is 12 million sub shells in total, which is quite costly.
Examples of...
Forum: What is on Your Mind? 4 Weeks Ago
667
Posted By Neo
UNIX.com End of Year (EOY) Report (2019)
Here is a quick EOY report for 2019.

2019 has been a year of "downward trend reversal" for UNIX.com. In fact, if we compare total Google search impressions from the peak days in December 2019...
837
Posted By Neo
I am closing this "cut and paste" spam of a...
I am closing this "cut and paste" spam of a question.

You can see from the post, the poster has just cut and posted from another web site into this one without taking the time to format his post...
887
Posted By RudiC
Did you look into the helpful links at the bottom...
Did you look into the helpful links at the bottom of this page under "10 More Discussions You Might Find Interesting"?



Howsoever, for your first question, try


$ date --date='07/20/2019'...
1,322
Posted By Peasant
For DIY ... you can get a small ARM board with...
For DIY ... you can get a small ARM board with sim slot with linux installed.
Buy a sim card or make a contract, like for regular phone.

Using opensource software such as Gammu...
1,255
Posted By Chubler_XL
The problem is ~ is not being expanded. It turns...
The problem is ~ is not being expanded. It turns out to be a little tricky to expand ~ but also avoid word separation on the path name (white spaces in you array source filename).

Try:function...
1,255
Posted By drl
Hi. I think those of us who use macos may...
Hi.

I think those of us who use macos may need to get used to zsh. Here is a demo zsh script that was run on Mojave, not using eval:
#!/usr/bin/env zsh

# @(#) z1 Demonstrate feature.
...
Forum: What is on Your Mind? 10-10-2019
2,684
Posted By Neo
YouTube: Forum Moderation @UNIX.com | The UNIX and Linux Forums
Forum Moderation @UNIX.com | The UNIX and Linux Forums (https://youtu.be/WGwgibE4Rq0)

https://youtu.be/WGwgibE4Rq0



Also note: In the video I mentioned removing legacy menu items in the...
205
Posted By hicksd8
I reckon your NVRAM contents are still screwed...
I reckon your NVRAM contents are still screwed and the console output is being redirected somewhere (probably to the first serial port).

If you can't get to the OBP to change this then the only...
1,527
Posted By RudiC
Does: grep -v " [01] *[+-]" file chr10 ...
Does:
grep -v " [01] *[+-]" file
chr10 152763 152818 NB551726:5:H2HT5BGXC:1:11101:11832:4136 21 +
chr10 270718 270779 NB551726:5:H2HT5BGXC:1:21302:6151:20084 36 +...
1,527
Posted By gull04
Hi, Can you post the output to show how it...
Hi,

Can you post the output to show how it doesn't work, that would be more helpfull.

Regards

Gull04
Forum: AIX 09-10-2019
4,688
Posted By ufo
AIX ssh timeout
I have to make a command to work when connecting to AIX 7.1 (used by an internal software).
I have a linux server L where the following command is runned ssh -t <aix-server-ip> ls
For a...
8
369
Posted By Neo
Consider moving to passwordless ssh/sftp by...
Consider moving to passwordless ssh/sftp by using shared cryptographic keys instead of a password.
Forum: What is on Your Mind? 09-06-2019
4,025
Posted By Neo
Please Welcome Yoda (Bipin Ajith) to the Moderation Team
Dear All,

Following our policy for forum moderators to have active LinkedIn profiles (and also to increase mod team diversity), please join me in congratulating the newest addition to our mod...
Forum: What is on Your Mind? 09-03-2019
4,012
Posted By Neo
Please Welcome Akshay Hegde to the Moderation Team
Dear All,

Following our policy for forum moderators to have active LinkedIn profiles (and also to increase mod team diversity), please join me in congratulating the newest addition to our mod...
1,744
Posted By MadeInGermany
If your command takes 25 parameters then you can...
If your command takes 25 parameters then you can do
xargs -L25 echo "do something with" < ws-userlist.txt(The echo command is there for demonstration.)
Or introduce a counter in your loop:
cnt=0;...
1,744
Posted By RudiC
This split --version split (GNU coreutils) 8.30...
This split --version
split (GNU coreutils) 8.30 seems to have the filter receive the split input lines on its stdin.
Try
split -l25 --filter="command-to-create-workspaces params" ws-userlist.txt
Showing results 1 to 25 of 500

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