Search Results

Search: Posts Made By: xoops
Forum: AIX 12-20-2011
8,532
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
15,825
Posted By xoops
try chlv -x <no of lps> <...
try

chlv -x <no of lps> < lvname>
Forum: AIX 09-26-2011
5,128
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
102,688
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,670
Posted By xoops
sed 's/\>.*contig=//;s/]//g' infile
sed 's/\>.*contig=//;s/]//g' infile
2,487
Posted By xoops
try this awk -F\= '{print $NF}' 123.txt
try this

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

lscfg -vp
87,324
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/
5,296
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,764
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,572
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,796
Posted By xoops
*/20 * * * * /opt/dev/go.sh
*/20 * * * * /opt/dev/go.sh
Forum: UNIX and Linux Applications 05-11-2011
24,981
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
12,418
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,861
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,466
Posted By xoops
If your grep supports -p flag. grep -vp...
If your grep supports -p flag.


grep -vp "sachin.com" inputfile
2,600
Posted By xoops
awk '{printf "%s ",$0 ;if($0~/[0-9]$/){print...
awk '{printf "%s ",$0 ;if($0~/[0-9]$/){print ""}}' inputfile
2,319
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}'
4,029
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 {} \;
3,359
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...
40,649
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 ?
1,044
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.
1,219
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
15,958
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,703
Posted By xoops
try sed -n '/NAME \="UNIX"/p'
try
sed -n '/NAME \="UNIX"/p'
Showing results 1 to 25 of 121

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