Search Results

Search: Posts Made By: johankor
Forum: Programming 02-14-2015
2,822
Posted By durden_tyler
Yes, the issue was the "print()". In my earlier...
Yes, the issue was the "print()". In my earlier post, I used Python version 3.4 (Anaconda on Windows 7) where print() is a function. Your version is 2.7 where print is a statement. The syntax is...
7,681
Posted By vbe
It wont ask root its passwd if the cronjob is...
It wont ask root its passwd if the cronjob is root's... it should be in root's crontab...
7,681
Posted By RudiC
Either create a sudoers entry for your cron user,...
Either create a sudoers entry for your cron user, or run a root's cron job a minute before your other job.
1,110
Posted By RavinderSingh13
Hi Sagar, Here is an awk approach. Lets say...
Hi Sagar,

Here is an awk approach. Lets say we have an example input file as follows.


cat test15
Row1 Row2 Row3 Row4 Row5
435 BL_lmapm03 rrr RDF1+TDEV 0cef 45 mask1
435...
1,158
Posted By pamu
with awk awk '{print ;getline<"file2"; print...
with awk
awk '{print ;getline<"file2"; print $0}' file1
1,158
Posted By radoulov
paste -d\\n file1 file2
paste -d\\n file1 file2
1,224
Posted By jayan_jay
for i in `nawk '{print $1|"sort -u"}' infile` ...
for i in `nawk '{print $1|"sort -u"}' infile`
do
grep "^$i" infile | nawk '$3 > max {max=$3; maxline=$0}; END{ print maxline}'
done
0.5000 -146 122
0.5452 -97 14
16.000 -164 151
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 02:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy