Search Results

Search: Posts Made By: Makarand Dodmis
7,101
Posted By Makarand Dodmis
try $ header=`cut -c1-160 t.dat | head -1` $...
try
$ header=`cut -c1-160 t.dat | head -1`
$ echo "$header"
Company 001.239879123.OB1X.672W12.STS UNOLD.001.02
2,751
Posted By Makarand Dodmis
your problem solved... tryvar=$(grep somestring...
your problem solved...
tryvar=$(grep somestring somefile) && [[ ! -z "${var}" ]] && echo "${var}"|mailx -s "Found something" email@mycomp.com
Courtesy : Pilnet
4,543
Posted By Makarand Dodmis
then like this .. will it?awk '{print > $3".txt";...
then like this .. will it?awk '{print > $3".txt"; close($3".txt")}' file
4,543
Posted By Makarand Dodmis
tryawk '{print > $3".txt"}' filename
tryawk '{print > $3".txt"}' filename
3,127
Posted By Makarand Dodmis
Buddy try[Makarand] # nawk -v var=`pwd` '{ if...
Buddy
try[Makarand] # nawk -v var=`pwd` '{ if ($0 ~ /^case_OM/) gsub($2,var,$0); { print $0 }}' FS="'" linux
hello
case_OM = PV4Reader( FileName='/hww/appl/test/testv/bin/mak_test' )
sdsdsd s1
...
2,474
Posted By Makarand Dodmis
trysalida=`echo $var | cut -d "." -f 1`
trysalida=`echo $var | cut -d "." -f 1`
4,555
Posted By Makarand Dodmis
tryfor subdir in mon tue wed thu fri sat do ...
tryfor subdir in mon tue wed thu fri sat
do
if [[ -e ${DIR}/${subdir}/loaded ]]
then
cd ${DIR}/${subdir}/loaded
cp *.* ${DIR}/${subdir}
echo "Files of ${subdir}day are Copied"
cd ${DIR}
fi...
1,033
Posted By Makarand Dodmis
trynawk '{if ($6 != "0" && $6 && $6 != "COL5" &&...
trynawk '{if ($6 != "0" && $6 && $6 != "COL5" && $6 != "----") {gsub($6"$","NA",$0)}; { print $0}}' input.txt
990
Posted By Makarand Dodmis
fi was missing tryif [ -f...
fi was missing
tryif [ -f "${x}"_"${y}"_abc_pqr.dat ]; then
rm -rf "${x}"_"${y}"_abc_pqr.dat
fi
911
Posted By Makarand Dodmis
try#!/bin/ksh x=1 while [ $x -le 4 ] do ...
try#!/bin/ksh
x=1
while [ $x -le 4 ]
do
rm -rf $x
x=$(( $x + 1 ))
done
replace 4 by number of dirs you have.
1,985
Posted By Makarand Dodmis
As your input 2014-08-18 17:18:07 already...
As your input 2014-08-18 17:18:07 already contains space .. you are getting that ouput
I have added pipe delimeter to your input file$ more file1.txt
'2014-08-18 17:18:07'|'2014-08-18 16:10:01'

...
3,203
Posted By Makarand Dodmis
You can acces the folder from you machine as...
You can acces the folder from you machine as follows

Go to Start
Go to Run
put \\Shared_folder and Enter
Here "Shared_folder" is your shared foldername.

To check whether both Machines are...
3,203
Posted By Makarand Dodmis
1) Right click on The folder u want to access ...
1) Right click on The folder u want to access
2) Click on sharing and security
3) Click on share this folder
4) Click Maximum allowed or Number of users allowed
5) Click on Permissions to give...
1,612
Posted By Makarand Dodmis
Buddy trytr ',' '\t' < mak.txt > mak.xls Here...
Buddy
trytr ',' '\t' < mak.txt > mak.xls
Here delimeter is comma..change the command if your delimeter id different
1,612
Posted By Makarand Dodmis
Hi Mate tryperl -MPOSIX -le 'print strftime...
Hi Mate
tryperl -MPOSIX -le 'print strftime "%Y_%m_%d", localtime(time + 86400)'
1,612
Posted By Makarand Dodmis
try#tomorrow perl -e 'print scalar...
try#tomorrow
perl -e 'print scalar localtime(time + 86400), "\n";'
#2nd day or day after tomorrow
perl -e 'print scalar localtime(time + 86400*2), "\n";'
#3rd day from today
perl -e 'print...
2,073
Posted By Makarand Dodmis
tryvar="100234 XHYSDDS SDSD" nawk -v var="$var"...
tryvar="100234 XHYSDDS SDSD"
nawk -v var="$var" 'BEGIN { for ( i = 1; i <=1000000; i++ ) { print var}}'
1,496
Posted By Makarand Dodmis
trydos2unix update.sh update.shthen run the...
trydos2unix update.sh update.shthen run the scriptupdate.sh 1
2,383
Posted By Makarand Dodmis
tryvar=`expr $(wc -l < filename) / 2`
tryvar=`expr $(wc -l < filename) / 2`
2,383
Posted By Makarand Dodmis
yeah something likevar=`expr $(cat filename| wc...
yeah something likevar=`expr $(cat filename| wc -l) / 2`
tail -$var filename> newfile
mv newfile filename
3,001
Posted By Makarand Dodmis
Finaly got it :)nawk 'NR == FNR{ if($2 == "N")...
Finaly got it :)nawk 'NR == FNR{ if($2 == "N") a[$1]; next} {t = $2; if(!(t in a)) print}' FS='|' file1 file2
1,819
Posted By Makarand Dodmis
Dosqlplus -s /nolog << EOF spool error.log ...
Dosqlplus -s /nolog << EOF
spool error.log
whenever sqlerror exit sql.sqlcode
@$HOME_DIR/connect.sql
whenever sqlerror exit sql.sqlcode
@$SQL_FILE
spool off;
EOF
1,542
Posted By Makarand Dodmis
tryprtconf | awk '/^System Model/ {print "System...
tryprtconf | awk '/^System Model/ {print "System Model:" $2}' FS=','
6,104
Posted By Makarand Dodmis
He wants all line below pattern "file3" by your...
He wants all line below pattern "file3" by your code it is displaying "file3" as well
7,026
Posted By Makarand Dodmis
doFOLDER_CHECK=`sqlplus -s uname/pwd@sid <<EOF ...
doFOLDER_CHECK=`sqlplus -s uname/pwd@sid <<EOF
set echo off
set heading off
set feedback off
select subj_name
from subject
where subj_name=$FOLDER_NM;
exit
EOF`
Showing results 1 to 25 of 62

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