I want to execute a command something like:
find / -name "jni.h"
and I want to direct the output of that command to some type of
filter that will leave out all the lines reporting inaccessible
directories (permission unavailable). Is this a pipe or a redirect?
For example, output like... (1 Reply)
Currently, i am trying to create a simple robust script that is intended to move the contents of a given source directory to a target directory. Optionally, the script should allow to either move the whole source dir content, or dotfiles only, or visible files only. I am aware the target directory... (0 Replies)
Is there a way to keep the output of a script displayed on the terminal when it's run by itself, but suspend part of that output and only have a specific part delivered when it's piped to another script or program? I'm thinking something like the following pseudocode:
#!/bin/bash
... (1 Reply)
Hi All,
When starting an SSH tunnel, piped output 'hangs' (on AIX) :
ssh -Nf -Llocalhost:22000:server:22 proxy | cat -vet -
... hangs ...
Does anybody know how to prevent this?
Of course, in my script I don't use the tunnel as I do in the example above. In my script the call to ssh is... (7 Replies)
hi
i have a script named mount.sh under the location /data/scripts/ in my aix box
i want this script this to be run everyday morning at 04:45 AM and the output of the script should be piped to a file
how to do this ? (3 Replies)
I have an encrypted password file, and I've created a simple script to search the password file for a particular record. There are multiple lines per record, so I'm using a record delimiter.
#!/bin/bash
PATTERN=$1
openssl des3 -d -salt -in ~/docs/pass.des3 | awk '{ FS="\n" ; RS="*" }... (2 Replies)
Hello,
I'm pretty stumped, and I don't know why I am not able to redirect the output to the 'graphme' file with the command below in Fedora 18.
tcpdump -l -n -t "tcp == 18" | perl -ane '($s,$j)=split(/,/,$F,2); print "$s\n";' > graphme
In case you're wondering, I was following the example... (2 Replies)
i need to do something like this:
script.sh
#!/bin/sh
echo "hello"
echo "My First name is John"
echo "My Last name is Smith"
echo "I am here to save you a lot of work"
sed -n 4,5p $0
i dont want to run the script. i just want to pull out specific line from it. so the logic here... (5 Replies)
to run most other scripts through a pipe, something similar to the following is usually enough:
cat script.sh | sh
cat perl.pl | perl -- "<arguments"
However, for javascript command line scripts, i cant seem to get this to work. Any ideas?
cat hull.js
#!/usr/bin/js
... (3 Replies)
Discussion started by: SkySmart
3 Replies
LEARN ABOUT OSX
xed
xed(1) BSD General Commands Manual xed(1)NAME
xed -- Xcode text editor invocation tool.
SYNOPSIS
xed [-xcwrbhv] [-l lineno] [file ...]
DESCRIPTION
The xed tool launches the Xcode application and opens the given documents, or opens a new untitled document, optionally with the contents of
standard in.
OPTIONS
The options for xed are similar to those for the command-line utiltiies for other text editors:
-x, --launch
Launches Xcode opening a new empty unsaved file, without reading from standard input.
-c, --create
Creates any files in the file list that do not already exist. If used without --launch, standard input will be read and piped to
the last file created.
-w, --wait
Wait for the files to be closed before exiting. xed will idle in a run loop waiting for a notification from Xcode when each file is
closed, and will only terminate when all are closed. This is useful when invoking it from a script.
-l, --line <number>
Selects the given line in the last file opened.
-b, --background
Opens Xcode without activating it; the process that invoked xed remains in front.
-h, --help
Prints a brief summary of usage.
-v, --version
Prints the version number of xed
[file...]
A list of file paths. Existing files will be opened; nonexistent files will be created only if the --create flag is passed. If no
files are passed, then standard input will be read and piped into a new untitled dcument (unless --launch is passed). If --create
and at least one nonexistent file name is passed, the last nonexistent file will be created, filled with the standard input, and
opened.
HISTORY
xed was introduced in Mac OS X 10.5 with Xcode 3.0.
Mac OS June 1, 2019 Mac OS