Search Results

Search: Posts Made By: skmdu
2,216
Posted By skmdu
sed -n '/Mar 02/{N;p}' infpufile
sed -n '/Mar 02/{N;p}' infpufile
Forum: HP-UX 03-30-2010
14,752
Posted By skmdu
Thanks pludi. It works. And I found it,...
Thanks pludi. It works.

And I found it, using swlist command also,

swlist -l file -s filename.depot
Forum: HP-UX 03-29-2010
14,752
Posted By skmdu
[Solved] How to view the contents of the .depot files
Hi,

I have one depot file. I would want to view the contents of this file with out extracting and with out installing in a machine. Like for

$rpm -qlp rpmfilename
will list out all the files...
8,109
Posted By skmdu
Do you mean = wont be there?
Do you mean = wont be there?
8,109
Posted By skmdu
#! /bin/bash var="router=bras1+dallastx" ...
#! /bin/bash

var="router=bras1+dallastx"
pos=`expr index $var =`
test=${var:$pos}
part1=${test%+*}
part2=${test#*+}
echo $part1 $part2
2,513
Posted By skmdu
$ cat a.txt | sort -u
$ cat a.txt | sort -u
4,624
Posted By skmdu
$sed '/^pp */d' chap-secrets or $sed...
$sed '/^pp */d' chap-secrets

or

$sed -i '/^pp */d' chap-secrets
1,134
Posted By skmdu
You can use sprintf function with the specific...
You can use sprintf function with the specific length, so that your output will be perfect.
4,484
Posted By skmdu
1. To match the lines with only ORA-00600 errors...
1. To match the lines with only ORA-00600 errors and which does not contain 12333 in the first brackets.

$grep -v "ORA-00600:[^\[]*\[12333\]"


2. To match the lines with only ORA-00600 errors...
2,071
Posted By skmdu
Hope I got your question correctly, But I used...
Hope I got your question correctly, But I used the different approach to solve this issue ( i,e I didnt check if the new line appears before the line starts with the number ). It works for me. You...
Forum: What is on Your Mind? 01-18-2010
37,132
Posted By skmdu
Developer aka programmer, with Linux platform.
Developer aka programmer, with Linux platform.
6,350
Posted By skmdu
Hexadecimal key displayed in the output of the...
Hexadecimal key displayed in the output of the command 'ipcs -m' is the hexadecimal value of the shm_key you have given to create the shared memory. Here I think you are pointing to the incorrect...
1,178
Posted By skmdu
You can try logrotate(8) - Linux man page...
You can try logrotate(8) - Linux man page (http://linux.die.net/man/8/logrotate) to rotate the log files.
4,310
Posted By skmdu
#! /bin/bash TGT=T2DIRUPDAZ20070326VA; ...
#! /bin/bash

TGT=T2DIRUPDAZ20070326VA;
TG1=${TGT:5:4};
TG2=${TGT:10:8};
TG3=${TGT:18};
echo $TG1 $TG2 $TG3;
2,133
Posted By skmdu
Solution using awk: $cat split.awk #!...
Solution using awk:


$cat split.awk
#! /usr/bin/awk

{
str="test -f file"$3;
print str
rval=system(str);
if (rval == 1){
str="echo "$0 "> file"$3
system(str);
}
else {...
15,415
Posted By skmdu
using sed, $ echo...
using sed,


$ echo "ABC.123.XYZ-A1-B2-P1-C4" | sed 's/\(.*\)-\(.*\)/\1 \2/'
Forum: Solaris 12-03-2009
5,263
Posted By skmdu
Hope this sed solution helps you, $ cat...
Hope this sed solution helps you,


$ cat t
google gooosdasasdgle derwsdfs
googsdfgle google sreogsds google gsdfsdfd
gooswoerjgle tosgsd towgsjsg googpoiwrwroiegle


$ sed '
s/^.*$/&\n/...
3,777
Posted By skmdu
Yes, $ cat t.pl open(FILE, $ARGV[0]) or...
Yes,

$ cat t.pl
open(FILE, $ARGV[0]) or die "$!";

while(<FILE>){
exit if /$ARGV[1]/;
print $_;
}

$perl t.pl filename string
3,777
Posted By skmdu
$perl -e 'while(<>){ exit if(/DISPLAY/); print...
$perl -e 'while(<>){ exit if(/DISPLAY/); print $_; }' < test


This perl one liner will print the lines from the file called test.. If it gets the string DISPLAY, it just exit from the...
2,404
Posted By skmdu
what does your program program_name_count_length...
what does your program program_name_count_length do?

If possible paste that script? It would be better to help you to edit your perl script.
2,404
Posted By skmdu
$cat test.pl #! /usr/bin/perl ...
$cat test.pl

#! /usr/bin/perl
open(FILE,$ARGV[0]) or die $!;

while(<FILE>){
chomp;
if (/>seq/){
$next=<FILE>;
chomp $next;
...
3,201
Posted By skmdu
When you execute a shell script it will fork a...
When you execute a shell script it will fork a process and it will do all the operation in that sub shell. So the current working directory will be changed
only in the sub shell, not in the parent...
5,186
Posted By skmdu
Try this, $sed -i '1!{/searchtext/!d}' ...
Try this,

$sed -i '1!{/searchtext/!d}' *.txt
4,053
Posted By skmdu
https://www.unix.com/shell-programming-scripting/12...
https://www.unix.com/shell-programming-scripting/124947-grep-multiple-patterns.html
11,704
Posted By skmdu
@rdcwayx, Can you please what is wrong in...
@rdcwayx,

Can you please what is wrong in that grep command ?

---------- Post updated at 03:10 AM ---------- Previous update was at 03:09 AM ----------

@rdcwayx,

Can you please tell,...
Showing results 1 to 25 of 138

 

Featured Tech Videos

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