10-05-2009
Modifying a particulae data in a line contained in File
Hi,
I have a file containing data:
systemname/userid/password/comment
systemname1/userid1/password1/comment1
systemname2/userid2/password2/comment2
I want to modify the "password" using script.
Can anybody help me with this problem?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi I am loking for some help in writing a script that will take a number that is located in one file and search a folder structure for that string in any file under that directory. I can do this manually with :
find /"directory" -type f -exec grep -l 'Number String' {} \;
But now I will... (3 Replies)
Discussion started by: BMC
3 Replies
2. Shell Programming and Scripting
I have to rename a large number of files so that the name of each file corresponds to a code number that is given side by side in a list (textfile).
The list contains in column A the filename of the actual files to be renamed and in column B the name (a client code, 9 digits) that has to be... (7 Replies)
Discussion started by: netfreighter
7 Replies
3. Shell Programming and Scripting
My file looks like this
But I need to move the frequency value (Freq) to the second position, leaving intact the numbers at the top. The resulting file should look like this
Thanks in advance! (3 Replies)
Discussion started by: Xterra
3 Replies
4. Shell Programming and Scripting
Hi Forum.
Is there a quick way to do the following search/replace within a block of data? I tried to google the solution but didn't really know what to look for.
I have the following text file (I want to search for a particular string "s_m_f_acct_txn_daily_a1" and replace the... (5 Replies)
Discussion started by: pchang
5 Replies
5. AIX
Hi All,
I have an AIX executable (/usr/bin/shell) in my system.
I want to know if this file was updated by any of the installed fixes/apars on my system.
What is the AIX way of finding this information?
Greetings,
Peter (1 Reply)
Discussion started by: petervg
1 Replies
6. UNIX for Dummies Questions & Answers
Hi Guys,
Please help me with my problem here:
I have a source file:
1212 23232 343434 ASAS1 4
3212 23232 343434 ASAS2 4
3234 23232 343434 QWQW1 4
1134 23232 343434 QWQW2 4
3212 23232 343434 QWQW3 4
and a mapping... (4 Replies)
Discussion started by: kokoro
4 Replies
7. Shell Programming and Scripting
Hello All,
I'm working on a script that runs the wget command on a list of IP Address in order to capture the data at that address' index.html.
That part works fine to get the HTML code at that address but the data I'm trying to pull out is on a line containing a BUNCH of
code for an HTML... (4 Replies)
Discussion started by: mrm5102
4 Replies
8. Shell Programming and Scripting
Hi all,
I am having a slight issue updating a file using perl from the command line I need some help with.
The item is:
DATA_FILE_TYPE=FULL
When I run the below command
/usr/bin/perl -p -i -e "s/DATA_FILE_TYPE=/DATA_FILE_TYPE=APPEND/g" processfile.cfg
It looks to be... (2 Replies)
Discussion started by: kstevens67
2 Replies
9. Shell Programming and Scripting
I need to modify a bash script to to take each line in a file and execute command. I currently have this:
#!/bin/bash if ; then echo "Lipsa IP"; exit; fi i=1 ip=$1 while ; do if ; then rand=`head -$i pass_file | tail -1` user=`echo $rand | awk '{print $1}'` pass=`echo $rand | awk '{print $2}'`... (3 Replies)
Discussion started by: galford
3 Replies
10. Shell Programming and Scripting
Hello,
I have some text data that is in the form of multi-line records. Each record ends with the string $$$$ and the next record starts on the next line.
RDKit 2D
15 14 0 0 0 0 0 0 0 0999 V2000
5.4596 2.1267 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 ... (5 Replies)
Discussion started by: LMHmedchem
5 Replies
LEARN ABOUT DEBIAN
checkapoppw
checkapoppw(8) System Manager's Manual checkapoppw(8)
NAME
checkapoppw - checks APOP password against the file ~/Maildir/.password
SYNOPSIS
checkapoppw prog
DESCRIPTION
checkapoppw reads descriptor 3 through end of file and then closes descriptor 3. There must be at most 512 bytes of data before end of
file.
The information supplied on descriptor 3 is a login name terminated by , a password terminated by , a timestamp terminated by , and
possibly more data. There are no other restrictions on the form of the login name, password, and timestamp.
If the password is unacceptable, checkapoppw exits 1. If checkapoppw is misused, it may instead exit 2. If there is a temporary problem
checking the password, checkapoppw exits 111.
If the password is acceptable, checkapoppw runs prog.
prog consists of one or more arguments.
Compatible tools
There are other tools that offer the same interface as checkapoppw
Note that these tools do not follow the getopt interface. Optional features are controlled through (1) the tool name and (2) environment
variables.
The password database
checkapoppw checks the APOP password against the content of the file Maildir/.password (not encrypted) in the user's home directory corre-
sponding to the login name.
Maildir may be overidden through the environment variable $MAILDIR.
Process-state changes
Before invoking prog, checkapoppw sets up $USER, $HOME, $SHELL, its supplementary groups, its gid, its uid, and its working directory.
FILES
~/Maildir/.password
SEE ALSO
checkpw(8), qmail-popup(8), qmail-pop3d(8)
AUTHOR
This manual page was written by Gerrit Pape <pape@smarden.org>, for the Debian GNU/Linux system.
checkapoppw(8)