Sponsored Content
Top Forums Shell Programming and Scripting pbpaste and grep with Mac X11 Post 302655505 by palex on Wednesday 13th of June 2012 09:08:42 AM
Old 06-13-2012
pbpaste and grep with Mac X11

Hello,
Here is what I am trying to do:

1) Copy a string to the pasteboard using Command-C
2) Search for the string in a file in X11.

Command-C
pbaste | grep - filname (does NOT work)

What is the correct syntax?

Thanks!
 

8 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

cygwin-x/can't install xorg-x11-f100 & xorg-x11-fnts

Hello All. Really a newbie to Linux/Unix. Trying to get into Linux. Using XP PE currently. Installed cygwin and trying to intall cygwin-x. Everything else is setup nice but i can't seem to install these two packages (without whom xwin won't start) 1. xorg-x11-f100 2. xorg-x11-fnts Tried the... (1 Reply)
Discussion started by: binodbdrchand
1 Replies

2. UNIX Desktop Questions & Answers

X11 Display Problem with Mac OSX after creating new account

For preliminaries, I am on a Mac Pro running 10.5. I am trying to run a program that opens an X11 graphic and plots a mesh. The little program is called showme. It has worked just fine in the past. Up until I had to make a new user account on this machine for myself. Now every time I try to... (8 Replies)
Discussion started by: Bocephus85
8 Replies

3. OS X (Apple)

pbpaste

Hello, When I paste the contents of the clipboard to the command line via pbpaste, there is also a carriage return implicitly pasted (i.e. whatever gets pasted is automatically sent as a command). Is there a way to use pbpaste without this feature, so I can edit the text before sending the... (6 Replies)
Discussion started by: palex
6 Replies

4. UNIX for Advanced & Expert Users

[Solved] putty+x11:How do I pass X11 display rights to "su"?

I can log into a unix system with Putty. I've set the "X11 forwarding" checkbox, and I've verified that I can display an X11 window back on my laptop. What I need to be able to do is "su" to another uid after logging in and then run something which display a window back on my laptop, with the... (2 Replies)
Discussion started by: dkarr
2 Replies

5. UNIX for Dummies Questions & Answers

pbpaste to application in terminal

Is it possible to execute a pbpaste command to an application or current application in focus? Thanks (0 Replies)
Discussion started by: fhill2
0 Replies

6. Shell Programming and Scripting

GREP mac address

Hi, mac.txt My mac address is <Mac Address>. How can i replace <Mac Address> with the actual of my computer? I try to GREP command as below but i am unable to grep it to replace just <Mac Address>. ifconfig eth0 | grep -o -E '(]{1,2}:){5}]{1,2}' Million in Advance. Please use... (7 Replies)
Discussion started by: derrickyee81
7 Replies

7. Shell Programming and Scripting

Grep not working on mac

Hi all, I got a new mac and can't get grep, awk etc to work. I tried the following command: grep DICER test.txt output: AGOER text.txt looks like this: DICER DICER AGOWhat is wrong? Please use code tags (23 Replies)
Discussion started by: Palgrave
23 Replies

8. OS X (Apple)

Piping to grep with pbpaste

cat file 1 aaa 2 bbb 3 ccc 4 ddd In TextEdit, I then copy the characters “ccc” to the clipboard. The problem is that the following command gives no output: bash-3.2$ pbpaste | grep - file Desired output: 3 ccc What should the syntax be for that command? I am using MacOS El... (3 Replies)
Discussion started by: palex
3 Replies
quartz-wm(1)						      General Commands Manual						      quartz-wm(1)

NAME
quartz-wm - Aqua Window Manager for the X Window System on OS X SYNTAX
quartz-wm [ --only-proxy ] DESCRIPTION
quartz-wm is a window manager for the X Window System. It provides titlebars for X11 windows that aim to match the look and feel of native Mac OS X windows. It also contains functionality to bridge between the system pasteboard and the X server's PRIMARY and CLIPBOARD selec- tions. OPTIONS
quartz-wm accepts the following command line options: --only-proxy This option indicates that the program should not attempt to manage any of the display's screens. However the selection proxying features will still be enabled, meaning that a different window manager may be used, but cut and paste will work as if quartz-wm were running. --no-pasteboard This option indicates that the program should not manage the cut and paste proxying. This option is defaulted to on for newer X11 servers that support this functionality and off for older servers that do not. --prefs-domain <domain> This option can be used to override the domain used to read preferences from. This is useful if you want to have multiple X11.apps running at the same time. CUSTOMIZATION
quartz-wm can be customized using the defaults(1) command. quartz-wm can be forced to re-read these preferences by sending it a SIGHUP using kill(1). The available options are: defaults write org.x.X11 wm_ffm -bool true Enables focus-follows-mouse mode. Windows belonging to the X server may then be focused by moving the pointer over them, as well as the default mode of clicking in them. defaults write org.x.X11 wm_click_through -bool true Disables the default behavior of swallowing window-activating mouse events. defaults write org.x.X11 wm_limit_size -bool true Limit the size of each window to the size of the current head. defaults write org.x.x11 wm_focus_on_new_window -bool false Don't tell X11.app to take focus when a new X11 window is created. defaults write org.x.X11 wm_window_shading -bool true Enables double clicking on a titlebar to shade the window defaults write org.x.X11 wm_auto_quit -bool true Automatically quit quartz-wm (thus shutting down the X11 server) when the last window is closed. defaults write org.x.X11 wm_auto_quit_timeout -int 3 Set the timeout for the auto-quit feature. If wm_auto_quit is true, quartz-wm will wait this many seconds before attempting to shutdown. If another window is created in that time, quartz-wm will not shutdown. ENVIRONMENT VARIABLES
DISPLAY This variable is used to determine which X server to use. SEE ALSO
X(7), Xquartz(1), xrdb(1), twm(1) 0.0 quartz-wm(1)
All times are GMT -4. The time now is 02:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy