10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a text file in the below format:
Source Destination State Lag Status
CQA02W2K12pl:D:\CAQA ... (10 Replies)
Discussion started by: pocodot
10 Replies
2. Shell Programming and Scripting
Could anyone help me on a command to identify distinct values from a particular column ?my input file has header. So i need a command in which we pass Column1 as parameter.
For eg my input is like
Column1 Column2 Column3
... (4 Replies)
Discussion started by: krish123
4 Replies
3. Shell Programming and Scripting
Hello All,
I need your help in getting a command. I have a input file as below:
"A0C0VN","XZ70720","02","MEMBER ELIGIBILITY_DC",2012021308,"",,,20120213
I need a command to remove the field in Bold. To be specific the 5th field along with the next comma (2012021308,) needs to be taken... (6 Replies)
Discussion started by: Praveenkulkarni
6 Replies
4. Shell Programming and Scripting
So I want to put a line at the end of my script which greps for keywords from syslog.log that outputs the following after it is done:
"This file was last modified on (thisdate)"
I know I can use the following to get the date:
rtidsvb(izivanov):/home/izivanov> ll /var/adm/syslog/syslog.log ... (4 Replies)
Discussion started by: zixzix01
4 Replies
5. UNIX for Advanced & Expert Users
894344202808090;11122;040320 075858 166;101;0;0;10u;0;NA;65;221890;2;101973;185059;568674;Y; PRE;0;0;NA;NA;0;NA;0;NA;textmsg;textmsg_snd1;telusmob;TEXTMSG1;0.15000000;126037;2010/03/04 12:58:57gmt;0;70532192;
plz tell me any awk command
which on the basis of the yellow field which is... (1 Reply)
Discussion started by: madfox
1 Replies
6. Shell Programming and Scripting
I have a log file that I am trying to convert. File contents something like this:
aaaaa bbbbbb cccc dddddd\123 eeeee ffffffff
I am trying to output the fields in a different order and separate field 4 so that the "123" and "dddddd" can be output separately. for example
bbbbbb aaaaa 123... (5 Replies)
Discussion started by: jake1988
5 Replies
7. Shell Programming and Scripting
HI Folks,
I know the solution to my question is very easy but i could not find it out.
There is CSV file with 20 fields with 5 rows contains different data as below:
FBINV,LVO71,GAMFR1,D,104164,16677.36,20090625,102135,20090529,7267,KG,,,,0,,,,DTD,,O,O,,,,,,,,,300588136... (3 Replies)
Discussion started by: chandrakala
3 Replies
8. Shell Programming and Scripting
the following command removes the first two characters of the first column, how can I change it to to remove the first two characters of the second column?
sed 's/^..//' file1.txt > file2.txt
Thanks
Joseph (4 Replies)
Discussion started by: jdhahbi
4 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
Can someone extending on what the time field is explaining in a ps command.
Man page only has this:
time The cumulative execution time for the process.
Is this a combined CPU time? if that is the case then it should be impossible to have a 00:00 time on any process.
... (1 Reply)
Discussion started by: nhatch
1 Replies
10. UNIX for Dummies Questions & Answers
according to the many sources the exec command other than its use in find and escaping the shell, has another definitive use.. which I am having a hard time understanding.
according to many resources and info pages that I have read I can use the exec command with a file descriptor.. such as
exec... (5 Replies)
Discussion started by: moxxx68
5 Replies
ELF_GETSHNUM(3) BSD Library Functions Manual ELF_GETSHNUM(3)
NAME
elf_getshnum -- return the number of sections in an ELF file
LIBRARY
ELF Access Library (libelf, -lelf)
SYNOPSIS
#include <libelf.h>
int
elf_getshnum(Elf *elf, size_t *shnum);
DESCRIPTION
Function elf_getshnum() retrieves the number of ELF sections associated with descriptor elf and stores it into the location pointed to by
argument shnum.
This routine allows applications to uniformly process both normal ELF objects, and ELF objects that use extended section numbering.
RETURN VALUES
Function elf_getshnum() returns a non-zero value if successful, or zero in case of an error.
ERRORS
Function elf_getshnum() can fail with the following errors:
[ELF_E_ARGUMENT] A NULL value was passed in for argument elf.
[ELF_E_ARGUMENT] Argument elf was not for an ELF file.
[ELF_E_ARGUMENT] Argument elf lacks an ELF Executable header.
SEE ALSO
elf(3), elf32_getehdr(3), elf64_getehdr(3), elf_getident(3), elf_getshstrndx(3), gelf(3), gelf_getehdr(3)
BSD
October 31, 2006 BSD