Search Results

Search: Posts Made By: 02JayJay02
4,194
Posted By 02JayJay02
That works now too :) both produce the same...
That works now too :) both produce the same results so is one prefered to the other or doesnt it matter?
4,194
Posted By 02JayJay02
fantastic thank you Scrutinizer that option works...
fantastic thank you Scrutinizer that option works perfectly :)

not sure why it wont let me use the grep -q option youve posted I get this when I try

grep: illegal option -- q
Usage: grep...
4,194
Posted By 02JayJay02
sorry I dont have the use of nawk or grep with...
sorry I dont have the use of nawk or grep with the -q switch

egrep -v wouldn't get what Im looking for as it wouldnt highlight any errors

sorry I only have limited knowledge of awk and sed...
4,194
Posted By 02JayJay02
Using egrep to output expressions which are not found
Hi,

Im using the below command to search a file for multiple expressions if the 4th expression doesnt exist the command simply lists what it can find and ignores what it cant. Is there any way to...
7,602
Posted By 02JayJay02
Thats brill!!! thankyou :) Just switching the...
Thats brill!!! thankyou :)
Just switching the order around has worked perfectly :)
7,602
Posted By 02JayJay02
SunOS awards-live 5.10 Generic_137111-07 sun4u...
SunOS awards-live 5.10 Generic_137111-07 sun4u sparc SUNW,Sun-Fire-V890

I read the emails in outlook 2010 (HTML) - attachemnts show fine but the body of the email is blank
7,602
Posted By 02JayJay02
Sending an email with a body and attachments using uuencode
Hi,

Im having a bit of an issue with using the uuencode command and sending out an email.

My aim is to send an email out which has a body and also have attachments. Currently I can either get...
2,431
Posted By 02JayJay02
Issues with comparing 2 files timestamps
Hi,

Im trying to write a script to first check a directory and if the filename has "ACK" in it do nothing and exit but if it has "ORD" in the filename then compare it with a dummy file created 2...
3,254
Posted By 02JayJay02
Thankyou to everyone, I've ended up using bmk's...
Thankyou to everyone, I've ended up using bmk's method and managed to get it to work, thats for all your help much appreciated! :)
3,254
Posted By 02JayJay02
Hi everyone thanks for all the help! type...
Hi everyone thanks for all the help!

type awk
returns
awk is /usr/bin/awk

I currently have this and it seems to be working! However I can't seem to get the OFS to equal a "tab" character,...
3,254
Posted By 02JayJay02
Hi, thankyou for the help but Im still getting...
Hi, thankyou for the help but Im still getting the below error message after trying your suggestion

awk: can't open BEGIN {OFS="\t";} {print $1,$2,$3,$4,$5,$6,$7,$8,$9;}
3,254
Posted By 02JayJay02
Awk OFS issues
Hi, Could anyone tell me what Im doing wrong here any help will be much appreciated

#!/bin/bash
ls -ltr /export/home/tjmoore > /export/home/tjmoore/log100
awk -F " "...
4,441
Posted By 02JayJay02
Thanks Pamu :) I need to look into awk a bit more...
Thanks Pamu :) I need to look into awk a bit more seems to be a very useful tool when you know how to use it properly
4,441
Posted By 02JayJay02
Awk OFS issues
Hi Im trying to tidy up the output of a who command when it writes to a log, everything I've tried doesnt seem to work though, any help would be massively appreciated. Im using the awk command to set...
6,214
Posted By 02JayJay02
sorry 244an I mst have missed your last post,...
sorry 244an I mst have missed your last post, have been very busy on a tight deadline with this script among other things.

I've managed to get my script working now though :) Using perl as...
6,214
Posted By 02JayJay02
So close, if I run it like this as a spereate...
So close, if I run it like this as a spereate script then it gives me exactly what I want 120905

#!/bin/bash
#
DATE=$(perl -e '@f=localtime(time-(86400*7));printf...
6,214
Posted By 02JayJay02
Hi Ygor, the datecalc script looks really good...
Hi Ygor, the datecalc script looks really good and would definately solve my problem, how would I go about including this in my script so I could get the output of the DATE3 variable to be as I...
6,214
Posted By 02JayJay02
That could potentially be an option if I cant get...
That could potentially be an option if I cant get this working, basically in the below script for the DATE3 variable in the script Im tryig to get it to insert the date - 7 days i.e 120912 is todays...
6,214
Posted By 02JayJay02
hi machindra89 Could I use the Find command...
hi machindra89

Could I use the Find command to fined this file VSL010<date -7>000000.txt

The <date-7> would be in the format of %y%m%d

Would the find command work with the calendar?
6,214
Posted By 02JayJay02
Sorry I run Solaris, so the above won't work,...
Sorry I run Solaris, so the above won't work, thats for the input though :)
6,214
Posted By 02JayJay02
All of the above just give todays date, I need it...
All of the above just give todays date, I need it to be seven days previous
6,214
Posted By 02JayJay02
Tried both methods, using brackets does seem to...
Tried both methods, using brackets does seem to make the date command work however the TZ changes don't apply to it so its just outputs todays date
6,214
Posted By 02JayJay02
just wrote a seperate script as it seems to be...
just wrote a seperate script as it seems to be just the date command thats not working now, I have the below but it doesnt output the date

#!/bin/bash
#
TZ=TZ+168
DATE='date +'%y%m%d''...
6,214
Posted By 02JayJay02
Doesnt seem to want to run the date command in...
Doesnt seem to want to run the date command in between the TZ alterations

Just comes back with this if you echo it


date +%y%m%d'


If you run it like this however it does work but the...
6,214
Posted By 02JayJay02
Thankyou, getting somehwere now, just the DATE3...
Thankyou, getting somehwere now, just the DATE3 variable which isn't working correctly, I have the below now from what I understood from your reply. I need the date to be written into where the...
Showing results 1 to 25 of 49

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