Search Results

Search: Posts Made By: webkid
Forum: Solaris 04-04-2011
48,161
Posted By webkid
Enable FTP for root user in Solaris 10
I am not able to get ftp working for Solaris 10 for root user. I am getting login failed error.
331 Password required for root.
Password:
530 Login incorrect.
Login failed.

Tried following...
1,415
Posted By webkid
Do not forget that the variables are case...
Do not forget that the variables are case sensitive.

Following are recommended changes to your script:

STOREIP=$(host $line)
if [[ $STOREIP != *bot* ]
4,500
Posted By webkid
Great. Thanks for your help.
Great. Thanks for your help.
4,500
Posted By webkid
nawk works. However, what should I use If I have...
nawk works. However, what should I use If I have to use $2 instead of ++c.


awk '/^----/ {f="file"$2".txt"}?{print $0>f}' /tmp/tt

instead of

awk '/^----/{f="file"(++c)".txt"}c{print$0>f}'...
3,576
Posted By webkid
This is the way you do it for /bin/sh if it...
This is the way you do it for /bin/sh

if it is some other shell (ksh,bash) you may use source command.
1,674
Posted By webkid
echo "123, abx'" |sed s/\'//g to reverse it ...
echo "123, abx'" |sed s/\'//g
to reverse it

echo "123, abx" |sed s/abx/\'abc/g

just remove ' before s and next to g
3,576
Posted By webkid
Modify "test" file to test: #!/bin/sh ...
Modify "test" file to


test:
#!/bin/sh
. ./profile
echo $NAME
9,419
Posted By webkid
VAR=$(ls -tr|tail -1)
VAR=$(ls -tr|tail -1)
4,500
Posted By webkid
I am getting following error. # awk...
I am getting following error.

# awk '/^----/{f="file"(++c)".txt"}c{print$0>f}' /tmp/tt
awk: syntax error near line 1
awk: bailing out near line 1

Please use code tags
4,500
Posted By webkid
Thanks for the reply. This seems to be working...
Thanks for the reply. This seems to be working great on small files. However, I am seeing following problem with a big file.

# awk '/^----/ {print $2}' testy
Port
RG
LU
# awk '/^----/...
3,291
Posted By webkid
This is what I will do: df -k /home/* | grep -v...
This is what I will do:
df -k /home/* | grep -v "Filesystem"|awk '{print $3, $4, $1}' > dfcap.txt

echo -n "Enter the size (in kilobytes) you wish to check against all user capacities: "
read cap...
2,431
Posted By webkid
LINE="AX80633030PHLIAD20209 1010104711411153 ...
LINE="AX80633030PHLIAD20209 1010104711411153 0054 000050000 11 PHLIAD1013112320100134-0003+003007000103+0033ER4ER4037012 N835HK0698D7 A2 A2E ...
4,500
Posted By webkid
Splitting a file based on context.
I have file as shown below. Would like to split the file based on the context of data.
Like, split the content between "---- XXX Info ----" and "
---- YYY Info ----" to a file.

When I try using...
Showing results 1 to 13 of 13

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