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)
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)
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)
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)
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)
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)
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)
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 SUSE
make_md5
MAKE_MD5(8) System Manager's Manual MAKE_MD5(8)
*
NAME
make_md5 - Generate MD5 checksums for given set of users.
SYNOPSIS
make_md5 [ -C config-file ] [ -D md5_dir ] [ -k count ] [ -f input_file ] [ -m offset ] [ -M modulo ] [ -v ] [ userid... ]
DESCRIPTION
Generate MD5 checksums for messages given set of users. Works as incremental update: reads in existing set of MD5 checksums from
md5_dir/u/userid (hashed on first letter of userid) if that file exists. Scans account looking for new messages, and then updates record.
The MD5 checksums which are generated are used to test integrity of the master, replica and backup systems on Hermes.
OPTIONS -C config-file
Read configuration options from config-file.
-D md5_dir
Read and write MD5 checksums from md5_dir, overrides configuration file setting of the same name.
-k count
Concurrency level: run up to count asynchronous child processes.
-f input_file
List of accounts to process: use in place of command line arguments.
-m offset
Regenerate given fraction of the user database in combination with -M below.
-M modulo
Regenerate MD5 checksums for given fraction of user database. Allows for rolling consisency checks.
-v Verbose mode.
FILES
/etc/imapd.conf
AUTHORS
David Carter (dpc22@cam.ac.uk)
CMU Project Cyrus MAKE_MD5(8)