02-16-2009
Thanks I also have another quick question, what command do I need to use to show the number of regular files in my directory? as I am a little bit confused on what is the difference between regular files and other files. Is it the same as the files in the content of the directory?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how to i use javac on a file after searching for it? example:
find . -name '*.java' -size -24 -links -2 -atime -4
what would happen if "find" found >1 .java files?
also, i'm a little confused on the -size property... mix up between -2 and +2... what's the difference? (1 Reply)
Discussion started by: quipy
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I did not understand why the following did not work out as I expected:
find . -name "pqp.txt" | grep -v "Permission"
I thought I would be able to catch whichever paths containing my pqp.txt file without receiving the display of messages such as "find: cannot access... Permisson... (1 Reply)
Discussion started by: 435 Gavea
1 Replies
3. Shell Programming and Scripting
Hi,
I was wondering why ls * | echo does not print the contents of the directory to the screen? The way I see it, ls * returns a whole lot of information, and then we pipe all this info to echo, so surely it should all come to our screen!
Is there a serious flaw in my understanding?
... (3 Replies)
Discussion started by: A1977
3 Replies
4. UNIX for Dummies Questions & Answers
Can anyone interpret and tell me the way the below command works?
find * -name "*${msgType}" -mtime +${archiveDays} -prune -type f -print 2>/dev/null | xargs rm -f 2> /dev/null
Please tell me the usage of prune and xargs in the above command?
Looking forward your reply.
Thanks in... (1 Reply)
Discussion started by: venkatesht
1 Replies
5. Shell Programming and Scripting
Dear forum
I have the following small script:
#!/bin/ksh
echo -e "abba-o" | awk -F '-' '{ print $2 }' | cut -b 1It needs to be ksh.. in bash I don't have this problem.
If I run this on opensuse 10.2 I get this as output: e
If I run this on suse enterprise 10 sp2 then I get this: o
... (1 Reply)
Discussion started by: gemtry
1 Replies
6. Shell Programming and Scripting
I am trying to have a script run without interaction from the command line. So in my script i have a line like this
echo -e "\n\n\ny\ny\n" | ./script
the goal being the ability to mimic 3 Enter presses and 2 'y/n' responses with 'y' followed by enter.
For some reason tho, it is not... (1 Reply)
Discussion started by: mcdef
1 Replies
7. Shell Programming and Scripting
Hi all. I am using procmail to deliver an email to a script I am developing. Procmail delivers the email to the script on standard input. I imagine this is the same as piping input from a command into the script. Hence I've been testing my script by running
echo 'test' | sms-autosend-backup.sh
... (2 Replies)
Discussion started by: akindo
2 Replies
8. Shell Programming and Scripting
Hello!
One command generates a file path, which I then want to open in finder. The slow way is this with C&P:
$bundle show jquery-validator
/Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/jquery-validator-0.3.0
$open /Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/jquery-validator-0.3.0
I... (4 Replies)
Discussion started by: pehrlich
4 Replies
9. Shell Programming and Scripting
I have a script which outputs some timing data a line at a time. There are approx. 10 lines echoed, each line looks something like this:
0.741 http://checkip.dyndns.org 94.170.119.226Since I needed to add all the values in the first column, I piped the output to grep, matching and printing the... (7 Replies)
Discussion started by: gencon
7 Replies
10. Shell Programming and Scripting
i have a file seperated each line seperated by newline. For example
alpha
beta
gamma
i am trying to replace the newlines to "," but dont want , present at the end of the line so i am trying the below one liner . but not sure whats wrong but its not working
cat myfile | tr -s '\n' ',' | sed... (9 Replies)
Discussion started by: chidori
9 Replies
uupick(8) System Manager's Manual uupick(8)
NAME
uupick - retrieve files transferred by uuto
SYNOPSIS
uupick [-s system] [--system system]
DESCRIPTION
The uupick program is used to conveniently retrieve files transferred by the uuto program.
For each file transferred by uuto, uupick will display the source system, the file name, and whether the name refers to a regular file or a
directory. It will then wait for the user to specify an action to take. One of the following commands must be entered:
`q'
Quit out of `uupick'.
`RETURN'
Skip the file.
`m [directory]'
Move the file or directory to the specified directory. If no
directory is specified, the file is moved to the current directory.
`a [directory]'
Move all files from this system to the specified directory. If no
directory is specified, the files are moved to the current
directory.
`p'
List the file on standard output.
`d'
Delete the file.
`! [command]'
Execute `command' as a shell escape.
OPTIONS
-s system, --system system
Used to restrict `uupick' to only present files transferred from a particular system.
Standard UUCP options:
-x type, --debug type
Turn on particular debugging types. The following types are recognized: abnormal, chat, handshake, uucp-proto, proto, port, config,
spooldir, execute, incoming, outgoing.
-I file, --config
Set configuration file to use.
-v, --version
Report version information and exit.
--help
Print a help message and exit.
SEE ALSO
uucp(1), uuto(1)
AUTHOR
Ian Lance Taylor <ian@airs.com>. Text for this Manpage comes from Taylor UUCP, version 1.07 Info documentation.
Taylor UUCP 1.07 uupick(8)