Search Results

Search: Posts Made By: kmuthu_gct
1,275
Posted By kmuthu_gct
Try this following: flag=0; while read...
Try this following:


flag=0;
while read line;
do

if [[ $flag -eq 1 ]];
then
echo $line | grep -qv "stop"
if [[ $? -eq 0 ]];
then
...
3,648
Posted By kmuthu_gct
Please give the error you're seeing in console....
Please give the error you're seeing in console. It will be useful to understand the issue rather reading ur script code.
1,238
Posted By kmuthu_gct
ksh not found means, ksh shell is not available...
ksh not found means, ksh shell is not available for execution. What is the first line in the script (seabang operator like #!). Check whether that binary is available else use available shell binary...
18,655
Posted By kmuthu_gct
Try this. [muthuk@nexthallwhen-dx tmp]$...
Try this.


[muthuk@nexthallwhen-dx tmp]$ cat file.txt
qq ww rr tt ee ff
qq ww rr tt ee ff
[muthuk@nexthallwhen-dx tmp]$ cat file1.txt
aa
aa
[muthuk@nexthallwhen-dx tmp]$...
4,384
Posted By kmuthu_gct
Try the following: print "\nPlease enter...
Try the following:


print "\nPlease enter your name and marks :";

open (OUTFILE, ">>report");

$name = <STDIN>;
$mark = <STDIN>;
chomp ($name);
chomp ($mark);
print OUTFILE
$abc =...
5,258
Posted By kmuthu_gct
Second cut delimiter column # is wrongly put as 5...
Second cut delimiter column # is wrongly put as 5 instead of 2.

get_input_file()
{
FILE=$1
echo $FILE
TYPE=`echo $FILE | cut -d "_" -f 3`
echo "Type is $TYPE"
EXTN=`echo $FILE | cut -d "."...
2,649
Posted By kmuthu_gct
Extend the working version of your command of ...
Extend the working version of your command of

echo `grep -i ${name} ${FILENAME} | sort -t'_' -k2,2 -n | tail -1`

echo `grep -i ${name} ${FILENAME} | sort -t'_' -k2,2 -n | tail -1 | awk '{...
Showing results 1 to 7 of 7

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