Tag Info

Hot answers tagged

4

This command will list all files indexed by spotlight system: mdfind "kMDItemDisplayName == '*'" To store the output in a file: mdfind "kMDItemDisplayName == '*'" > listOfFiles.txt


3

Solved! I used the Bing Wallpaper.app found here that does exactly what I needed.


3

You could use this script taken from here. #!/usr/bin/env python import os import md5 import pprint import sys import subprocess from time import strftime from urllib import URLopener from urllib2 import urlopen from xml.dom.minidom import parseString # Defines source and destination of image rss_feed = 'http://feeds.feedburner.com/bingimages'; dst_dir = ...


3

It's probably safe to say that most Mac users do not open GUI apps via the CLI, which is why most GUI apps do not include the CLI support like TextMate does. In other words, TextMate actually includes a binary executable named mate which is installed in $PATH, which is why one does not need to preface it with the open command like opening a GUI app which ...


2

It is stored in the user's Saved Application State folder, located at: /Users/$USER/Library/Saved Application State/com.apple.Terminal.savedState


2

Here is an interesting solution to share internet with a layer-2 bridge but without using NAT/DHCP (not required)/Internet Sharing Pref Panel at all: Create a shell script ethernet-bridge.sh in /usr/local/sbin with the following content: #! /bin/sh # ###################################### # coded by Nat! # 2013 Mulle kybernetiK # GPL ...


2

Stdout in this case is line-buffered and is 1024 bytes which is causing the output truncation on the display. When you paste from the clipboard the non-printable New-Line (EOL) characters at the end of each line are simply counted as another character on the line as far as the buffer count is concerned. The reason the math doesn’t add up for where the ...


2

In reproducing this to investigate, I notice that I have my keychain configured to “Confirm before allowing access.” So when I perform the find-internet-password locally with the -g flag, I get a dialog box stating security wants to use your confidential information stored in “smtp.gmail.com” in your keychain. If I click “Allow” then it works, if I click ...


1

From man nl: BUGS Input lines are limited to LINE_MAX (2048) bytes in length. To fix, you can either patch the source yourself (might need some work) or get the source for the Linux version (which is probably available on any GNU server).


1

Basically you want to find a bunch of files which are empty (have size 0 bytes) and then change their content to "This file is empty". cd to/wherever/the/files/are find . -type f -size 0 -print | while IFS= read -r line; do echo "This file is empty" > "$line" done If instead you want to remove them, run cd to/wherever/the/files/are find . -type f ...


1

The folder name contains a space which means that the shell interprets it as two separate arguments. Either escape the space with a \ or enclose the string in ". cd "folder name" cd folder\ name


1

To open a application from the terminal it has to be in one of the paths of your $PATH environnement variable. By default /Application/ where Chrome is located is not in your path. Therefore you can't launch an application without giving the full path to your app. /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome http://google.com Will ...



Only top voted, non community-wiki answers of a minimum length are eligible