Search Results

Search: Posts Made By: ironmask2004
1,744
Posted By ironmask2004
# file_seq=1234 # file2=$(($file_seq+1)) #...
# file_seq=1234
# file2=$(($file_seq+1))
# echo $file2
1235
1,744
Posted By ironmask2004
# file_seq=4 # file2=$(($file_seq+1)) # echo...
# file_seq=4
# file2=$(($file_seq+1))
# echo $file2
5
2,342
Posted By ironmask2004
try with the next tools find command...
try with the next tools

find command generator (http://find.unixpin.com/)
Forum: SCO 02-23-2010
2,785
Posted By ironmask2004
ESD - Electronic Software Distribution...
ESD - Electronic Software Distribution (http://esd.ingres.com/)
Forum: HP-UX 02-23-2010
17,212
Posted By ironmask2004
check this...
check this (http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1266923332929+28353475&threadId=1227363)
also found at...
1,464
Posted By ironmask2004
There is typically a "at login" script which is...
There is typically a "at login" script which is executed only by a login shell.

Bourne Shell
~/.profile

Bash Shell
~/.bash_profile
8,761
Posted By ironmask2004
# cat infile | perl -e 'while (<>) { @arr=...
# cat infile | perl -e 'while (<>) { @arr= split(/[.]/); if (@arr[0,1,2]!= (10,10,10)) { print "$_"; } }'

the output is:
67.172.15.15
78.122.105.108
12,523
Posted By ironmask2004
from UNIX shell view nothing if you used &&...
from UNIX shell view

nothing if you used && between the commands

super (handler) (instance) stop && super (handler) (instance) start
3,734
Posted By ironmask2004
try next script #!/usr/bin/ksh N=3 ...
try next script


#!/usr/bin/ksh
N=3
count=1
filenames=" "
while [[ $count -lt $N+1 ]];do
awk 'BEGIN {RS="SNo"} /No[[:space:]]*'$count'/ {print $0} ' infile > /tmp/tmpf$count
...
2,366
Posted By ironmask2004
try with next #!/bin/bash for HH in `cat...
try with next

#!/bin/bash
for HH in `cat hostnames`
do
Var=`ls |awk '/'$HH'/ {print 1}'`
if [ "$Var" = "1" ] ; then
echo append script for $HH
else
echo cretae...
2,352
Posted By ironmask2004
try gawk ( since gawk has no pre-defined limits.)...
try gawk ( since gawk has no pre-defined limits.)

GAWK(1) Free Software Foundation GAWK(1)
Utility Commands
-mf NNN
-mr NNN
Set...
2,352
Posted By ironmask2004
try this # cat infile.xml ...
try this


# cat infile.xml
<tax><RepCents><Rep_0>10.00</Rep_0><Rep_1>10.00</Rep_1><Rep_2>10.00</Rep_2><Rep_3>10.00</Rep_3><Rep_4>10.00</Rep_4>
<Rep_5>10.00</Rep_5></RepCents></tax>


# awk...
5,368
Posted By ironmask2004
:b:
:b:
5,368
Posted By ironmask2004
but you need to know how muche recoreds you have...
but you need to know how muche recoreds you have insaide the fill to generate a random number betwwen 1 and NUM Of Rec !!!
5,368
Posted By ironmask2004
try the next code uses rand function awk...
try the next code uses rand function

awk 'BEGIN{ RS="%" ;srand() } { line[NR] = $0 } END{ print line[randint(NR)] } function randint(n) {return int(n * rand()) + 1}' infile

Or

awk...
Forum: Linux 01-31-2010
15,514
Posted By ironmask2004
hi, what did you mean about "my application...
hi,

what did you mean about "my application hanges"??

do you mean "application crashes" then it's not a performance issue,
maybe it's software issues, OS bug or Application Bug,
...
2,600
Posted By ironmask2004
I think this code will work if he has only one...
I think this code will work if he has only one record!!!

try the next in case the record separator is empty line:



gawk " BEGIN { RS=\"\"; FS=\"\n\" } {split($1,OUT1,\"\" \" \") ;...
2,048
Posted By ironmask2004
you need to add a longname to your /etc/hosts...
you need to add a longname to your /etc/hosts file


192.168.1.231 myserver myserver.mycompany.com
6,554
Posted By ironmask2004
Internal Variables...
Internal Variables (http://tldp.org/LDP/abs/html/internalvariables.html)

$*
All of the positional parameters, seen as a single word
Note "$*" must be quoted.
$@
Same as $*, but...
7,433
Posted By ironmask2004
I would to advice you to use cpio command for...
I would to advice you to use cpio command for that directory



cd /new/file/see/New/small/
find . -name *.xml -print | cpio -ov > New_data.cpio
7,433
Posted By ironmask2004
I think the problem is related to the big number...
I think the problem is related to the big number of xml files inside that directory,
2,162
Posted By ironmask2004
change the SWITCHCHARS to be minus instead of / ...
change the SWITCHCHARS to be minus instead of /
set SWITCHCHARS=-


"(The slash, "/", may be used instead of a minus to introduce options. To pecify a different set of characters to introduce...
Forum: Programming 12-13-2009
2,734
Posted By ironmask2004
replace fgets ( name, 10, stdin ); with ...
replace
fgets ( name, 10, stdin );
with
gets ( name);

and the resualt wil be like

root@kf-opensolaris:/tmp# ./a.out
Enter employee name: myname
Enter bonus level (0, 1, or 2): 1...
34,976
Posted By ironmask2004
cut is working to cut -d "|" -f 1...
cut is working to cut -d "|" -f 1 filename
4,833
Posted By ironmask2004
try this code to get the modification date ...
try this code to get the modification date

for ii in `ls -l | awk -F" " ' {print $6}'`
do
echo $ii
done


anyway you can use find with option to get the files updated since a specific date
Showing results 1 to 25 of 31

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