Hello All,
I have a string type variable called "FULLSTR".
This variable has a value of "path=/type/source/logs".
I need to cut the characters after the character "=" to end of the string.
Example: the new variable "MATCHSTR" should have value like this...
"/type/source/logs"
So... (2 Replies)
HI,
I want to cut end string from line.
e.g. i have following input line
/users/home/test.txt
I want to get end string 'test.txt' from above line and length of that end string will change and it always start after '/'.
Thanks,
Visu (7 Replies)
i need to cut the string in a textfile but each line has a specific way of cutting it (different lengths)
i have a for loop that gets the string line per line, then each line has to be compared:
for x in `cat tmp2.txt`; do
if; then
echo 'BAC'
elif
... (6 Replies)
Hello,
i have a file, i open the file and read the line, i want to get the first item in the csv file and also teh third+6 item and wirte it to a new csv file. only problem is that using echo it takes TOO LONG:
please help a newbie. below is my code:
WorkingDir=$1
FileName=`cut -d ',' -f... (2 Replies)
Hi ,
I want to read below output, lets called it output1.txt and each string for every line will be declare as a variables.
This is the input file
196 server_a server_unix_2 FW
196 server_b server_win_1 CD
196 server_c server_win_2 CD
196 server_bd ... (2 Replies)
hello,
i need to cut a string in unix but not from file ,, from variable, i searched on special line , and i need a specific data from this line , i get it on variable, how can i cut data that i need ??? merci (2 Replies)
hi all
In my bash script I want to cut a line up to a specific string and keep the rest of it but only up to a ".How can I do that?I imagine something with sed..
Let's say my line is:
Jennifer Jones (student) "id:376765748587/7465674775" NewYork
and i only want to keep:
... (9 Replies)
I need to remove double quoted strings from specific lines in a file. The specific line numbers are a variable. For example, line 5 of the file contains
A B C "string"
I want to remove "string". The following sed command works:
sed '5 s/\"*\"//' $file
If there are multiple... (2 Replies)
Hi
I have the follwoing requirement
I have a file as follows:
# cat priy
yyy.poweroff_cmd = /sbin/poweroff
hhh.powersave-nap = 1
When this file is provided as input, I first used "awk" command and saved variables present after "="
replace=$line
replace1=`echo $line | awk -F "="... (3 Replies)
Discussion started by: Priya Amaresh
3 Replies
LEARN ABOUT DEBIAN
pvmfmytid
MYTID(3PVM) PVM Version 3.4 MYTID(3PVM)NAME
pvm_mytid - Returns the tid of the calling process.
SYNOPSIS
C int tid = pvm_mytid( void )
Fortran call pvmfmytid( tid )
PARAMETERS
tid Integer returning the task identifier of the calling PVM process. Values less than zero indicate an error.
DESCRIPTION
The routine pvm_mytid enrolls this process into PVM on its first call. It also generates a unique tid if this process was not created by
pvm_spawn. pvm_mytid returns the tid of the calling process and can be called multiple times in an application.
Any PVM system call (not just pvm_mytid) will enroll a task in PVM if the task is not enrolled before the call.
The tid is a 32 bit positive integer created by the local pvmd. The 32 bits are divided into fields that encode various information about
this process such as its location in the virtual machine (i.e. local pvmd address), the CPU number in the case where the process is on a
multiprocessor, and a process ID field. This information is used by PVM and is not expected to be used by applications. Applications
should not attempt to predict or interpret the tid with the exception of calling tidtohost()
If PVM has not been started before an application calls pvm_mytid the returned tid will be < 0.
EXAMPLES
C:
tid = pvm_mytid( );
Fortran:
CALL PVMFMYTID( TID )
ERRORS
This error condition can be returned by pvm_mytid
PvmSysErr
pvmd not responding.
SEE ALSO pvm_tidtohost(3PVM), pvm_parent(3PVM)
30 August, 1993 MYTID(3PVM)