10-15-2008
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have the following text file:
8 T1mapping_flip02 ok 128 108 30 1 665000-000008-000001.dcm
9 T1mapping_flip05 ok 128 108 30 1 665000-000009-000001.dcm
10 T1mapping_flip10 ok 128 108 30 1 665000-000010-000001.dcm
11 T1mapping_flip15 ok 128 108 30... (2 Replies)
Discussion started by: goodbenito
2 Replies
2. UNIX for Dummies Questions & Answers
Hi im a noob in Unix
Do you guys know what command display you the files that have the character n in there name im not looking that they have the n in the beginning or in the end im looking that in search the entire string to see if it have the character n i try this
ls n*
but only show... (2 Replies)
Discussion started by: Kaziduz
2 Replies
3. Shell Programming and Scripting
I woud like to substitue a string on a specific position for specific lines
I've got a file and I would like to change a specific string from "TOCHANGE" to "ABCABCAB"
For every line (except 1,2, 3 and the last one) , I need to check between the 9th and the 16th digits.
For the 3rd line, I... (7 Replies)
Discussion started by: BSF
7 Replies
4. UNIX Desktop Questions & Answers
well, i am so not familiar with this kind of things but i am gonna explain extactly what i am looking for so hopfully someone can figure it out :)
i have a command that shows memory usage besides the process name, for example(the command output):
500 kb process_1
600 kb process_2
700 kb... (4 Replies)
Discussion started by: Portabello
4 Replies
5. Shell Programming and Scripting
Hello all,
I have thousand file input like this:
file1:
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$ | | | |$$
$$ UERT | TTYH | TAFE | FRFG |$$
$$______|______|________|______|$$
$$ | | | |$$
$$ 1 | DISK | TR1311 | 1 |$$
$$ 1 |... (4 Replies)
Discussion started by: attila
4 Replies
6. Shell Programming and Scripting
Hell,
I want to grep certain word from file and display above 2 lines and after two lines.
Here is the content of sample file.
Mar 14, 2013 12:56:59 AM Agent.Agent SendTo
INFO: Connection to server:7041 - Credential Transmit Successesful
Mar 14, 2013 8:54:21 AM cgent SendTo
WARNING:... (7 Replies)
Discussion started by: balareddy
7 Replies
7. UNIX for Dummies Questions & Answers
This could be a really dummy question.
I have a log text file.
What unix command to extract line from specific string to another specific string.
Is it something similar to?:
more +/"string" file_name
Thanks (4 Replies)
Discussion started by: aku
4 Replies
8. UNIX for Dummies Questions & Answers
Hi
I have a file which is tab-delimited. Now, I'd like to print the lines which have "chr6" string in both first and second columns. Could anybody help? (3 Replies)
Discussion started by: a_bahreini
3 Replies
9. Shell Programming and Scripting
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
Discussion started by: dejavo
13 Replies
10. Shell Programming and Scripting
Hi,
I have a file with hundreds of lines. I want to search for particular lines starting with 4000, search and replace the 137-139 position characters; which will be '000', with '036'. Can all of this be done without opening a temp file and then moving that temp file to the original file name.
... (7 Replies)
Discussion started by: dsid
7 Replies
pwget(1) General Commands Manual pwget(1)
NAME
pwget, grget - get password and group information
SYNOPSIS
name | uid]
name | gid]
DESCRIPTION
and locate and display information from and
The standard output of contains lines of colon-separated password information whose format is the same as that used in the file (see
passwd(4)).
The standard output of contains lines of colon-separated group information whose format is the same as that used in the file (see
group(4)).
With no options, and get all entries with or respectively, (see getpwent(3C) and getgrent(3C)), and output a line for each entry found.
Options
When an option is given, only a single entry is printed.
The options for are:
Output the first entry that matches
name using (see getpwent(3C)).
Output the first entry that matches
uid using (see getpwent(3C)).
The options for are:
Output the first entry that matches
name using (see getgrent(3C)).
Output the first entry that matches
gid using (see getgrent(3C)).
NETWORKING FEATURES
NFS
If Network Information System (NIS) is in use, these commands provide password and group information based on the NIS version of the pass-
word and group databases in addition to the local password and group files.
RETURN VALUE
These commands return upon success, when a specific search fails, and upon error.
DEPENDENCIES
NFS:
WARNING: If the Network Information System network database is in use and the NIS client daemon is not bound to a NIS server daemon (see
ypserv(1M)), these utilities will wait until such a binding is established. These commands can be terminated in this condition by sending
a signal to the process (see kill(1)).
See ypmatch(1), and ypserv(1M).
AUTHOR
and were developed by HP.
FILES
local group data file
local password data file
SEE ALSO
getgrent(3C), getpwent(3C), group(4), passwd(4).
pwget(1)