Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: xoops
Forum: AIX 12-20-2011
7,518
Posted By xoops
try starting another sshd on different ununsed...
try starting another sshd on different ununsed port for your testing


/usr/sbin/sshd -v -p 9999
Forum: AIX 10-13-2011
13,899
Posted By xoops
try chlv -x <no of lps> <...
try

chlv -x <no of lps> < lvname>
Forum: AIX 09-26-2011
4,591
Posted By xoops
/FHP_RPT/user/fhp_support/ssh2/ID_DSA_1024_A..pub...
/FHP_RPT/user/fhp_support/ssh2/ID_DSA_1024_A..pub

Seems to be SSH2 so the public key would go in .ssh2 folder in file "authorization" instead of .ssh
82,426
Posted By xoops
awk 'NR==FNR{a[i++]=$0;next}{print a[j++],$0}'...
awk 'NR==FNR{a[i++]=$0;next}{print a[j++],$0}' file1 file2
1,387
Posted By xoops
sed 's/\>.*contig=//;s/]//g' infile
sed 's/\>.*contig=//;s/]//g' infile
1,892
Posted By xoops
try this awk -F\= '{print $NF}' 123.txt
try this

awk -F\= '{print $NF}' 123.txt
Forum: AIX 06-17-2011
3,772
Posted By xoops
try lscfg -vp
try

lscfg -vp
75,667
Posted By xoops
try this find /interface/outbound/Web -type...
try this

find /interface/outbound/Web -type f -ctime -1 | xargs -ILIST scp LIST user@$destination_server:/destination_directory/
3,883
Posted By xoops
try this awk '{w=w+NF};END{print "words...
try this

awk '{w=w+NF};END{print "words "w"\nLine "NR}'
4,257
Posted By xoops
try this #!/us/bin/ksh IFS=' ' for...
try this

#!/us/bin/ksh
IFS='
'
for line in `cat filename`; do
if [[ $(echo $line | wc -w) -eq 1 ]]; then
echo $line
fi
done
4,099
Posted By xoops
sed 's/\( *\)\([0-9][0-9]*$\)/=\2/' inputfile >...
sed 's/\( *\)\([0-9][0-9]*$\)/=\2/' inputfile > outfile
Forum: AIX 05-11-2011
2,322
Posted By xoops
*/20 * * * * /opt/dev/go.sh
*/20 * * * * /opt/dev/go.sh
Forum: UNIX and Linux Applications 05-11-2011
23,810
Posted By xoops
On Main screen of of putty(before starting a...
On Main screen of of putty(before starting a connection), you can select the option to "Close window on exit" to "never"
Forum: Solaris 03-31-2011
10,978
Posted By xoops
looks like transfer.sh contains the sftp command...
looks like transfer.sh contains the sftp command which are to be used by sftp in batch mode.
Variables in tranfer.sh will not be expanded as sftp would treat this as text file with the list of...
4,248
Posted By xoops
try this for file in Folder1/*;do ...
try this


for file in Folder1/*;do
f=$(basename $file);
test -f Folder2/$f || cp $file Folder2/;
test -f Folder3/${f}_SOMETHING || cp $file Folder3/${f}_SOMETHING ;
done
2,035
Posted By xoops
If your grep supports -p flag. grep -vp...
If your grep supports -p flag.


grep -vp "sachin.com" inputfile
2,095
Posted By xoops
awk '{printf "%s ",$0 ;if($0~/[0-9]$/){print...
awk '{printf "%s ",$0 ;if($0~/[0-9]$/){print ""}}' inputfile
2,051
Posted By xoops
try this find . -xdev -ls|awk...
try this


find . -xdev -ls|awk 'BEGIN{d=0;f=0;}$3~/^d/{d++;}$3~/^-/{f++;}END{printf "Dir: %d\nFiles: %d\n",d,f}'
3,232
Posted By xoops
can be done with 1 find command find...
can be done with 1 find command


find /home/somefolder/pids -maxdepth 1 -type f -name "*.pid" -amin +40 -exec rm {} \;
2,726
Posted By xoops
You can do something similar to following, this...
You can do something similar to following,
this is from the logrotate man page:


# sample logrotate configuration file
compress
/var/log/messages {
rotate 5...
8,079
Posted By xoops
@j_panky Please clarify if 1.DE.1.TXT is...
@j_panky
Please clarify if

1.DE.1.TXT is a 1 file
or 2 files 1.DE & 1.TXT
or 1 file DE.1.TXT

so in this case

its 4 .TXT + 1 Fe.ok
or 4 .DE + 4 .TXT + 1 Fe.ok ?
786
Posted By xoops
See if you can make use of excel "text to column"...
See if you can make use of excel "text to column" from data menu.
965
Posted By xoops
try, awk '!/^#/{if(a!=""){print a" "b" "$2"...
try,

awk '!/^#/{if(a!=""){print a" "b" "$2" "c}a=$1;b=$2;c=$3;}END{print a" "b" etc "c}' inputfile > outfile
14,275
Posted By xoops
not sure if it helps, look for any hidden...
not sure if it helps,

look for any hidden character in the line.
if you have copy-pasted the script/line then then try to re-type it
1,426
Posted By xoops
try sed -n '/NAME \="UNIX"/p'
try
sed -n '/NAME \="UNIX"/p'
Showing results 1 to 25 of 121

 

Featured Tech Videos

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