It works like -printf, but you don't need the redirection, it outputs to a file. So, to output just the filenames with no paths to "outfile", do something like
Then, all filenames will appear in "outfile" instead of STDOUT
At times I have thse Oracle logfiles that grow like crazy and fill up a specific file system. I wanted to write a find command that lists which are the biggest files from the search path..so
/qbidora02/oracledba/find . -name ....... <downward to the lowest level> and list file names, sizes and... (2 Replies)
So I have a lot of Java applications on my servers all having their own folder from the applications subdirectory. Now, I need to do the following.
Search all the applications subdirectories for message.jar.
If the message.jar file exists, I need to search the application directory for... (1 Reply)
Could someone explain me the following fprintf format:
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
Why just not use:
fprintf(stderr, "ry `%s --help' for more information.\n", program_name)
I mean what is _() does? (1 Reply)
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Hi All,
I want to display content on command promt and also write in file.
For that iI ahve to write two sentence
echo "XXXXXXX"
echo "XXXXXXXX" >> 1.txt
Is there any way to write in one echo statement (1 Reply)
I need to find empty files in a directory and write them into a text file. Directory will contain old files as well, i need to get the empty files for the last one hour only. (1 Reply)
i had to send a mail an attachment which i got from find command.
But i did not get mail but could see the following line in the logs "aliased to fprintf.c". Can someone help me to understand what does it mean?..As this issue is not occuring now, i could not replicate the problem now.Thanks. (1 Reply)
I have a .csv file that has been create from a google form and I need to extract the data from it that has been entered by users.
The CSV will have anywhere between 100 and 1000 lines which comprise entr data for a sports carnival
A few typical line is shown here to show the problem I have
... (19 Replies)
Hi
I am transferring files to SFTP Server using sftp command(below), and want to write log file of this activity. Can you please advise if i am doing wrong.
sftp -v -oIdentityFile=/home/bbm_user/bbm/private_open_ssh.ppm umf-sftp@bbm-prod-send.com <<EOF
put $local_path/*.gz $remote_path/... (3 Replies)
Discussion started by: cnrj
3 Replies
LEARN ABOUT PLAN9
man
MAN(1) General Commands Manual MAN(1)NAME
man, lookman - print or find pages of this manual
SYNOPSIS
man [ option ... ] [ section ... ] title ...
lookman key ...
DESCRIPTION
Man locates and prints pages of this manual named title in the specified sections. Title is given in lower case. Each section is a num-
ber; pages marked (2S), for example, belong to chapter 2. If no section is specified, pages in all sections are printed. Any name from
the NAME section at the top of the page will serve as a title.
The options are:
-p Run proof(1) on the specified man pages.
-t Run troff and send its output to standard output.
-n (Default) Print the pages on the standard output using nroff.
Lookman prints the names of all manual sections that contain all of the key words given on the command line.
FILES
/sys/man/?/*
troff source for manual; this page is /sys/man/1/man
/sys/man/?/INDEX
indices searched to find pages corresponding to titles
/sys/lib/man/secindex
command to make an index for a given section
/sys/lib/man/lookman/index
index for lookman
SOURCE
/rc/bin/man
/rc/bin/lookman
SEE ALSO proof(1)BUGS
The manual was intended to be typeset; some detail is sacrificed on text terminals.
There is no automatic mechanism to keep the indices up to date.
Except for special cases, it doesn't recognize things that should be run through tbl and/or eqn.
MAN(1)