07-28-2012
What if the file doesn't contain a match? Should its file name appear in the output or not? If so, should it be followed by a tab?
Regards,
Alister
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
Lets say I have 3 files a.txt and b.txt and c.txt.
a.txt has the following text
====================
apple is good for health
b.txt has the following text
====================
apple is pomme in french
c.txt has the following text
====================
orange has citric acid... (1 Reply)
Discussion started by: amjath78
1 Replies
2. UNIX for Advanced & Expert Users
Hi,
I would appriciate if somebody can help me figure out how to search for all the *.xml file under a specific directory and subdirectroies (/home/username) and later search of content "<start>" inside the xml file returned by search.
-Lovin.V (2 Replies)
Discussion started by: lovi_v
2 Replies
3. SuSE
Hello Linux Masters,
I am not a linux expert therefore i need help from linux gurus.
Well i have a requirement where i need to search all files based on first patterns and after seraching all files then serach second pattern in all files which i have extracted based on first pattern.... (1 Reply)
Discussion started by: Black-Linux
1 Replies
4. Shell Programming and Scripting
Hello Guys
I have a directory of xml files (almost 500 ) Now in each xml file 3 new attributes will be added which are in a different single file
Is there any way I can copy the whole content of single file at 6th line of all the files in the directory .
Thanks a lot!!! (7 Replies)
Discussion started by: Pratik4891
7 Replies
5. Shell Programming and Scripting
Have to read one file say sourcefile containing several words and having another folder containing several files.
Now read the first word of Sourcefile & search it into the folder consisting sevral files, and create another file with result. We hhave to pick the filename of the file in which... (3 Replies)
Discussion started by: mukesh.baranwal
3 Replies
6. Shell Programming and Scripting
I have a file 1.txt with the below contents.
-----cat 1.txt-----
1234
5678
1256
1234
1247
-------------------
I have 3 more files in a folder
-----ls -lrt-------
A1.txt
A2.txt
A3.txt
-------------------
The contents of those three files are similar format with different data values... (8 Replies)
Discussion started by: realspirituals
8 Replies
7. Shell Programming and Scripting
Hi , Need to shell script to extracts files names and write those to another file in different directory.
input file is
inputfile.txt
abc|1|bcd.dat
123 david123
123 rudy2345
124 tinku5634
abc|1|def.dat
123 jevid123
123 qwer2345
124 ghjlk5634
abc|1|pqr.txt
123 vbjnnjh435
123 jggdy876... (1 Reply)
Discussion started by: dssyadav
1 Replies
8. Shell Programming and Scripting
Hi,I have 2 files master.txt & reference.txt as shown below & i require o/p as mentioned in file 3 using awk but content is not replacing properlymaster.txt:... (15 Replies)
Discussion started by: siramitsharma
15 Replies
9. Shell Programming and Scripting
Hi All,
Your help on the below requirement is highly appreciated.
I am building a program which should pick the file from a source directory and place them into target directory. While selecting the file in source it should look for some pattern in the file name.
Ex:
File Name 1:... (10 Replies)
Discussion started by: bharath561989
10 Replies
10. UNIX for Beginners Questions & Answers
I have two file as given below which shows the ACL permissions of each file. I need to compare the source file with target file and list down the difference as specified below in required output. Can someone help me on this ?
Source File
*************
# file: /local/test_1
# owner: own
#... (4 Replies)
Discussion started by: sarathy_a35
4 Replies
LEARN ABOUT DEBIAN
send_gearman
SEND_GEARMAN(8) System Administration Utilities SEND_GEARMAN(8)
NAME
send_gearman - Submit active and passive check results to a gearman job server
DESCRIPTION
usage:
send_gearman [ --debug=<lvl> ]
[ --help|-h
]
[ --config=<configfile>
]
[ --server=<server>
]
[ --timeout|-t=<timeout>
]
[ --delimiter|-d=<delimiter>
]
[ --encryption=<yes|no>
]
[ --key=<string>
]
[ --keyfile=<file>
]
[ --host=<hostname>
]
[ --service=<servicename>
]
[ --result_queue=<queue>
]
[ --message|-m=<pluginoutput>
]
[ --returncode|-r=<returncode> ]
for sending active checks:
[ --active
]
[ --starttime=<unixtime>
]
[ --finishtime=<unixtime>
]
[ --latency=<seconds>
]
plugin output is read from stdin unless --message is used. Use this mode when plugin has multiple lines of plugin output.
Note: When using a delimiter (-d) you may also submit one result
for each line. Service Checks: <host_name>[tab]<svc_description>[tab]<return_code>[tab]<plugin_output>[newline]
Host Checks: <host_name>[tab]<return_code>[tab]<plugin_output>[newline]
see README for a detailed explaination of all options.
SEE ALSO
The Mod Gearman documentation is available in /usr/share/doc/mod-gearman/README.html
send_gearman 1.3.6-1 July 2012 SEND_GEARMAN(8)