Search Results

Search: Posts Made By: k_manimuthu
22,949
Posted By nezabudka
Hi Any open file in "vim" generates a "swap"...
Hi
Any open file in "vim" generates a "swap" file. This is of course a band-aid
ex -rnes +wq /tmp/.xxx0000.txt.swp

--- Post updated at 12:00 ---

So it will be more correct
ex -rns +wq...
19,138
Posted By hergp
%5dn prints the line number with a standard...
%5dn prints the line number with a standard printf like format of %5d (numeric, 5 characters wide with leading blanks).

< or > are literal strings.

%L is substituted by the line content.
...
19,138
Posted By hergp
Or maybe this? file1: one two three ...
Or maybe this?

file1:
one
two
three
file2:
one
two
four
and
$ diff --old-line-format="%5dn< %L" --new-line-format="%5dn> %L" --unchanged-line-format="" file1 file2
3< three
3>...
19,138
Posted By RudiC
Not clear! But, mayhap, diff -y file1.txt...
Not clear! But, mayhap, diff -y file1.txt file2.txt --width=300 | nl > diff_f1_f2_300.txt ?
1,734
Posted By drl
Hi. Some possibilities: Difference,...
Hi.

Some possibilities:
Difference, similarity, compare

1) diff, standard

2) cmp, standard

3) dwdiff, cdif (local), word differences

4) cmptree...
1,734
Posted By wbport
Also there is "diff -b" if you don't care about...
Also there is "diff -b" if you don't care about tabs, spaces, or trailing spaces not being the same in both files.
For the 2nd part you can create a file with the HEAD thru BODY start and another...
2,638
Posted By RavinderSingh13
Hello k_manimuthu, As you have mentioned...
Hello k_manimuthu,

As you have mentioned that only .frm and .ibd files only be present in your directory, then following may help you in same.

ls -lhtr | awk '{A=$NF;sub(/\..*/,X,A);if($NF ~...
1,547
Posted By ygemici
for SDIR in $(eval $CMD); do echo ....; done
for SDIR in $(eval $CMD); do echo ....; done
4,603
Posted By wabard
I note a lot of people use xargs (quite...
I note a lot of people use xargs (quite useful)... however, the find command has a -exec option which seems to not be very popular (I use it all the time :cool:)


find DIR -name '*.sh' -exec...
4,603
Posted By yazu
find DIR -name '*.sh' | xargs chmod 755
find DIR -name '*.sh' | xargs chmod 755
11,415
Posted By itkamaraj
try this... ip_addresss=`/sbin/ifconfig -a |...
try this...

ip_addresss=`/sbin/ifconfig -a | awk ' /inet.*broadcast/ "{print $2}"'`
23,947
Posted By zaxxon
If field 2 in last line is N: awk 'NR>5 &&...
If field 2 in last line is N:

awk 'NR>5 && $2 !~ /^N$/ {printf("processing %s ...\n", $2)}' infile
processing 6 ...
processing 7 ...
processing 8 ...


If it doesn't matter/is dynamic what...
23,947
Posted By ahamed101
Try this awk 'NR > 5 {arr[i++]=$2}...
Try this


awk 'NR > 5 {arr[i++]=$2} END{for(j=0;j<i-1;j++){print "processing "arr[j] "\t..."}}' file
regards,
Ahamed
Forum: Solaris 04-28-2011
18,585
Posted By jlliagre
You can compile unrar from its source code: ...
You can compile unrar from its source code:
http://www.rarlab.com/rar/unrarsrc-4.0.7.tar.gz
or find binaries for Solaris SPARC here:
WinRAR archiver, a powerful tool to process RAR and ZIP files...
15,860
Posted By rdcwayx
txt="myfile.txt" for file in *.tar do ...
txt="myfile.txt"

for file in *.tar
do
c=$(tar tvf $file |grep $txt)
if [[ $c != "" ]]
then
echo "$file has the file with name $txt"
echo $c
fi
done
15,860
Posted By rdcwayx
find . -type f -name "*.tar" -exec tar tvf {} \;...
find . -type f -name "*.tar" -exec tar tvf {} \; |grep "myfile.txt"
15,860
Posted By zaxxon
Example for all tar archives in the current...
Example for all tar archives in the current directory (not recursive)


for f in *.tar; do
tar -tvf $f | grep 'myfile.txt'
done


Recursive:

find . -type f -name "*.tar"| xargs -I {}...
11,945
Posted By methyl
What Operating System and version you you have? ...
What Operating System and version you you have?
What Shell do you use?

Do you have the "pax" command? It's a program which can read "tar" archives.

What was the command used to create the...
3,640
Posted By Scrutinizer
p="", i=0, m=0 "" != "CR124" {i=1,p="CR124"} ...
p="", i=0, m=0
"" != "CR124" {i=1,p="CR124"}
A[1]=A[1]"CR124 1320" FS} # result first time: A[1]="CR124 1320 "
2>0{m=2}
END {for(i=1,1<=1;i=2) print A[1]}

---------- Post updated at 14:49...
2,262
Posted By panyam
Updated my previous statement,pls have a look.
Updated my previous statement,pls have a look.
2,262
Posted By panyam
tar -cvf inst.tar Linux | awk '{ print...
tar -cvf inst.tar Linux | awk '{ print "Processing "$0 " My End info"}'
6,234
Posted By rbatte1
You would be best to look at the output from...
You would be best to look at the output from netstat (and the man pages) and also a read through /etc/services for registered ports on your server.



Does that help?





Robin
Showing results 1 to 22 of 22

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