Search Results

Search: Posts Made By: rob171171
1,754
Posted By Corona688
sed is not the be-all and end-all of text. I'm...
sed is not the be-all and end-all of text. I'm not sure what I'd even use it for here since you're just replacing everything with everything...

read YYYYMMDD HH MM SS <<EOF
`date '+%Y%m%d %H %M...
1,754
Posted By Yoda
How about? for file in CDR*.gb do ...
How about?
for file in CDR*.gb
do
echo "mv $file CDR.$( date +'%Y%m%d.%H%M%S' ).gb"
sleep 1
done

Note: remove echo if the result is OK, replace like below:-
mv "$file"...
3,689
Posted By jim mcnamara
you need a file count: manipulate the list of...
you need a file count: manipulate the list of directories to check to get rid of stuff on other disks if you want.

# top 20 offenders
find / -type f -exec dirname {} \; | awk '{arr[$0]++; next} ...
1,750
Posted By Corona688
An easy fix would be cron lines like: 00 1 *...
An easy fix would be cron lines like:

00 1 * * * /usr/bin/timeout 240s /home/it/capopt/scripts/FTP_Download_S_Octets.sh S10 > /dev/null 2>&1 which should kill the process and things belonging to...
4,142
Posted By ctsgnb
and what gives cat r10 ? ... i am sure you...
and what gives cat r10 ?

... i am sure you get
A9
B9
C9
D9
E9
F9
G9
H9
I9
J9
K9
L9
M9
N9
O9
P9
Q9
4,142
Posted By ctsgnb
This is explained in my previous post, please...
This is explained in my previous post, please re-read it

They are printed in order, it is just that it looks like "more" handle the "long lines" so that it "fold" them into several lines.
4,142
Posted By ctsgnb
It is just because you use the command "more" to...
It is just because you use the command "more" to display the content of your file, so the output is formatted so that it goes to newline when arriving at the edge of your screen, but if you edit...
2,449
Posted By ctsgnb
man xargsAlso condsider the following example : ...
man xargsAlso condsider the following example :

# echo "A\nBBB CCC DDDD\nEE FFFF\nGGG HHH II"
A
BBB CCC DDDD
EE FFFF
GGG HHH II
# echo "A\nBBB CCC DDDD\nEE FFFF\nGGG HHH II" | xargs
A BBB...
2,449
Posted By ctsgnb
paste -sd " " PMT_GGSN_WPP_APN-20110517* #...
paste -sd " " PMT_GGSN_WPP_APN-20110517*

# ls h*
h1 h2 h3 h4 h5
# cat h1
A1
B1
C1
D1
E1
F1
G1
# cat h2
A2
B2
C2
D2
E2
F2
G2
1,470
Posted By Scrutinizer
Also, see if this makes a difference: nawk -F'[...
Also, see if this makes a difference:
nawk -F'[ \t.]*' '{print $2}' g11open.internet
1,470
Posted By Peasant
What is your OS ? On Solaris please use nawk ...
What is your OS ?
On Solaris please use nawk

I've tried it on HPUX v2 and 3 and Debian Linux, without syntax errors.
12,578
Posted By Franklin52
Use nawk or /usr/xpg4/bin/awk on Solaris. ...
Use nawk or /usr/xpg4/bin/awk on Solaris.

With sed you can do something like:
sed -e 's/.X$/.$G10B/' -e 's/.Y$/.$G10I/' file
12,578
Posted By Franklin52
Try this: awk -F....
Try this:
awk -F. '{$NF=$NF=="X"?"$G10B":$NF=="Y"?"$G10I":$NF}1' OFS=. file
3,399
Posted By ctsgnb
The right way to write it is : sed...
The right way to write it is :

sed 's/[][]//g' infile1. The red ones enclosed all the elements that are concerned (that are to be replaced)
2. the closing bracket ] is a special case and should...
3,000
Posted By DGPickett
Well, if Singelton.pm and such is nowhere on your...
Well, if Singelton.pm and such is nowhere on your system, download it: Class::Singleton - search.cpan.org (http://search.cpan.org/~abw/Class-Singleton-1.03/Singleton.pm)
Forum: Linux 04-14-2011
4,131
Posted By sysgate
Yes, it's a bit complicated, for me, too, but it...
Yes, it's a bit complicated, for me, too, but it works. Actually, seeing your reply, I did search with another keywords, and I found this (http://clive.sourceforge.net/) - if it's really that simple...
Forum: Linux 04-14-2011
4,131
Posted By sysgate
For streaming, wget is not going to work. If you...
For streaming, wget is not going to work. If you try to download a youtube page with it, it will simply download the source code of the page, the JS and the HTML, but not the video itself.
Here's a...
5,810
Posted By methyl
Can you show us the two scripts which work along...
Can you show us the two scripts which work along with sample commands used to invoke those scripts?


As there are two "#EOT" lines in your script, we mean the first one.
cd...
Forum: Solaris 03-25-2011
18,448
Posted By vgersh99
For grep-ing try this: grep '|internet$'...
For grep-ing try this:

grep '|internet$' myFile

For anything else, please post the desired output given your sample input.
Forum: Solaris 03-25-2011
3,981
Posted By bluescreen
Think about what resources your script actually...
Think about what resources your script actually needs to run. I'm sure the PATH (which is the same in both) and LD_LIBRARY_PATH var are probable required. What about the Oracle vars? Does the...
Forum: Solaris 03-24-2011
3,981
Posted By bluescreen
Is the /usr/bin/sh script calling the...
Is the /usr/bin/sh script calling the /usr/bin/perl script? -OR- is the Perl script embedded in the sh script? If you can run this from the command line and it completes normally, do you have...
13,754
Posted By DGPickett
Probably a lack of environment, as no...
Probably a lack of environment, as no #!/usr/bin/perl -w as the first line of ./hash.pl would fail interactively, and most commands do not care there is no tty. For instance, ps -f is tied to your...
13,754
Posted By DGPickett
So, cron started the outer script OK, and is out...
So, cron started the outer script OK, and is out of the picture.

In cron, you have not tty or environment. The closest interactive analog to cron is to run it under "rsh/rexec/remsh/ssh/ssh2...
13,754
Posted By DGPickett
Did you put a second line in each script, echoing...
Did you put a second line in each script, echoing out a debug message to a fixed path, so you can tell if cron runs either, say:date "+%Y-%m-%d %H:%M:%S ($$) Start $0 ($#) $@" >>/tmp/croncheck.log
Forum: Solaris 03-24-2011
3,981
Posted By methyl
With the redirect removed, any error messages or...
With the redirect removed, any error messages or program output should be in unix mail for the owner of the cron.
Is this a "root" cron?
If you find error messages, please post the error messages....
Showing results 1 to 25 of 29

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