Search Results

Search: Posts Made By: migurus
Forum: Linux 03-12-2020
10,099
Posted By migurus
Program installed on host is not visible in lx container
Ubuntu 18.04, a number of lx containers running on it.
I am a complete noob in containers, just getting my toes wet.
I installed "tree" utility using apt on the host, thinking that it would be...
12,052
Posted By migurus
Thank you RudiC
Thank you RudiC
12,052
Posted By migurus
awk search syntax
I need help with understanding awk search feature.


Here I am trying to search by 4th field in this file:



$ cat xx
471013,A20,asd,100,FEATURE UNKNOWN
171014,A22,sdf,101,FEATURE WITH...
4,407
Posted By migurus
So, I added a "group id" to be included in the...
So, I added a "group id" to be included in the sort and solved it that way, and I don't pipe to sort individual arrays (which I suspect was a bug)
Just in case my code now looks like this:
...
4,407
Posted By migurus
Rearrange groups of lines from several files
I have three files as an input and I need to rearrange this input to match the rules by which the processing program consumes the data.


My files are:

/tmp$ cat F[123]
# file -1-...
Forum: Programming 06-15-2019
13,611
Posted By migurus
It was Solaris 11 on Intel
It was Solaris 11 on Intel
Forum: Programming 06-14-2019
13,611
Posted By migurus
Thank you! That is so interesting! ...
Thank you! That is so interesting!



Just for a comparison I run that code where I pass a structure as 2nd parameter on Solaris 11, here is the output, which is quite different
params:
1)...
Forum: Programming 06-12-2019
13,611
Posted By migurus
Parameters placement on stack in C
I am trying to illustrate the reverse order of parameters on the stack when passed to a function in C:



#include <stdio.h>

void p(int p1, int p2, double p3)
{
printf("params:\n"
...
Forum: Programming 10-15-2018
4,285
Posted By migurus
I don't quite understand the question, the...
I don't quite understand the question, the fopen() is not used here at all. If you meant fdopen(), then yes, in this code the call to fdopen uses fd variable, which is initialized by mkstemp
Forum: Programming 10-13-2018
4,285
Posted By migurus
C fdopen with and without -ansi
I have very little experience with gcc compilation under different environments, so please bear with me. I carried over 20 years old project into Ubuntu 18.04, it has old style K&R parameters, no ...
2,499
Posted By migurus
I liked the idea of using the seconds since...
I liked the idea of using the seconds since epoch. This is old SCO system, its find does not have printf option. Found a gnutools with find that supports printf option and located all the files I...
2,499
Posted By migurus
Finding oldest files
There are some 25,000 files in 7,000 directories in my source library and I am trying to find oldest files. I am running this find:


find /usr/mysrc -name "*.[ch]" -type f -mtime +8000 -exec...
Forum: Programming 04-30-2018
2,357
Posted By migurus
Memory corruption in dynamic array of strings
I put together a C function to add strings to a dynamic array of strings (mostly for educational purpose to explain pointers to my kid). It works, but sometimes one or two strings in the array...
Forum: Hardware 04-26-2018
7,533
Posted By migurus
Yes, the USB over Ethernet won't apply here...
Yes, the USB over Ethernet won't apply here because of the wiring difficulty.

There is no wiring in the room. When I said that networking can be done I thought that I would use...
Forum: Hardware 04-25-2018
7,533
Posted By migurus
8 meters of air, almost line of sight
8 meters of air, almost line of sight
Forum: Hardware 04-24-2018
7,533
Posted By migurus
Distance between the G5 box and the printer is...
Distance between the G5 box and the printer is around 8 meters on a straight line
Forum: Hardware 04-24-2018
7,533
Posted By migurus
Wireless connection to printer
I need to connect old PPC G5 running OSX 10.5.8 to Epson Stylus 1400 printer, wiring is very difficult, so I need to find out what are my wireless options. Printer has only USB input. The printing...
3,691
Posted By migurus
Thank you, I did not know about cron treating %...
Thank you, I did not know about cron treating % as a special character
3,691
Posted By migurus
Command syntax error in cron
SCO OSR 507, user's shell is old Bourne sh
The same command is OK when run using now, but fails when run in cron, see below:

1) using now, see how it worked and I see resulting DT=2018 in the...
4,559
Posted By migurus
you could add cd $i before issuing zip...
you could add
cd $i
before issuing zip command, and then
cd ..
right after

So your loop would look like follows

do
cd $I
your zip here, just adjust it accordingly
cd...
1,503
Posted By migurus
Great, works exactly as expected.
Great, works exactly as expected.
1,503
Posted By migurus
Continuation lines to be glued back to original line
I am parsing a log with this format:

06:36:12.230 [TASK1] details here
06:36:12.250 [TASK1] details here
06:36:12.260 [TASK1] details here
continuation here
06:36:12.360 [TASK1] details here
...
1,140
Posted By migurus
I see that you use wget, so consider --spider...
I see that you use wget, so consider --spider option.

you can say

wget -q --spider your-url-to-check-here
echo $?
0 means file exists, 1 means file does not exist
2,369
Posted By migurus
older grep don't have -o option, in that case...
older grep don't have -o option, in that case following your example just say
tr ' ' '\n' < list_of | grep -E '\.exe|\.bin'
2,725
Posted By migurus
Thank you, worked.
Thank you, worked.
Showing results 1 to 25 of 310

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