Search Results

Search: Posts Made By: rwuerth
5,806
Posted By RudiC
I don't know how large your log files will be,...
I don't know how large your log files will be, but greping or seding them will always read them from the start, which may become serious overhead.
If you just want to know if there's a DONE...
Forum: HP-UX 11-15-2012
6,765
Posted By alister
I don't see anything wrong with your code (given...
I don't see anything wrong with your code (given the stipulations in place).

If you like, you can just print the day of the week directly from AWK.

cal $mth $yr | awk 'NR==3 {split("Sat Sun Mon...
Forum: HP-UX 11-14-2012
6,765
Posted By jgt
You might find this useful. I use it to validate...
You might find this useful. I use it to validate input dates, first convert the date to the number of days since Jan 1 1900, then convert that number back to a date, and compare with input....
Forum: HP-UX 11-14-2012
6,765
Posted By Yoda
dd=$1 mm=$2 yy=$3 index=$( echo "$dd $mm...
dd=$1
mm=$2
yy=$3

index=$( echo "$dd $mm $yy" | awk ' {
dd=$1;mm=$2;yy=$3;
if(mm<3) { mm+=12; yy--; }
print int(yy/400 - yy/100 + (mm+1)*26/10 + yy*125/100 + dd - 1) % 7
} ' )

index=`expr...
14,342
Posted By Don Cragun
Yes, it would. However, cp's -t option is an...
Yes, it would. However, cp's -t option is an extension to the standards and is not available on many systems, including OS X (which is the OS I use when testing suggestions I submit to this site).
...
14,342
Posted By RudiC
That's what I thought. If in the first example...
That's what I thought. If in the first example you invoke cp once with 881 filenames, then you compare apples with apples. find needs the {} to appear just in front of the +, so it does not work out...
Forum: HP-UX 10-26-2012
4,755
Posted By fpmurphy
If you select the EFI shell, check the output of...
If you select the EFI shell, check the output of "map -r". If you do not see a CDROM or DVD there, then there is probably something wrong with the DVD hardware.
Forum: HP-UX 06-06-2012
4,196
Posted By vbe
What OS version / platform ? Is ...
What OS version / platform ?
Is /etc/lp/interface/ (HPUX11.11 parisc...) what you are looking for?

e.g.

ant:/etc/lp/interface $ ll
total 270
drwxr-xr-x 3 lp bin 1024...
Forum: Linux 12-29-2011
2,701
Posted By fpmurphy
No need to install Cygwin, UWIN or anything like...
No need to install Cygwin, UWIN or anything like that. Windows 7 Ultimate comes with a full POSIX subsystem called Subsystem for UNIX-based Applications (SUA). You just need to turn it on in the...
Forum: Tips and Tutorials 08-30-2007
755,645
Posted By Perderabo
Using perl to display the file timestamps
The ls program will display mtime if you use "ls -l". And you can get atime or ctime with "ls -lu" or "ls -lc". But ls uses a strange format. It displays the month and day in all cases. If the...
1,711
Posted By Franklin52
awk '$1==49' file
awk '$1==49' file
20,601
Posted By Corona688
This question implies you don't know why the...
This question implies you don't know why the shebang works. Shells ignore it -- it's a comment as far as they're concerned because it starts with # It has absolutely no effect on sourced scripts...
2,354
Posted By Chubler_XL
Bracket notation denotes a list of single...
Bracket notation denotes a list of single characters to match.
For example "grep [cfh]at" would match:
cat
fat
hat

so "grep [b]ind" matches root 201 1 0 09:28:09 - 0:05...
Showing results 1 to 13 of 13

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