Search Results

Search: Posts Made By: lestat_ecuador
1,862
Posted By lestat_ecuador
Thank you so much zxmaus... it helps me!!!
Thank you so much zxmaus... it helps me!!!
1,862
Posted By lestat_ecuador
What if no one exist? just create the one i need?
What if no one exist? just create the one i need?
1,862
Posted By lestat_ecuador
Question about crontab
Hello guys,
I have a server with Red Hat Enterprise Linux AS release 4 (Nahant Update 5), there i have a lot of users, im the root. I need to lock the use of crontab to the users, i mean, i dont...
1,362
Posted By lestat_ecuador
Thanx vgersh99 but my lines are words like: ...
Thanx vgersh99 but my lines are words like:
-----------------
I am
You are
he is
-----------------
she is
it is
-----------------

And your script insert '|' in each space between words, i...
1,362
Posted By lestat_ecuador
Help working with lines
Hello guys,

I have a little problem, i already have a txt file like:


-------------------
1
2
3
-------------------
2
3
4
5
-------------------
2
3
4
2,465
Posted By lestat_ecuador
How to know the i/o of a process
Hello guys, i need to know how much i/o have a process?, for example when y use the command 'top' i have the i/o value in general of all process but i need to know only the i/o measure of a...
2,555
Posted By lestat_ecuador
Great asnwer, thanx!!!
Great asnwer, thanx!!!
2,555
Posted By lestat_ecuador
Simple question
I had a script in solaris wich i read data, for example:


Number 1: _


and the cursor use to be in '_' place because in the code of the script i write:


echo "Number 1:\c"


but i copy...
1,511
Posted By lestat_ecuador
Sorry, here the right example: row of file1:...
Sorry, here the right example:

row of file1: 2623559
match with a row in file2:"53382743","6600000000002623559",30,2
so this row will be writed on file3: "53382743","6600000000002623559",30,2
1,511
Posted By lestat_ecuador
Problems comparing files
Hello guys,

I have another problem, let me try to explain, i have two files:

cat file1
2623559
2623562
2623565
2623568
2619503

cat file2
"53382743","6600000000000256053",30,2...
4,863
Posted By lestat_ecuador
Thanx radoulov, your code works: nawk...
Thanx radoulov, your code works:


nawk 'NR==FNR{_[$0];next}!($0 in _)' file1 file2 > file3


Thanx again. :b:
4,863
Posted By lestat_ecuador
Workaround
I'm already use this script:


for i in `cat file1`
do
grep $i file2|| echo "$i" >> file3
done


but my file1 and and file2 are soo big, like 200.000 rows, it is taking toom uch time...
4,863
Posted By lestat_ecuador
It doens't work, i have the following error: ...
It doens't work, i have the following error:


awk ' FILENAME=="Para_Pata.txt" {arr[$0]++}
> FILENAME=="Total.txt" {
> if( ! $0 in arr) {print $0}
> continue;...
4,863
Posted By lestat_ecuador
Doesn't work
I have my files in:
SunOS 5.8 Generic_117350-38 sun4u sparc SUNW,Sun-Fire-15000

the command "grep -vxf" doesn't work.
4,863
Posted By lestat_ecuador
Comparing files
Hello guys,

I have a little problem, i have my file1 and file2, they have:


cat file1
10
11
12
13
14
15

cat file2
10
12
13
15
15,385
Posted By lestat_ecuador
Try to go to /tmp and do ls -ltr cron* ...
Try to go to /tmp and do


ls -ltr cron*


Then will appear kind a history of the cron, see the creation dates an look into the one you want. For example I have:


usuario: > cd /tmp/...
Forum: Solaris 07-28-2008
4,255
Posted By lestat_ecuador
Problems with rsh command
Hello guys, I have a script in a Linux server, from where I go to 3 Sun servers and run process.
Now i have done an upgrade and increase 1 Sun server more, now i need to run the shell in the Linux...
6,676
Posted By lestat_ecuador
Thanx that really works
Thanx that really works
6,676
Posted By lestat_ecuador
how to run multiple process at the same time
Hello guys,

Look what im doing:

I need to run a process from a SERVER1 to SERVER2, SERVER3 and SERVER4.

The shell of the process is in each SERVER (2 to 4)

So from SERVER1 i do:

for i...
1,951
Posted By lestat_ecuador
Finding files
Hello guys,

Please your help, i need to find all the files writed in the last 5 minutes, but without create another file using touch (like im doing right now):

I am doing this:

anio=`date...
3,056
Posted By lestat_ecuador
Answer
Ok i got it, the command is:

LINEA=20
sed -n ''"$LINEA"',$p' file

Now i have another problem, i need to specify the file from a variable, i mean' i have the name of the file that i want to sed...
3,056
Posted By lestat_ecuador
Thanx
Thanx sudhamacs , however, i need to set the start line (in this case 200) by paramether, i mean, i have the number of line to start my search in a variabla names LINEA, but there is an error if i...
3,056
Posted By lestat_ecuador
Problems while read a file
Hello guys, i need your help, let me try to explain what i need:

I have a file (plain text) for example with 500 lines, i need to read only from the line 200 until the end of file, and serch the...
55,050
Posted By lestat_ecuador
How to merge files
Hello guys,

I gotta question, i have a lot of log files (simple text) and i need to merge them in group of 10 files, one next to the other, that have sense?

For example, i have the files:
...
3,636
Posted By lestat_ecuador
Solution
Nobody answer me in 7 hours :( but I finaly made it!!!! here is my solution:


cat $1 | \
while read line
do
awk '{ if (substr($line,34,3) == "CRE") print '2'...
Showing results 1 to 25 of 28

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