09-10-2012
Can you be more specific with some examples...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Grep -e 'term1' -A1 -e 'term2' -A3The above code always searches for either term and prints results + next three lines.
I'm trying to print out:
foo foo foo term1 bar bar bar
line right after the above
--
la la la la term2 so so so
line right after the above
and again
and again
I've... (7 Replies)
Discussion started by: dkozel
7 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I'd like to process multiple files. For example:
file1.txt
file2.txt
file3.txt
Each file contains several lines of data. I want to extract a piece of data and output it to a new file.
file1.txt ----> newfile1.txt
file2.txt ----> newfile2.txt
file3.txt ----> newfile3.txt
Here is... (3 Replies)
Discussion started by: Liverpaul09
3 Replies
3. Shell Programming and Scripting
I have an input file with contents like:
MainFile.dat:
12247689|7896|77698080
16768900|hh78|78959390
12247689|7896|77698080
16768900|hh78|78959390
12247689|7896|77698080
16768900|hh78|78959390
12247689|7896|77698080
16768900|hh78|78959390
12247689|7896|77698080
16768900|hh78|78959390
... (4 Replies)
Discussion started by: rkrish
4 Replies
4. Shell Programming and Scripting
I have a file that is a sort library in the format:
##def title1
content1
stuff1
content2
stuff2
##enddef
##def title2
etc..
I want to grep def and content and pull some trailing context from content
so the result would look something like: (1 Reply)
Discussion started by: Moe.Wilensky
1 Replies
5. Shell Programming and Scripting
Hi All,
I am new here but I have a scripting question that I can't seem to figure out with the "find" cmd.
What I am trying to do is to only have to run a single find cmd parsing the directories and output the different file types to induvidual files and I have been running into problems.... (3 Replies)
Discussion started by: swaters
3 Replies
6. Shell Programming and Scripting
Hi,
I want to grep multiple patterns from multiple files and save to multiple outputs. As of now its outputting all to the same file when I use this command.
Input : 108 files to check for 390 patterns to check for. output I need to 108 files with the searched patterns.
Xargs -I {} grep... (3 Replies)
Discussion started by: Diya123
3 Replies
7. UNIX for Dummies Questions & Answers
(1 Reply)
Discussion started by: Twinklefingers
1 Replies
8. Post Here to Contact Site Administrators and Moderators
Hi All,
I am trying to redirect the grep output to multiple files, can you please help with that.
Below is the command im using to match my pattern
grep \<proxyType\>$PxyType $DIR/EndureFiles.json > File_Name*.json
Note : $DIR and $PxyType is already defined in my script
Im able... (0 Replies)
Discussion started by: Deena1984
0 Replies
9. Shell Programming and Scripting
I am trying to apply an awk action over multiple files in a directory. It is a simple action, I want to print out the 1st 2 columns (i.e. $1 and $2) in each tab-separated document and output the result in a new file *.pp
This is the awk that I have come up with so far, which is not giving me a... (6 Replies)
Discussion started by: owwow14
6 Replies
10. Shell Programming and Scripting
Hi All,
I want to use egrep on multiple files and the results should be output to multiple files. I am using the below code in my shell script(working in Ksh shell). However with this code I am not attaining the desired results.
#!/bin/ksh
(
a="/path/file1"
b="path/file2"
for file in... (4 Replies)
Discussion started by: am24
4 Replies
LEARN ABOUT DEBIAN
efingerd
EFINGERD(8) System Manager's Manual EFINGERD(8)
NAME
efingerd - another finger daemon for linux
SYNOPSIS
efingerd [-t X] [-f] [-n] [-u] [--help] [--version]
efingerd should be run from inetd.
DESCRIPTION
efingerd is another finger daemon, giving you complete control over what are you going to display about your computer.
OPTIONS
--help Show summary of options and exit.
--version
Show version and exit.
-t X Lifetime for spawned services (in seconds) ex: -t 25 maintain connections for up to 25 seconds (default: -t 60)
-n Do not lookup addresses, use IP numbers instead
-f Do not display users' full names.
-u Ignore user-specific .efingerd file
USAGE
If you are just an ordinary user and efingerd is already installed by your friendly administrator, you can take the advantage of it by mak-
ing executable .efingerd in your home directory (it can be anything - from single shell script to a program in super-hyper-extra-object
oriented language - only speed makes a difference). This program takes two arguments, the first is the name of remote user fingering you
(or (null) if his/her/its system does not run ident), the second one is address of his computer (or ip number, if efingerd is installed
with option -n). Standard output of this program is then displayed to the person fingering you. Look at examples/.efingerd for a nice
example.
Following executables are providing information about your machine to the fingerer:
/etc/efingerd/list
what to display when somebody does finger @your.machine
/etc/efingerd/luser
what to display when somebody fingers user on your machine, and the fingered user does not have ~/.efingerd file
/etc/efingerd/nouser
what to display when somebody fingers non-existent user on your machine
If the local user has file .efingerd in his/her/its home directory, and it is readable by the daemon, it will be executed and it's output
will be served to the fingerer.
These are normal programs, displaying on standard output desired information. These programs are called with following parameters:
$1 - identity of remote user, (null) if his/her/its system is not running ident
$2 - address of remote machine (IP number if it has not reverse DNS entry or you specified -n)
$3 - name of local user being fingered
Look at examples/ for examples. Don't forget that these programs must be executable by efingerd daemon.
SEE ALSO
finger(1), fingerd(8)
AUTHOR
Radovan Garabik (garabik@fmph.uniba.sk)
BUGS
file .efingerd in user's home directory must be executable and readable by UID efingerd runs under to work.
EFINGERD(8)