Sponsored Content
Top Forums Shell Programming and Scripting find error?? find / -name "something.txt" 2>/dev/null Post 302531015 by Corona688 on Wednesday 15th of June 2011 04:03:55 PM
Old 06-15-2011
What are you typing that into?
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find -name "*.txt" in Korn Shell Script

The following find command works on the Korn Shell command line: find . \( ! -name . -prune \) -type f -name "*.txt" -mtime +100 In the particular directory I'm in, the above find will list correctly the three text files that exist that haven't been modified in over 100 days: ... (3 Replies)
Discussion started by: jwperry
3 Replies

2. Shell Programming and Scripting

"find command" to find the files in the current directories but not in the "subdir"

Dear friends, please tell me how to find the files which are existing in the current directory, but it sholud not search in the sub directories.. it is like this, current directory contains file1, file2, file3, dir1, dir2 and dir1 conatins file4, file5 and dir2 contains file6,... (9 Replies)
Discussion started by: swamymns
9 Replies

3. Shell Programming and Scripting

Meaning of "> /dev/null 2>&1"

Hi, I am new into UNIX shell scripting and I am wondering what is the meaning of the below text which appears at the end of each line in the ".sh" file: > /dev/null 2>&1 For example, the line below: sh $HOME/stats/Rep777/Act_777.sh omc omc > /dev/null 2>&1 I know for sure what "sh... (10 Replies)
Discussion started by: salanalani
10 Replies

4. Shell Programming and Scripting

Difference between ">/dev/null 2>&1" and "2>&1 >/dev/null"

Does >/dev/null 2>&1 and 2>&1 >/dev/null mean the same? (4 Replies)
Discussion started by: proactiveaditya
4 Replies

5. UNIX for Dummies Questions & Answers

"-maxdepth 1" argument for Solaris find. Other way to restrict find in only one directory?

Hi I wish to find only files in dir /srv/container/content/imz06/. It means exclude subfolder /srv/container/content/imz06/archive/ > uname -a SunOS testbox6 5.10 Generic_139555-08 sun4v sparc SUNW,Sun-Blade-T6320Its Solaris default "find" > find /srv/container/content/imz06/* -name... (4 Replies)
Discussion started by: slashdotweenie
4 Replies

6. Shell Programming and Scripting

Using sed to find text between a "string " and character ","

Hello everyone Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
Discussion started by: haggismn
10 Replies

7. UNIX for Dummies Questions & Answers

find/xargs/*grep: find multi-line empty "try-catch" blocks - eg, missing ; not in a commented block

How can I recursively find all files in a directory and print out the file and first line number of any text blocks that match the below cases? This would seem to involve find, xargs, *grep, regex, etc. In summary, I want to find so-called empty "try-catch blocks" that do not contain code... (0 Replies)
Discussion started by: lifechamp
0 Replies

8. Shell Programming and Scripting

Redirecting standard out to /dev/null goes to file "/dev/null" instead

I apologize if this question has been answered else where or is too elementary. I ran across a KSH script (long unimportant story) that does this: if ; then CAS_SRC_LOG="/var/log/cas_src.log 2>&1" else CAS_SRC_LOG="/dev/null 2>&1" fithen does this: /usr/bin/echo "heartbeat:... (5 Replies)
Discussion started by: jbmorrisonjr
5 Replies

9. Shell Programming and Scripting

Find lines with "A" then change "E" to "X" same line

I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies

10. Shell Programming and Scripting

find . -path "*_nobackup*" -prune -iname "*.PDF" \( ! -name "*_nobackup.*" \)

These three finds worked as expected: $ find . -iname "*.PDF" $ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \) $ find . -path "*_nobackup*" -prune -iname "*.PDF" They all returned the match: ./folder/file.pdf :b: This find returned no matches: $ find . -path "*_nobackup*" -prune... (3 Replies)
Discussion started by: wolfv
3 Replies
xmatrix(6x)							XScreenSaver manual						       xmatrix(6x)

NAME
xmatrix - simulates the computer displays from the movie SYNOPSIS
xmatrix [-display host:display.screen] [-window] [-root] [-install] [-visual visual] [-delay usecs] [-density percentage] [-top | -bottom | -both] [-small | -large] [-trace] [-mode mode] [-phone number] [-fps] DESCRIPTION
The xmatrix program draws the 2D "digital rain" effect, as seen on the computer monitors in the Wachowski brothers' film, "The Matrix". Also see glmatrix(6x) for a 3D rendering of the similar effect that appeared in the title sequence of the movie. OPTIONS
xmatrix accepts the following options: -window Draw on a newly-created window. This is the default. -root Draw on the root window. -install Install a private colormap for the window. -visual visual Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual. -delay usecs The delay between steps of the animation, in microseconds: default 10000. -density percentage The approximate percentage of the screen that should be filled with characters at any given time. Default 75%. When running in a window, typing + will increase the density and typing - will decrease it. Typing 0 will momentarily drain the screen. -top | -bottom | -both If -top is specified, the characters will only drop in from the top of the screen as sliding columns of characters. If -bottom is specified, then instead of sliding columns, the characters will appear as columns that grow downwards and are erased from above. If -both is specified, then a mixture of both styles will be used. The default is -both. When running in a window, typing [ will switch to top-mode, typing ] will switch to bottom-mode, and typing will switch to both- mode. -small | -large These options specify the sizes of the characters. The default is -large. -mode trace Start off with a representation of a phone number being traced. When the number is finally found, display The Matrix as usual. This is the default. -phone number The phone number to trace, if -trace is specified. -mode crack Start off by shutting down the power grid. -mode binary Instead of displaying Matrix glyphs, only display ones and zeros. -mode hexadecimal Instead of displaying Matrix glyphs, display hexadecimal digits. -mode dna Instead of displaying Matrix glyphs, display genetic code (guanine, adenine, thymine, and cytosine.) -mode ascii Instead of displaying Matrix glyphs, display random ASCII characters. -mode pipe Instead of displaying random characters, display the output of a subprocess, as ASCII. -program sh-command The command to run to generate the text to display. This option may be any string acceptable to /bin/sh. The program will be run at the end of a pty or pipe, and any characters that it prints to stdout will be placed in the feeders for xmatrix. If the program exits, it will be launched again after xmatrix has processed all the text it produced. For example: xmatrix -program 'echo Hello World' xmatrix -ascii -program 'ps -eo comm | rev' xmatrix -program 'od -txC -w6 /dev/random' xmatrix -program 'cat /dev/random' ENVIRONMENT
DISPLAY to get the default host and display number. XENVIRONMENT to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property. SEE ALSO
glmatrix(6x), X(1), xscreensaver(1) COPYRIGHT
Copyright (C) 1999-2003 by Jamie Zawinski. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. AUTHOR
Jamie Zawinski <jwz@jwz.org>, 25-Apr-99. X Version 11 5.15 (28-Sep-2011) xmatrix(6x)
All times are GMT -4. The time now is 08:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy