Search Results

Search: Posts Made By: sudhakarn
Forum: AIX 11-02-2012
9,797
Posted By sudhakarn
I'm unable to figure what mistake I did
Hi,

I'm unabel to figure our what is the mistake in the file or does it require any other action after amking the changes in syslog.conf.
Forum: AIX 10-29-2012
9,797
Posted By sudhakarn
syslog rotation problem
i have added below two lines in syslog.conf file. Is there anything wrong in the below lines?

*.info /var/adm/syslog rotate time 1d files 10
local0.debug ...
3,924
Posted By sudhakarn
Check what comparison operators bash has. is it =...
Check what comparison operators bash has. is it = or == or eq or -eq. Check the syntax in if line as well.
6,949
Posted By sudhakarn
ssh command in unix
what does -r option mean for ssh commad. what does below commad do?

ssh -r command
5,964
Posted By sudhakarn
#!/bin/sh
Why #!/bin/sh (the very first line of the script) is not treated as comment. Though it starts with #, which is meant for comment.
3,101
Posted By sudhakarn
3,101
Posted By sudhakarn
[Solved] su command
What's the behavoir of su command when it is invoked in each of the following form;
su
su -
su - someusername
5,245
Posted By sudhakarn
is it cat 'BACKUPFILES' or cat '$BACKUPFILES'
set BAKCUPFILES="/home/xyz/abc /home/xyz/prq"

use cat as mentoned above and check it.
1,180
Posted By sudhakarn
Use this logic
MINFLUX=$(awk -F" " '$1 >= 7116 && 7145 {print $2}' data_file | sort | head -1)

MAXFLUX=$(awk -F" " '$1 >= 6992 && 7096 {print $2}' data_file | sort | tail -1)
3,943
Posted By sudhakarn
What do you think of this logic?
i=1
while read num
do
echo "Tab$i $num \c"
read num
echo "$num"
i=$(($i+1))
done < file_containg_nums
Forum: Programming 05-27-2010
43,784
Posted By sudhakarn
cp creates another copy of the file on disk. On...
cp creates another copy of the file on disk. On the other hand mv renames the file. The original file gets a new name.

mv also used to move a file or set of files to a directory.
ex: mv *.c...
3,552
Posted By sudhakarn
resultingstring=$(echo $string | cut -d":" -f2) ...
resultingstring=$(echo $string | cut -d":" -f2)


say string="sumthing:nothing"

resultingstring will have "nothing".
50,763
Posted By sudhakarn
How does a line read from a file look like?
HI
i included as u said. But while reading itself, it is suppressing blank spaces more than one occurance to one. so i am getting wrong data. Please review my code


c_line="/apps/source.txt"...
4,942
Posted By sudhakarn
diff of CURWEEK & LASTWEEK should be 1
diff of CURWEEK & LASTWEEK should be 1
4,017
Posted By sudhakarn
Try this way
#!/bin/ksh
set -x
echo "Please enter file name:"
read Filename
echo "enter number of files to be created "
read created
i=1
while [ $i -le $created ]
do
mkdir $Filename$i
(( i++...
6,809
Posted By sudhakarn
How abt this code snippet
l=$(grep -n -N 1 "pattern" filename | cut -d":" -f1)
i -= 10
j += 10
sed -n "$j"p filename
sed -n "$i"p filename
Showing results 1 to 16 of 16

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