Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: anhtt
1,943
Posted By anhtt
Thanks for all friends I have a big text...
Thanks for all friends

I have a big text file that need to process.
As I know, awk is the best tool to process text file. That why I'm looking for someone help me. Because for a long time, about...
1,943
Posted By anhtt
awk script to count characters in file 1 in file 2
I need a scripting AWK to compare 2 files.

file 1 and 2 are list of keywords
1 is
a
b
c
d

2 is
aa
aaa
b
bb
ccc
d

I want the AWK script to give us the number of times every keyword...
1,345
Posted By anhtt
array on awk
I have a raw data file:
70,1,1,-53.25
70,1,1,,,,-57.50
70,1,1,,,,,,,,,,-48.00

I want to have a output file with the formatting below:
70,1,1,-53.25,,,,-57.50,,,,,-48.00


I mean if these...
Forum: Solaris 05-10-2008
9,407
Posted By anhtt
install and uninstall package
I'm a newcomer for Solaris.
I tried to install Net::FTP package ( a tool perl ) on our sun server 5.9.
We used the below command:
/usr/bin/perl MakeFilePL
make
make install

How can I...
14,912
Posted By anhtt
I tried use the backslash character. But the...
I tried use the backslash character. But the result is same.
I think my problem that beacause I telnet via 9023 port, so username and password is entered in the same row
"login username passwd"...
14,912
Posted By anhtt
continue perl telnet
I need to telnet to a sun servervia 9023 port.
Normally, I can telnet directly as below:
telnet 10.2.4.9 9023
Trying 10.2.4.9...
Connected to 10.2.4.9.
Escape character is '^]'.
900 Login...
18,487
Posted By anhtt
Now I have problem with sed command. I try...
Now I have problem with sed command.

I try to use sed command with option.
sed -f /tmp/delete EVDO_A12.users
So I can delete previous and next row. But the results only display on the screen....
6,810
Posted By anhtt
Hi all now my script is ok. But I have a...
Hi all
now my script is ok.
But I have a problem.
When I run the sed command:
sed -f /tmp/delete EVDO_A12.users

Everthing that changed only display on the screen. The input file...
18,487
Posted By anhtt
I wrote a script "deleteEVDO" name. I want to run...
I wrote a script "deleteEVDO" name. I want to run to command as below:
./deleteEVDO MIN

From the "MIN" variable, I want to search "MIN" in a EVDO_A12.users file.
If a row has the MIN variable,...
18,487
Posted By anhtt
It cann't work.
It cann't work.
18,487
Posted By anhtt
sed command to delete row
I want to use sed command to delete a matched row with a pattern.
And I also want to delete previous and next row of that row.
Which option can I use with sed ?
Forum: Solaris 04-03-2008
2,529
Posted By anhtt
I think you were confused. gzexe is used to...
I think you were confused. gzexe is used to compress files.
Forum: Solaris 04-02-2008
2,529
Posted By anhtt
encode script
I wrote some script files. And I want to encode these scripts.
I try to use "crypt" command to encode them.
But after that, the encoded script files couldn't execute.

Who has any another way ?
13,310
Posted By anhtt
global variable in awk
I wrote a awk script file and define some global variables after BEGIN option:
BEGIN {
cell = "";
alarm = "";}

when i run the command:
awk -f awk_script inputfile
The results are as...
4,288
Posted By anhtt
awk continue
I want to print entire row of file

awk '{print $0}' inputfile

but sometime before every row have space characters. Example:
" HVLR is not in service on AP 54"

How can i print entire row...
1,802
Posted By anhtt
count times for one string
I have a file. I want to count the time for one string appears in this file
Example:
56
73
34
79
90
56
34

Expected results
2:56
1:73
2:34
1,489
Posted By anhtt
I've already told In the "alrm" file (...
I've already told

In the "alrm" file ( output file ), I only get one row for results. I mean I only get data for last event.

55 OFF ALARM: RECTIFIER MINOR ALARM
1,489
Posted By anhtt
awk help
I have a raw data with some formats:

* 11 REPT:CELL 55 ASSEMBLAGE 1 ALARM SCANNING
SCAN POINT: ALARM GROUP 2, ALARM ID 11
ALARM: RECTIFIER MINOR ALARM
STATE: OFF NORMAL

11...
46,932
Posted By anhtt
Awk: different between NR and FNR
As I know:

FNR: The ordinal number of the current record in the current file.

NR: The ordinal number of the current record from the start of input.

I don't understand really...
Forum: Solaris 12-14-2007
12,247
Posted By anhtt
change time
The time of our Solaris server now is slowly more 20 seconds.
How can we change it ?
18,808
Posted By anhtt
try to use this code #!/bin/ksh a=`date...
try to use this code

#!/bin/ksh
a=`date +"%b %d"`
ps -ef | grep root | grep "$a"
2,410
Posted By anhtt
grep -v "^BTS" input_file > ouptput_file ...
grep -v "^BTS" input_file > ouptput_file
grep "^BTS" input_file >> output_file
7,143
Posted By anhtt
This is my script code It's very simple shell...
This is my script code
It's very simple shell script

cut -f2 -d";" $1 > /tmp/mdn1
sort /tmp/mdn1 | uniq -d > /tmp/mdn2
cat /tmp/mdn2 | while read line;
do
echo $line > /tmp/mdn3
x=`cut -f1...
7,143
Posted By anhtt
Extract duplicate fields in rows
I have a input file with formating:

6000000901 ;36200103 ;h3a01f496 ;
2000123605 ;36218982 ;heefa1328 ;
2000273132 ;36246985 ;h08c5cb71 ;
2000041207 ...
Showing results 1 to 24 of 24

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