02-14-2012
Can you post few starting lines of that file?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everyone
I have a small problem i cant find a soloution to...
I'm using digital unix and have to find out all the files which have a certain string inside them and i dont know how to do it.
*This search is done as root.
*All files from '/' to the last directory should be searched for... (3 Replies)
Discussion started by: dindan100
3 Replies
2. UNIX for Advanced & Expert Users
hi all..
I dont know how to search for a string in a file.. I have tried doing.. I did google but didnt get effective answers..my code is as follows:
int search(char* filename,const char*
username,const char* passwd)
{
int flag=0;
unsigned long fsize=0;
unsigned long current=0;... (2 Replies)
Discussion started by: Ume1986
2 Replies
3. Shell Programming and Scripting
Hi,
I would like to know how to get a list of files that contain a specific string inside them.
Thanks (12 Replies)
Discussion started by: yoavbe
12 Replies
4. Shell Programming and Scripting
Hi,
How to add string inside the file. In this case adding 63 in the beginning of each line. Thnks.
e.g. what is inside the file
Mobile Number Portability
9051151234
9051261345
9051393245
9051412345
9051507654
should like this as output:
Mobile Number Portability (7 Replies)
Discussion started by: shtobias
7 Replies
5. Shell Programming and Scripting
I have umpteen number of files containing HTML A tags in the below format
or
I want to find all the lines that contain the word Login=
I used this command
grep "Login=" *
This gave me normal lines as well which contain the word Login= for example, it returned lines which... (2 Replies)
Discussion started by: dahlia84
2 Replies
6. Shell Programming and Scripting
Hi,
I have got a large number of .PDF files that are archived in .RAR & ZIP files in various directories and I would like to search for strings inside the PDF files.
I would think you would need something that can recursively read directories, extract the .RAR/.ZIP file in memory, read the... (3 Replies)
Discussion started by: lewk
3 Replies
7. Shell Programming and Scripting
Hello All,
I have a text file, i want to search for a string in it and the string is repeated multiple times in a file i want to get the first occurence of the string in a variable.
the content of file is like:
I want to grepthe first occurance of "Configuration flow done" and store the... (7 Replies)
Discussion started by: anand2308
7 Replies
8. Shell Programming and Scripting
Hii,
Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories.
Eg.
file1: test1.log
file2: test2.log
file3 test.zip
After running the script
file1: string_test1.log
file2: string_test2.log
file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies
9. Shell Programming and Scripting
I'm interested in writing a report script using BASH that searches all of the files in a particular directory for a keyword and printing a list of files containing this string...
In fact this reporting script would have searches for multiple keywords, so I'm interested in making multiple... (2 Replies)
Discussion started by: chemscripter904
2 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I need to write a script to find all "*.sh" files in /home file system and if any string find "*.sh" files with the name vijay@gmail.com need to replace with vijay.bhaskar@gmail.com. I just understood about the find the command to search .sh files. Please help me on this.
find / -name... (3 Replies)
Discussion started by: bhas85
3 Replies
PUSH(8) BSD System Manager's Manual PUSH(8)
NAME
push -- fetch mail via POP
SYNOPSIS
push [-5 | --krb5] [-v | --verbose] [-f | --fork] [-l | --leave] [--from] [-c | --count] [--headers=headers] [-p port-spec |
--port=port-spec] po-box filename
DESCRIPTION
push retrieves mail from the post office box po-box, and stores the mail in mbox format in filename. The po-box can have any of the follow-
ing formats:
'hostname:username'
'po:hostname:username'
'username@hostname'
'po:username@hostname'
'hostname'
'po:username'
If no username is specified, push assumes that it's the same as on the local machine; hostname defaults to the value of the MAILHOST environ-
ment variable.
Supported options:
-5, --krb5
use Kerberos 5 (if compiled with support for Kerberos 5)
-f, --fork
fork before starting to delete messages
-l, --leave
don't delete fetched mail
--from behave like from.
-c, --count
first print how many messages and bytes there are.
--headers=headers
a list of comma-separated headers that should get printed.
-p port-spec, --port=port-spec
use this port instead of the default 'kpop' or '1109'.
The default is to first try Kerberos 5 authentication and then, if that fails, Kerberos 4.
ENVIRONMENT
MAILHOST
points to the post office, if no other hostname is specified.
EXAMPLES
$ push cornfield:roosta ~/.emacs-mail-crash-box
tries to fetch mail for the user roosta from the post office at ``cornfield'', and stores the mail in ~/.emacs-mail-crash-box (you are using
Gnus, aren't you?)
$ push --from -5 havregryn
tries to fetch From: lines for current user at post office ``havregryn'' using Kerberos 5.
SEE ALSO
from(1), pfrom(1), movemail(8), popper(8)
HISTORY
push was written while waiting for movemail to finish getting the mail.
HEIMDAL May 31, 1998 HEIMDAL