Search Results

Search: Posts Made By: linuxpenguin
1,460
Posted By linuxpenguin
ok, I get it Here you go sort a.txt |...
ok, I get it
Here you go


sort a.txt | awk -F'=' 'BEGIN {l=null} $1 ~ /Time|Server|Run|Tables/ {if($1 != l ) {l=$1; printf("\n%s ",$1)} else { printf("%s ",$2)}}'
Forum: Programming 03-27-2014
4,755
Posted By linuxpenguin
To answer 2, to put the process in background,...
To answer 2, to put the process in background, you will have to
1. fork from the parent.
2. terminate the parent so the child is owned by init.
3. and dissociate the tty by setting session...
5,748
Posted By linuxpenguin
oh my bad, while read line;do ...
oh my bad,


while read line;do
ts=`echo "$line"|cut -d',' -f1
rest=`echo "$line"|cut -d',' -f2-
d=`date --date="@${ts}" "+%d/%m%Y %H:%M:%S"`
echo "$d,$rest"
done < inputfile >...
83,498
Posted By linuxpenguin
i guess g is ignored by ls, the below one will...
i guess g is ignored by ls, the below one will work anyway

ls -1t|tail -1

1 lists the output of ls as a column
t sorts it by time
tail -1 lists the last item in the list
Forum: Programming 01-09-2006
131,418
Posted By linuxpenguin
how did you compile this code. use the pthread...
how did you compile this code. use the pthread library

cc -o outputfile c_code_file -lpthread
Showing results 1 to 5 of 5

 

Featured Tech Videos

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