Search Results

Search: Posts Made By: mytouchsr
2,181
Posted By mytouchsr
Crontab Logfile Not Creating
I have a script file (fmlist.sh), i need the output of this script to write to a logfile (Mod_Alm_log.txt). If i execute the below manually it works, but when using in crontab the file is empty.
...
4,543
Posted By mytouchsr
got it, i missed the first $2 in my modified...
got it, i missed the first $2 in my modified commands. Thank you.
4,543
Posted By mytouchsr
this is changing format of the first column, all...
this is changing format of the first column, all my dates are in the second row, i have tried taking what you provided an going through different tutorials and cant get it to mod

Here is the...
4,543
Posted By mytouchsr
Ok, Got it to work with: usr/bin/sh set +H...
Ok, Got it to work with:

usr/bin/sh
set +H
/usr/xpg4/bin/awk '/^%a/||/^$/{next}!/^%/{ORS=OFS}/^%/{$0="";ORS=RS}1' OFS='\t' Mod_Alm_log.txt > textmod.log

Thanks, definately appreciate your...
4,543
Posted By mytouchsr
uname SunOS echo $SHELL /usr/bin/tcsh
uname
SunOS
echo $SHELL
/usr/bin/tcsh
4,543
Posted By mytouchsr
fails with the following dreid12@atgapp01>...
fails with the following

dreid12@atgapp01> set +H
set: Variable name must begin with a letter.
4,543
Posted By mytouchsr
/usr/xpg4/bin/awk...
/usr/xpg4/bin/awk '/^%a/||/^$/{next}!/^%/{ORS=OFS}/^%/{$0="";ORS=RS}1' OFS='\t' Mod_Alm_log.txt

/usr/xpg4/bin/awk '/^%a/||/^$/{next}awk%/{ORS=OFS}/^%/{$0="";ORS=RS}1' OFS='\t' Mod_Alm_log.txt...
4,543
Posted By mytouchsr
Ok, I'm sorry, still missing something. Does the...
Ok, I'm sorry, still missing something. Does the format change from awk to nawk?

dreid12@atgapp01> nawk '/^>/{$0=(NR>1)?RS $0:$0;ORS=RS}!/>/{ORS=""}END{printf "\n"}1' Mod_Alm_log.txt
nawk...
4,543
Posted By mytouchsr
Yoda - Thanks for your reply, i first received...
Yoda - Thanks for your reply, i first received the error:
/: Event not found.

tried again and got:
awk: syntax error near line 1
awk: bailing out near line 1

I tried to put in a file and...
4,543
Posted By mytouchsr
awk - Extract 4 lines in Column to Rows Tab Delimited between tags
I have tried the following to no avail.
xargs -n8 < test.txt
awk '{if(NR%6!=0){p=""}else{p="\n"};printf $0" "p}' Mod_Alm_log.txt > test.txt

I have tried different variations of the above, the...
Showing results 1 to 10 of 10

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