08-02-2017
Welcome to the forum.
Any attempts / ideas / thoughts from your side?
Mainly the task seems to be rearranging / suppressing the line's fields; but, where does the "2" in field 2 come / is derived from?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Experts.
I need to list the file and the filename comes from the file ListOfFile.txt.
Basicly I have a filename "ListOfFile.txt" and it contain
Example of ListOfFile.txt
/home/Dave/Program/Tran1.P
/home/Dave/Program/Tran2.P
/home/Dave/Program/Tran3.P
/home/Dave/Program/Tran4.P... (7 Replies)
Discussion started by: tanit
7 Replies
2. Shell Programming and Scripting
Hi,
I have two files with the format shown below. I need to read first field(value before comma) from file 1 and search for a record in file 2 that has the same value in the field "KEY=" and write the complete record of file 2 with corresponding field 2 of the first file in to result file.
... (11 Replies)
Discussion started by: King Kalyan
11 Replies
3. Shell Programming and Scripting
hi guys,
i want to parse a file using public function, the file contain raw data in the below format i want to get the output like this to load it to Oracle DB
MARWA1,BSS:26,1,3,0,0,0,0,0.00,22,22,22.00
MARWA2,BSS:26,1,3,0,0,0,0,0.00,22,22,22.00
this the file raw format:
Number of... (6 Replies)
Discussion started by: dagigg
6 Replies
4. Shell Programming and Scripting
hi,
i want to write my nawk command into a file. i want to write:
awk 'NR==14 && $NF!="Set."{print "l ./gcsw "r" '"'"'lt all;"p"'"'"'"} NR==5{r=$2} NR==3{p=$2 FS $3 FS $4 FS $5}' $logfile > /home/gc_sw/again.mos'"'"'
into gc.mos file. this is my code:
awk '{print "awk 'NR==14 &&... (6 Replies)
Discussion started by: gc_sw
6 Replies
5. Shell Programming and Scripting
Hi all,
Here is a scim sample.bin.user file
a string1 0
a string2 0
a string3 63
b string4 126
c string5 315
d string6 0
e string7 63
e string8 126
f string9 0
I like to convert this into a dict.tab file to be compiled by the ... (4 Replies)
Discussion started by: hk008
4 Replies
6. Shell Programming and Scripting
Hi all,
I'm pretty new to Shell scripting and I need some help to split a source text file into multiple files. The source has a row with pattern where the file needs to be split, and the pattern row also contains the file name of the destination for that specific piece. Here is an example:
... (2 Replies)
Discussion started by: cul8er
2 Replies
7. Shell Programming and Scripting
Hi,
I have a situation to compare one file, say file1.txt with a set of files in directory.The directory contains more than 100 files.
To be more precise, the requirement is to compare the first field of file1.txt with the first field in all the files in the directory.The files in the... (10 Replies)
Discussion started by: anandek
10 Replies
8. Shell Programming and Scripting
Hi,
I have the following input in a file & need output as mentioned below(need counter of every occurance of field which is to be increased by 1).
Input:
919143110065
919143110065
919143110052
918648846132
919143110012
918648873782
919143110152
919143110152
919143110152... (2 Replies)
Discussion started by: siramitsharma
2 Replies
9. Shell Programming and Scripting
I have files named with different prefixes. From each I want to extract the first line containing a specific string, and then print that line along with the prefix.
I've tried to do this with a while loop, but instead of printing the prefix I print the first line of the file twice.
Files:... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
LEARN ABOUT CENTOS
tapset::task
tapset::task(3stap) tapset::task(3stap)
NAME
tapset::task - systemtap task tapset
DESCRIPTION
task_current
The current task_struct of the current task
See function::task_current(3stap)
for details.
task_parent
The task_struct of the parent task
See function::task_parent(3stap)
for details.
task_state
The state of the task
See function::task_state(3stap)
for details.
task_execname
The name of the task
See function::task_execname(3stap)
for details.
task_pid
The process identifier of the task
See function::task_pid(3stap)
for details.
pid2task
The task_struct of the given process identifier
See function::pid2task(3stap)
for details.
pid2execname
The name of the given process identifier
See function::pid2execname(3stap)
for details.
task_tid
The thread identifier of the task
See function::task_tid(3stap)
for details.
task_gid
The group identifier of the task
See function::task_gid(3stap)
for details.
task_egid
The effective group identifier of the task
See function::task_egid(3stap)
for details.
task_uid
The user identifier of the task
See function::task_uid(3stap)
for details.
task_euid
The effective user identifier of the task
See function::task_euid(3stap)
for details.
task_prio
The priority value of the task
See function::task_prio(3stap)
for details.
task_nice
The nice value of the task
See function::task_nice(3stap)
for details.
task_cpu
The scheduled cpu of the task
See function::task_cpu(3stap)
for details.
task_open_file_handles
The number of open files of the task
See function::task_open_file_handles(3stap)
for details.
task_max_file_handles
The max number of open files for the task
See function::task_max_file_handles(3stap)
for details.
SEE ALSO
function::task_current(3stap), function::task_parent(3stap), function::task_state(3stap), function::task_execname(3stap),
function::task_pid(3stap), function::pid2task(3stap), function::pid2execname(3stap), function::task_tid(3stap),
function::task_gid(3stap), function::task_egid(3stap), function::task_uid(3stap), function::task_euid(3stap),
function::task_prio(3stap), function::task_nice(3stap), function::task_cpu(3stap), function::task_open_file_handles(3stap),
function::task_max_file_handles(3stap), stap(1), stapprobes(3stap)
IBM
--- tapset::task(3stap)