12-18-2012
Thanks very much for the answers . sorry for late response i just came back from office.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I am running a script (which compares two directory contents) for which I am getting an output of 70 pages in which few pages are blank so I was able to delete those blank lines.
But I also want to delete the headers present for each page. can any one help me by providing the code... (1 Reply)
Discussion started by: raj_thota
1 Replies
2. Shell Programming and Scripting
I have a data file with over 500,000 records/lines that has the header throughout the file.
SEQ_ID Name Start_Date Ins_date Add1 Add2
1 Harris 04/02/08 03/02/08 333 Main Suite 101
2 Smith 02/03/08 01/23/08 287 Jenkins
SEQ_ID Name ... (3 Replies)
Discussion started by: psmall
3 Replies
3. Shell Programming and Scripting
Hi,
I'm trying to strip all lines between two headers in a file:
### BEGIN ###
Text to remove, contains all kinds of characters
...
Antispyware-Downloadserver.com (Germany)=http://www.antispyware-downloadserver.c
om/updates/
Antispyware-Downloadserver.com #2... (3 Replies)
Discussion started by: Trones
3 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I have done much googling on this, but apparently not using the right keywords.
I am assuming there is some kind of header for each file on a disk which stores information such as mod time, access time, etc.
I have two questions:
1) is there a way to read this header directly,... (2 Replies)
Discussion started by: Allasso
2 Replies
5. Shell Programming and Scripting
Hi ,
I have a typical situation. I have 4 files and with different headers (number of headers is varible ).
I need to make such a merged file which will have headers combined from all files (comman coluns should appear once only).
For example -
File 1
H1|H2|H3|H4
11|12|13|14
21|22|23|23... (1 Reply)
Discussion started by: marut_ashu
1 Replies
6. Shell Programming and Scripting
Hi ,
I have a .txt file in which I have multiple headers, the header record starts with $ symbol...like the first column name is $Account.
I have to keep the header in the first line and delete all the remaining headers which are in the file.
I tried using sort adc.txt | uniq -u , but my... (7 Replies)
Discussion started by: gaur.deepti
7 Replies
7. Shell Programming and Scripting
Hey Guys,
Absolute neewbie here. I am trying to see if it is possible to edit headers/meta-data of files in Mac OSX. I am basically trying to change an audio file header to read 16bit instead of 24bit.
We have an issue with some of our software and it regularly exports 16bit audio files with... (3 Replies)
Discussion started by: andysuperaudiom
3 Replies
8. Shell Programming and Scripting
Dear All
I was wondering if anybody is able to help me with a script I am struggling with. I have to add comments to the "head-lines" (start with >) from an other file according to the ID tag. Only the head lines should be modified.
cat File.txt
>H1_A1_A2_A3_A4_ID1_A5
A:B:C:S:E:E:K... (4 Replies)
Discussion started by: loba
4 Replies
9. UNIX for Dummies Questions & Answers
How do we append the file name to fasta file headers in multiple fasta-files in Linux? (10 Replies)
Discussion started by: Mauve
10 Replies
10. UNIX for Advanced & Expert Users
Hi. Unix rookie here. Been looking for a few days for reference documents on how BSD UNIX lays the logical file format onto a disk. Goal is to view/edit with hex editor for data repair. Lots of docs are available for how to use Unix commands (like xxd), but I want to learn the map of how Unix... (4 Replies)
Discussion started by: Chris_top_he_r
4 Replies
chfn(1) General Commands Manual chfn(1)
NAME
chfn - change finger information
SYNOPSIS
chfn [-D binddn] [-P path] [-f name] [-o office] [-p phone] [-h home_phone] [-m other] [-r service] [-q] [-u] [-v] [user]
DESCRIPTION
chfn is used to change the user finger information. This are the users fullname, office room number, office phone number and home phone
number. This information is stored in the /etc/passwd file and typically printed by finger(1) and similiar programs. A normal user may only
change the fields for their own account, the super user may change the fields for any account. Also, only the super user may use the -o
option to change the undefined portions of the GECOS field.
If no information is given on the command line, chfn operates in an interactive fashion, prompting the user for each field. Enter the new
value to change the field, or leave the line blank to use the current value. Enter none or a blank only to remove the current value. The
current value is displayed between a pair of [ ] marks.
The only restrictions placed on the contents of the fields is that no control characters may be present, nor any of comma, colon, or equal
sign. The other field does not have this restriction, and is used to store accounting information used by other applications.
This version of chfn is able to change the shell of local, NIS, NIS+ and LDAP accounts, if the permissions allow it.
OPTIONS
-D, --binddn binddn
Use the Distinguished Name binddn to bind to the LDAP directory. The user will be prompted for a password for simple authentica-
tion.
-P, --path path
The passwd and shadow files are located below the specified directory path. chfn will use this files, not /etc/passwd and
/etc/shadow. This is useful for example on NIS master servers, where you do not want to give all users in the NIS database auto-
matic access to your NIS server and the NIS map is build from special files.
-f, --full-name
Specify your real name.
-o, --office
Specify your office room number.
-p, --phone
Specify your office phone number.
-h, --home-phone
Specify your home phone number.
-m, --other
Specify the undefined portions of the GECOS field.
-r, --service
Specify the service where the GECOS field should be changed. Supported services are files, ldap, nis and nisplus.
-q, --quite
Don't be verbose.
-u, --usage
Print a usage message and exit.
--help
Print a more verbose help text and exit.
-v, --version
Print version information and exit.
ENVIRONMENT
SHADOW_CHFN - If this environment variable is set to 1, the chfn options are compatible to the version from the shadow suite.
FILES
/etc/passwd - user account information
SEE ALSO
chsh(1), finger(1), passwd(5)
AUTHOR
Thorsten Kukuk <kukuk@suse.de>
pwdutils February 2004 chfn(1)