Search Results

Search: Posts Made By: Tanu
307
Posted By drl
Hi, Tanu. If you were to execute perldoc -f...
Hi, Tanu.

If you were to execute perldoc -f sort, you would find explanation:
sort SUBNAME LIST
sort BLOCK LIST
sort LIST
In list context, this sorts the LIST and...
307
Posted By jim mcnamara
the spaceship operator, <=>, is a comparison...
the spaceship operator, <=>, is a comparison function, for numeric data only. It compares elements in the input array, @unsorted. The output of the sort call is written to the array @sorted. If no...
261
Posted By Scrutinizer
You're welcome. Yes I meant to write print "" ,...
You're welcome. Yes I meant to write print "" , not print . I will correct it in my post..
One could also use: printf "\n" or printf ORS.
261
Posted By Scrutinizer
Hi, the default ORS (output record separator) is...
Hi, the default ORS (output record separator) is set to '\n' . If it were left to its default value, then the output of each print command would appear on a different line, whereas the intention...
Forum: Programming 07-23-2018
529
Posted By disedorgue
Hi, You must not give self in...
Hi,

You must not give self in super().__init__(self,value).

So super().__init__(value).
606
Posted By Corona688
From man grep: -f FILE, --file=FILE ...
From man grep:
-f FILE, --file=FILE
Obtain patterns from FILE, one per line. The empty file
contains zero patterns, and therefore matches nothing.

So...
871
Posted By RavinderSingh13
Hello Tanu, Could you please go through...
Hello Tanu,

Could you please go through following and let me know if this helps you.

awk '/OH|RU|OI/ ####So here we are searching for lines which have strings "OH" or "RU" or "OI", if yes...
871
Posted By RavinderSingh13
Hello Tanu, Without sample Input_file or...
Hello Tanu,

Without sample Input_file or without letting us know what you are trying to achieve, we all could guess only. So as a guess could you please try following and let us know how it...
871
Posted By RavinderSingh13
Hello Tanu, So a important step of trouble...
Hello Tanu,

So a important step of trouble shooting is either in any tool/code/operation is never neglect your error messages. So here we could see you script and then awkcommand is there, so it...
656
Posted By RavinderSingh13
Hello Tanu, It's a kind request to be more...
Hello Tanu,

It's a kind request to be more clear into your questions, however could you please go through following and let us know if this helps you.

`abc.ksh ####Your script,...
2,555
Posted By rbatte1
If they are space separated and you can be...
If they are space separated and you can be certain that Status will always be the penultimate one, you could use variable substitution:-
status_line=$(autorep -j $jobname | grep -E "^FR" ) ...
2,555
Posted By Don Cragun
Then autorep -j $jobName | grep '^FR' | awk -F'...
Then
autorep -j $jobName | grep '^FR' | awk -F' ' '{print $NF}'
will give you the last field and:
autorep -j $jobName | grep '^FR' | awk -F' ' '{print $(NF - 1)}' will give you the next to the...
2,555
Posted By RavinderSingh13
Hello Tanu, Please use code tags as per...
Hello Tanu,

Please use code tags as per forum rules for your commands/codes/Inputs which you are using into your posts. Following may help you in same.

autorep -j $jobName | grep '^FR' | awk ...
Showing results 1 to 13 of 13

 

Featured Tech Videos

All times are GMT -4. The time now is 09:42 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy