Search Results

Search: Posts Made By: hard aix
2,124
Posted By hard aix
awk -F, '$4 == "\"1\"" {print}'...
awk -F, '$4 == "\"1\"" {print}' filename
Forum: Programming 03-02-2009
4,242
Posted By hard aix
You can try the "which" command on the name of...
You can try the "which" command on the name of you compiler:
which cc
which gcc
which g++
22,721
Posted By hard aix
at the top of the block you want to delete type...
at the top of the block you want to delete type "mx".
at the end of the block type "d`x".
18,232
Posted By hard aix
Can you post a small sample of the input file? ...
Can you post a small sample of the input file?

something like the results of
cat -vet filename.txt | head
26,641
Posted By hard aix
This (fragment) works fine without a syntax error...
This (fragment) works fine without a syntax error on my system.
13,875
Posted By hard aix
Two separate script files, but if you just have...
Two separate script files, but if you just have one command to execute at a certain time and another single command to execute later you can forgo the files and just put the single command in the...
13,875
Posted By hard aix
mv is the command to move or rename files.
mv is the command to move or rename files.
2,973
Posted By hard aix
how about this: d=$(date +"%Y%m%d") touch...
how about this:
d=$(date +"%Y%m%d")
touch myfile.onlytest.$d.txt
1,460
Posted By hard aix
printf is your friend on this. a=$(printf...
printf is your friend on this.

a=$(printf "%04d%02d%02d" 2009 2 6)
echo $a
Result:
20090206
6,067
Posted By hard aix
df[$1] instead of df[$i]?
df[$1] instead of df[$i]?
1,769
Posted By hard aix
awk '/ATM Name/ {saveit=substr($0,4)};/Router...
awk '/ATM Name/ {saveit=substr($0,4)};/Router IP/{print saveit ", " substr($0,4)}' inputfile
56,670
Posted By hard aix
Go to the url. On that page press ctrl-A...
Go to the url. On that page press ctrl-A (Select all) then crtl-c (copy).

On your aix system, open up your editor (vi?) make sure your are in insert mode and paste the copied text. Save it to a...
56,670
Posted By hard aix
Oh. Yes, you are right. It only works from the...
Oh. Yes, you are right. It only works from the current date and I don't know if it can be made to work from another date.


In the past, on my system, I have used a shell script called...
56,670
Posted By hard aix
?? Can you copy/paste and post what happens...
??

Can you copy/paste and post what happens when you execute those 3 lines of code on your system?
1,245
Posted By hard aix
Then take the quotes off your prior sed command. ...
Then take the quotes off your prior sed command. It will work if you do this:
sed 's/dlp400/mld200/g' inputfile > outputfile
but I do not know how or if you can modify the input file in one sed...
3,922
Posted By hard aix
I think you need the "trap" command as a wrapper...
I think you need the "trap" command as a wrapper around your "tail -f".
I don't know the syntax but check out UNIX / Linux Bourne / Bash Shell Scripting Tutorial [ steve-parker.org ]...
1,245
Posted By hard aix
Does you input file have the double quotes in it?
Does you input file have the double quotes in it?
Forum: AIX 02-20-2009
3,057
Posted By hard aix
samba
samba
3,430
Posted By hard aix
I think this will do what you want (or close...
I think this will do what you want (or close enough that you can take it from here):cut -d" " -f1 sortlist2.txt| uniq > sortlist3.txt
cut -d" " -f2 sortlist2.txt| sort| uniq > rmlist.txt
56,670
Posted By hard aix
Look at the "--date" option of the date command. ...
Look at the "--date" option of the date command. (info date). I think you can use that but I couldn't quickly figure out how to get it to take input in mm/dd/yy format.date1='2009-02-19 00:00:00...
1,960
Posted By hard aix
awk is the tool you need for this: awk...
awk is the tool you need for this:

awk '/Subcase ID/{save=$0};!/Subcase ID/{print $0" "save}' inputfile
1,992
Posted By hard aix
On my computer (AIX): tail +4 file
On my computer (AIX):
tail +4 file
56,670
Posted By hard aix
date -d "+5 day" +"%D ?
date -d "+5 day" +"%D ?
5,488
Posted By hard aix
I needed to get yesterdays date just yesterday...
I needed to get yesterdays date just yesterday and came up with this:

/opt/freeware/bin/date -d "-1 day" +"%D"

this will work if your aix box has the gnu coreutils installed.
35,952
Posted By hard aix
Try this: 00 08 * * 3 [[ $(expr `date +%W` %...
Try this:
00 08 * * 3 [[ $(expr `date +%W` % 2) = 0 ]] && /home/user/user.scriptdepending on the bi-weekly cycle you may need a "= 1" instead.
Showing results 1 to 25 of 25

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