Search Results

Search: Posts Made By: derekludwig
5,295
Posted By Don Cragun
And, if the OP doesn't have a Linux system, but...
And, if the OP doesn't have a Linux system, but does have a 1993 or later ksh, the following works correctly when $t_date expands to a YYYYMMDD representation of the last day of any month:
printf...
12,658
Posted By anbu23
$ awk ' /BEGIN/,/END/ { str = str ? str "\n" $0...
$ awk ' /BEGIN/,/END/ { str = str ? str "\n" $0 : $0 } /END/ { if( str ~ /Amit/ ) { print str }; str = "" } ' file
******** BEGIN *****
My name is Amit.
I am learning unix.
***** END *****

...
Forum: What is on Your Mind? 12-16-2014
2,537
Posted By Neo
Congratulations to Corona688 for 20,000 Posts!
Please join me in congratulating and thanking Corona688 for 20,000 top quality posts at unix.com !

https://www.unix.com/members/1-albums112-picture651.png
2,221
Posted By RudiC
That might be due to buffering. On linux, one of...
That might be due to buffering. On linux, one of the coreutils is stdbuf that allows to modify the way programs use their input and output buffers. Try:tail -f /var/log/syslog | stdbuf -o0 grep...
12,800
Posted By sea
You do not need to put date, ls, or any other...
You do not need to put date, ls, or any other COMMAND to put in quotes when executed in a terminal.

Just like this is enough:
date
ls
w

To actualy work with them, it is suggest to echo them...
4,306
Posted By RudiC
This depends on a recent shell and GNU date:awk...
This depends on a recent shell and GNU date:awk '{print $3"-"$2"-"$1" "$4":"$5}' FS="[-: ]" file4 |
date -f- +%s |
{ read OLDP
printf "%(%d-%m-%Y %H:%M)T, " $OLDP; CNT=1 ...
Showing results 1 to 6 of 6

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