10-26-2004
how to write to file using fprintf in find command...
![Big Grin Smilie](https://www.unix.com/images/smilies/biggrin.gif)
I once again am looking through the man pages and am still working on the find command to fully comprehend all its attributes.. i am a little stuck on a problem with how many options to -print there are and the only two I know how to use are printf and -print..
i can not make heads or tails of fprintf function from the man pages as far as how to use it to write to file.. It says that fprintf means file print format which is all good but how do you use it.. ??
any suggestions are welcome
thanx moxxx68
![Confused Smilie](https://www.unix.com/images/smilies/confused.gif)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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)
Discussion started by: jigarlakhani
2 Replies
2. Shell Programming and Scripting
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)
Discussion started by: mmdawg
1 Replies
3. Programming
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)
Discussion started by: mirusnet
1 Replies
4. Shell Programming and Scripting
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)
Discussion started by: shunter63
5 Replies
5. Shell Programming and Scripting
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)
Discussion started by: vivek1489
1 Replies
6. Shell Programming and Scripting
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)
Discussion started by: vel4ever
1 Replies
7. Shell Programming and Scripting
find . -type fl
o/p is only the ordinary file. where in it wont give the link files. (2 Replies)
Discussion started by: nikhil jain
2 Replies
8. Shell Programming and Scripting
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)
Discussion started by: jesu
1 Replies
9. Shell Programming and Scripting
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)
Discussion started by: kcpoole
19 Replies
10. Shell Programming and Scripting
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
GMAN(1x) GMAN(1x)
NAME
gman - GTK+ based front-end for man, a good replacment for xman.
SYNOPSIS
gman
DESCRIPTION
Gman is a front-end for the manual page system. gman builds a database of all the available man pages and displays them in a list. Clicking
on an entry in the list makes gman launch another window with the manual page displayed in it.
Gman can launch more than one window at same time. The user can use the index/key word search function to look for the man pages that they
need.
It is simple, but it is useful.
OPTIONS
There are no command line options for gman, for now.
DISPLAY OPTIONS
Currently gman has 4 different modes to present the man pages, available as the following items in the View menu:
xTerm This will launch an X terminal emulator with the man output shown inside.
You can add the following line to your ~/.gman file in order to select the preferred X terminal emulator:
xterm_command = rxvt
GhostView
gman will present man pages in a GhostView window for you to view and print the man page.
This requires GhostView (command "gv") to be available on your system.
Evince gman will present man pages in an Evince window for you to view and print the man page.
This requires GNOME Evince (command "evince") to be available on your system.
LocalBrowse
gman will launch a web browser window to show you the man page.
This requires man2html and web browser (command "sensible-browser") to be available on your system.
NetBrowse
In this mode, you can view the pages with web browser and navigate from one man page to another by clicking the links in the man
pages.
This requires man2html, web browser (command "sensible-browser") and a HTTP server running on localhost.
FILES
~/.gman
Contains configuration information for gman, such as window size and paths where the manual pages are contained. For example,
v_size = 400
h_size = 300
xterm_command = rxvt
show_warning = 0
man_paths = /usr/local/man:/usr/local/share/man:/usr/share/man
For more information, see init_context() function in gman.c for all the options avialiable.
~/.gman is read by gman on startup, and written on exit.
SEE ALSO
man(1), man(7), xterm(1).
AUTHOR
Gman was written by a smart guy named Xinkai Wang <aakwxk@hotmail.com>.
Home page of gman is at:
http://homex.coolconnect.com/user/xkwang/gman/ <>
Gman May 2002 GMAN(1x)