Hi people,
I am new to shell scripting, My problem is i have the output of a shell command in one file,and an output of another command in another file, what i want is, I want to append the output of the second command at a particular location of the first file recursively.
Ex:(OUTPUT OF Ist COMMAND)File 1 -->
Code:
-------------------blah blah blah some link(/blah/blah/blah) blah blah --
Hello,
I am trying to modify 2 files, to yield results in a 3rd file.
File-1 is a 8-columned file, separted with tab.
Code:
1234:1 xyz1234 blah blah blah blah blah blah
1234:1 xyz1233 blah blah blah blah blah blah
1234:1 abc1234 blah blah blah blah blah blah
n/a RRR0000 blah blah blah blah blah blah
n/a RRR0000 blah blah blah blah blah blah
9876:2 htg234 blah blah blah blah blah b
Hei buddies,
Need ur help once again.
I have a file which has bunch of lines which starts from a fixed pattern and ends with another fixed pattern.
I want to make use of these fixed starting and ending patterns to select the bunch, one at a time.
The input file is as follows.
Hi welcome
blah blah blah
blah blah blah
Bye**
Hi welcome
blah blah
blah blah
blah blah
blah blah
bl
Code:
cat my.log
blah blah blah
< 1 djfh jsdfhk jksdfh
< 2 dshkfl opeir pqowi
< 4 khasd wouipeui
say i am perfroming some action similar to below...
Code:
cat my.log | egrep "<" | awk -F' ' '{print $2}' | grep -v "[A-Za-z]"
it gives output as below
Code:
1
2
4
is there anyway to modify above same command so that output is displayed li
I upgraded one of our servers to cPanel 11.36 from 11.32 and now I'm having problems with a customer's E-Blah forum. The error log is complaining about a missing perl module:
Code:
List::Util object version 1.21 does not match bootstrap parameter 1.27 at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/XSLoader.pm line 94
Any clues on how to resolve this?
I am writing a perl code(windows) to traceroute IP address and to print the output.
Could anyone please supply the code.
I had executed the below code which was taken from cpan modules
Code:
#!C:/perl/bin/perl.exe
use Net::Traceroute;
$tr = Net::Traceroute->new(host=> "google.com");
if($tr->found) {
my $hops = $tr->hops;
if($hops > 1) {
print "Router was "
The script needs to implement a hotel registrations system:
- it needs to be menu driven
- there are single, double rooms and apartments.
can someone help me translate the following command, from:
Code:
/usr/bin/awk "/^$TOFDAYM $TOFDAYD /,0" $LOGFILE
to something like
Code:
perl -e .....
basically, i want to use perl to do awk functions within a shell script. i want to do the above awk, using perl.
any suggestions?
A code branch called "gio-support" was just created in our repository: http://git.gnome.org/browse/perl-Glib/log/?h=gio-support. It contains an initial attempt at GIO bindings via gobject-introspection. It's still a bit rough around certain edges, but should otherwise be pretty complete and functional.