bsd Questions
3
Solved
I'm working on mac OS 10.7.4. using Xcode 4.3.2 .
I had a *.a static library file from my partner. I want to know which architecture it is built for. Is it ARMv6, ARMv7, i386 or other architecture...
4
Solved
I'm writing an (un)archiving tool and the way it is designed it first creates a regular file from the archive before it examines the special attributes and may decide that this item is a symlink, i...
4
I run git grep "\<blah\>" regularly on my linux development server, but I just discovered that I am not able to use \< and \> on Mac (Mac OS X 10.6.8) (not able to use = it does not fin...
12
I'm looking for alternative ways to obtain the command line parameters argc and argv provided to a process without having direct access to the variables passed into main().
I want to make a class ...
6
For a few years, I often have a need to combine lines of (sorted) text with a matching first field, and I never found an elegant (i.e. one-liner unix command line) way to do it. What I want is simi...
Photochromy asked 13/10, 2017 at 16:51
2
Solved
Currently, I have implemented a singly linked list, like so:
struct PeerNode {
struct Peer* cargo;
struct PeerNode* next;
};
...and I have a struct that contains a couple of these linked lists...
15
Solved
Is there an invocation of sed todo in-place editing without backups that works both on Linux and Mac? While the BSD sed shipped with OS X seems to need sed -i '' …, the GNU sed Linux distributions ...
6
someone i know encountered a problem when running 'lmutil' so i asked them to strace -f lmutil. Why is execve failing with "No such file"!!! It makes no sense, since I am straceing the very same fi...
3
Solved
I'm wondering how I can do a multiple find/replace using a single sed statment in Mac OSX. I'm able to do this in Ubuntu but because of the BSD nature of OSX, the command must be slightly altered.
...
1
I wrote the following command
echo -en 'uno\ndue\n' | sed -E 's/^.*(uno|$)/\1/'
expecting the following output
uno
This is indeed the case with my GNU Sed 4.8.
However, I've verified that BSD Se...
2
16
Solved
Ping returns this by default:
64 bytes from 203.173.50.132: icmp_seq=0 ttl=244 time=57.746 ms
Is there some way I can get it to add the timestamp?
For example,
Mon 21 May 2012 15:15:37 EST | 6...
4
Solved
I am writing a shell script that needs to do some date string manipulation. The script should work across as many *nix variants as possible, so I need to handle situations where the machine might h...
6
Solved
I'm interested in verifying if a given iPhone static library has been built for ARM or Intel.
It's more curiosity than anything. Is there some kind of Mac OS X or BSD specific tool to do this? Th...
Illusionism asked 6/7, 2009 at 2:12
3
Solved
I use sed command on mac OS, following is the text.
$ cat pets.txt
This is my cat
my cat's name is betty
This is your dog
your dog's name is frank
This is your fish
your fish's name is george
...
2
Solved
I have recently started using OpenBSD. And I want to create easy fire-and-forget containers/VM or something es (it should be used as a Sandbox).
The user can upload his source code (C++/Java...
5
I have a large text file with content set up like this:
---
title: Lorim Ipsum Dolar
---
Lorim ipsum content
---
title: Excelvier whatever
---
Lorim ipsum content goes here.
I'm trying to spli...
5
Solved
3
Solved
I've looked this up a thousand times, and I always forget it, so, here for eternity:
Solaris has a bit of an awkward syntax for tail.
How do I do the equivalent of BSD's tail -nN?
What I want ar...
4
Solved
Greetings, how do I perform the following in BSD sed?
sed 's/ /\n/g'
From the man-page it states that \n will be treated literally within a replacement string, how do I avoid this behavior? Is t...
2
Solved
In my bash script on mac (snow leopard) I have a path and filename, and I need to get the modified date/time of that file. I found I could do:
stat -f "%m" $MYFILE
However, that returns what I a...
Septum asked 29/8, 2012 at 1:25
8
Solved
3
Solved
Despite a careful read of the related standard documentation, I can't understand what's the expected behavior in POSIX compliant systems when a open system call is invoked with flags including O_CR...
Muchness asked 22/8, 2017 at 13:11
2
Solved
1 Next >
© 2022 - 2024 — McMap. All rights reserved.