Search Results

Search: Posts Made By: rbatte1
184
Posted By RudiC
Not sure this works with all tr versions: ...
Not sure this works with all tr versions:


echo "HiringManager_RHMC, DirectSupervisor_RHMC, ProcessServerReadAccess_ST" | tr -s ', ' '\n'
HiringManager_RHMC
DirectSupervisor_RHMC...
391
Posted By MadeInGermany
%06s is obviously not portable. On different OS...
%06s is obviously not portable.
On different OS I get different results:
printf "%06s\n" 01140
01140printf "%06s\n" 01140
001140However, never this is seen as a number.

--- Post updated at...
505
Posted By sagar_1986
awk '/start/{flag=1} flag; /end/{flag=0}'...
awk '/start/{flag=1} flag; /end/{flag=0}' sample.txt awk '/start/,/123456/,/end/' sample.txt
sed '/start.*123456.*end/!d' sample.txt
sed -n '/start.*123456.*end/p' sample.txt
sed -e...
679
Posted By RudiC
You want the 3rd (...) newest file? Try NOT...
You want the 3rd (...) newest file? Try NOT reversing the sorting order
ls -lt *.conf | sed -n "${1}p"
557
Posted By Scrutinizer
Here are some more alternatives to try: Use...
Here are some more alternatives to try:

Use a here string
read var1 var2 <<< "$(openstack hypervisor stats show | awk -F'|' 'NR==14{print $2,$3}')"
Use a here document
read var1 var2 << EOB
...
557
Posted By Chubler_XL
the first < is a standard input redirection and...
the first < is a standard input redirection and causes input to the read command to come from a file.

The second part is process substitution witch takes the format of <(list). The value list...
Forum: What is on Your Mind? 4 Weeks Ago
1,051
Posted By Neo
Moderators of the Year 2019 - Ravinder Singh and Victor Berridge
Today, I am very pleased to announce that the Moderator of the Year Award, 2019 has two very deserving winners.

Ravinder Singh (RavinderSingh13) and Victor Berridge (vbe)

Victor (vbe) has...
Forum: Shell Programming and Scripting 4 Weeks Ago
687
Posted By nezabudka
Hi You can use the -V option sort -V or...
Hi
You can use the -V option
sort -V
or even sort right away in a file
vim -nes +'%!sort -V' +wq file
891
Posted By Peasant
I've seen this mostly related to DNS query...
I've seen this mostly related to DNS query timeouts setup from client side.
The defaults are quite high on most linux/unix operating system, from AIX man page online :


In practice if you have,...
668
Posted By RudiC
OK; give it a shot and report back the errors...
OK; give it a shot and report back the errors and/or shortfalls you encounter.
607
Posted By vbe
This reminds me of silly situations I found...
This reminds me of silly situations I found myself from time to time... when a server goes wrong and at reboot, needs manual instruction to continue to boot, only when it happens it looses its...
767
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...
999
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...
999
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? 01-01-2020
174
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...
922
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...
1,371
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...
933
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...
1,258
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
1,313
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? 12-18-2019
1,273
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...
2,037
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...
924
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...
948
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,387
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...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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