Search Results

Search: Posts Made By: SriniShoo
3,068
Posted By SriniShoo
If the files are in binary format or if they are...
If the files are in binary format or if they are encrypted, you can see them in binary...
for example, if you have the extension of a pdf or doc file to txt and try to open it using notepad, you...
3,068
Posted By SriniShoo
for i in...
for i in /aceapp/QATD011R4/ace.ofac/testofac/results/
do
uuencode ${i} ${i%.*}.txt
done > attach.out

mail -s "Summary Report" smawle@acesw.com < attach.out
2,557
Posted By SriniShoo
I know you have got your answer...but since I got...
I know you have got your answer...but since I got he code, I am posting here
awk '/\"NEW PRODUCT, VERSION 1[.]1\"/ {if(n) {l = l < n ? n : l; print "\"NEW PRODUCT, VERSION 1.1\""; print prod; print...
865
Posted By SriniShoo
include esac DB=$(expr substr $1 1 1) case...
include esac
DB=$(expr substr $1 1 1)
case $DB in
'B') DIR=/database/manufactuer
;;
'R') DIR=/database/retailer
;;
*) echo error
;;
esac
echo $DIR
2,557
Posted By SriniShoo
your item_list has "NEW ITEM, VERSION 1.1". If...
your item_list has "NEW ITEM, VERSION 1.1". If that is "NEW PRODUCT, VERSION 1.1", below code will give you the desired output
awk '/\"NEW PRODUCT, VERSION 1.1\"/ {if(n) {print "\"NEW PRODUCT,...
1,853
Posted By SriniShoo
try this awk '1' ORS='\r\n' | mailx -s "Sending...
try this
awk '1' ORS='\r\n' | mailx -s "Sending mail" mailed
code error in the above.
awk '1' ORS='\r\n' temp.txt | mailx -s "Sending mail" mailed
936
Posted By SriniShoo
Below code will suffice even if the records are...
Below code will suffice even if the records are missing from the top or bottom of the list
awk -F ':' '
BEGIN {
p = -1;
t = "00\t0"
}
{
p++;
if($1 + 0 != p) {
for(i = p; i < $1+0;...
1,335
Posted By SriniShoo
awk 'NR == FNR {a[$1] = $3; next} {print $1,...
awk 'NR == FNR {a[$1] = $3; next} {print $1, (a[$1] == "" ? "nomatch" : a[$1])}' file2 file1
1,466
Posted By SriniShoo
awk '/|014|/ {s = $0} END {print s}' logname.log
awk '/|014|/ {s = $0} END {print s}' logname.log
958
Posted By SriniShoo
#!/bin/ksh while read user do while read...
#!/bin/ksh
while read user
do
while read proj nm
do
echo "Delete user profile \"${user}\" FROM ${proj} ${nm}"
done < file2
done <file1 > OP1

Ignore this..I haven't seen the...
1,790
Posted By SriniShoo
Sorry! That was untested and there was a bug ...
Sorry! That was untested and there was a bug
try below
awk -F ';' '
FILENAME == ARGV[1] {A[$1] = ($2 ";" $3); next}
FILENAME == ARGV[2] {A[$2] = A[$2] == "" ? (";;" $1) : (A[$2] ";" $1);...
1,790
Posted By SriniShoo
awk -F ';' ' FILENAME == ARGV[1] {A[$1] = ($2...
awk -F ';' '
FILENAME == ARGV[1] {A[$1] = ($2 ";" $3); next}
FILENAME == ARGV[2] {A[$2] = A[$2] == "" ? (";;" $1) : (A[$2] ";" $1); next}
FILENAME == ARGV[3] {A[$1] = A[$2] == "" ? (";;;" $2...
1,624
Posted By SriniShoo
awk -F ',' '{gsub(/[^0-9]/, x, $1); print $1}'...
awk -F ',' '{gsub(/[^0-9]/, x, $1); print $1}' siva.txt
7,041
Posted By SriniShoo
if [ -d $dest_dir ]; then for FILE in `ls...
if [ -d $dest_dir ]; then
for FILE in `ls $src_dir{$fn,*/$fn}`
do
cp /home/oracle/arun/IRMS-CM/{$fn,*/$fn} /home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct
if [[ $? -eq 0 ]]; then
...
1,072
Posted By SriniShoo
remove the 'g' in your code sed...
remove the 'g' in your code
sed 's/entries/string/'
sed 's/C/string/'
1,494
Posted By SriniShoo
2 corrections... 1. open file for reading 2....
2 corrections...
1. open file for reading
2. doesn't match condition
open (INFO, "<temp.txt") or die;
while (<INFO>) {
if ($_ =~ /ipwr/) {
$pline = $_;
}elsif...
2,071
Posted By SriniShoo
awk -F ',' 'NR == 1{for(i=1; i<=NF; i++) a[$i] =...
awk -F ',' 'NR == 1{for(i=1; i<=NF; i++) a[$i] = i; next}
$0 ~ "^" proxy {print $(a[field])}' proxy="main,FRONTEND" field="slim" socat.txt
Forum: Red Hat 11-07-2014
1,471
Posted By SriniShoo
I dont think you can change a file to a directory...
I dont think you can change a file to a directory of vice versa.
you can create a directory with name 'maddy' and move the file into that with the below code
mv maddy maddy_01 && mkdir maddy && mv...
2,071
Posted By SriniShoo
awk -F ',' 'NR == 1{for(i=1; i<=NF; i++) a[$i] =...
awk -F ',' 'NR == 1{for(i=1; i<=NF; i++) a[$i] = i; next}
/^main,FRONTEND/ {print $(a["slim"])}
/^apache2,elb4/ {print $(a["ereq"])}' socat.txt
6,142
Posted By SriniShoo
awk '{a[$1] += $2; b[$1] += $3; c[$1] += $4;...
awk '{a[$1] += $2; b[$1] += $3; c[$1] += $4; d[$1] += $5; e[$1] += $6} END {for(x in a) print x, a[x], b[x], c[x], d[x], e[x]}' file

---------- Post updated at 09:50 AM ---------- Previous update...
6,789
Posted By SriniShoo
You are asing us to write the entire script ...
You are asing us to write the entire script
What have you tried?
what database are you inserting these details into?
2,142
Posted By SriniShoo
if each log record in spanned across multiple...
if each log record in spanned across multiple lines,
awk '/^[0-9][0-9][0-9][0-9]\/[0-9][0-9]\/[0-9][0-9] [0-9][0-9]:/ {print "\n" $0}' file.log | awk '/Exception/' RS=
4,707
Posted By SriniShoo
code fixed after exception is caught but before...
code fixed after exception is caught but before it is reported ;)
4,707
Posted By SriniShoo
could be because of size of int... awk 'NR ==...
could be because of size of int...
awk 'NR == FNR{a[$1]; next} {t=$3; sub(/^0*/, X, t)} !(t in a)' f1 FS=',' f2
Forum: What is on Your Mind? 10-08-2014
27,193
Posted By SriniShoo
Mark, highlight and make the answer appear just...
Mark, highlight and make the answer appear just below the question so that other users can easily find solution without having to look at entire post / multiple pages of the post and still not able...
Showing results 1 to 25 of 500

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