Tag Info

Hot answers tagged

3

You can achieve it with dd command. Here's an example: $ hexdump StringComparison | head -1 0000000 cf fa ed fe 07 00 00 01 03 00 00 80 02 00 00 00 $ printf '\x11\x11\x11' | dd of=StringComparison bs=1 seek=4 count=3 conv=notrunc 3+0 records in 3+0 records out 3 bytes transferred in 0.000293 secs (10238 bytes/sec) $ hexdump StringComparison | head -1 ...


2

Click "View" / "Hide Tab Bar" and the tab bar will go away and come back only when there is more than one tab open.


2

It updates the prompt to echo the Current Working Directory (CWD) and is defined in /etc/bashrc: update_terminal_cwd() { # Identify the directory using a "file:" scheme URL, # including the host name to disambiguate local vs. # remote connections. Percent-escape spaces. local SEARCH=' ' local REPLACE='%20' local ...


1

The type shell builtin is used to see how it's arguments would be interpreted as a command. Try replacing type with cat and see if that does what you expect.


1

To keep restarting the job on succesful exit You can use launchd on OSX. For this You have to prepare *.plist file in order to "tell" launchd how to behave. To restart application on succesfull exit please look at KeepAlive -> SuccessfulExit key (more info: ...


1

Emoji are simply unicode characters that are rendered as such by the operating system. In the following screenshot, you can see that unicode is "allowed" in filenames: In fact, these are even rendered by Finder: To fix this, simply rename the file through Finder or Terminal. This happens because whatever glyph substitution algorithm that they use is ...


1

Use find: find "$arg" -iname \*.txt -o -iname \*.h -o -iname \*.py|while read f;do :;done Use IFS= read -r if the paths can end with spaces or contain backslashes. Or install bash 4: brew install bash;echo /usr/local/bin/bash|sudo tee -a /etc/shells;chsh -s /usr/local/bin/bash Then: shopt -s globstar nocaseglob;for f in "$arg"/**/*.{txt,h,py};do ...


1

In my case it was the Maven Failsafe Plugin that caused the annoying window focus stealing of ForkedBooter, and setting the JAVA_TOOL_OPTIONS variable in .bashrc didn't help. This fix applies to both Failsafe and Surefire (although in my case, Surefire wasn't stealing focus). In your pom.xml, add a <argLine>-Djava.awt.headless=true</argLine> ...



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