Search Results

Search: Posts Made By: jstrangfeld
1,622
Posted By jstrangfeld
Add missing times
Not sure about the title if someone has a better name for it please lemme know and I will edit the title.

I have several (10+ files) which look something like:


File 1:
12/28/2009 04:0 8...
4,812
Posted By jstrangfeld
anything keeping you from doing your find and...
anything keeping you from doing your find and doing a |grep -v on whatever you want to exclude?
Or alternatively |grep ".txt"
8,376
Posted By jstrangfeld
Misread your post, I thought you wanted to get...
Misread your post, I thought you wanted to get rid of the double quotes around the value as well, since it appears you don't want to do that, this should do the job:

sed 's/.*=\(.*\)/\1/' <...
13,285
Posted By jstrangfeld
Hmmm would that not break though if for instance...
Hmmm would that not break though if for instance file 1 would be:

a b f z

and file 2

a f y x z

I am guessing it would catch the a's but the f's and z's are in different positions?
...
13,285
Posted By jstrangfeld
Wouldn't that only show the first field?
Wouldn't that only show the first field?
13,285
Posted By jstrangfeld
$ NEWVAR=`echo $(for i in $CARS $FMSA; do echo...
$ NEWVAR=`echo $(for i in $CARS $FMSA; do echo $i; done |sort |uniq)`

$ echo $NEWVAR
a b c d e f g q r s


There are probably easier ways to do it.
8,376
Posted By jstrangfeld
cat filename |sed 's/.*="\(.*\)".*/\1/' >...
cat filename |sed 's/.*="\(.*\)".*/\1/' > output.txt
4,347
Posted By jstrangfeld
Exchanging ssh keys is not an option?
Exchanging ssh keys is not an option?
40,100
Posted By jstrangfeld
Wow quite interesting results. Wonder if its some...
Wow quite interesting results. Wonder if its some oddity because I am running this in cygwin. I am using a centrino2 vpro2

I changed the 3 scripts to use $1 instead of a read and the times...
40,100
Posted By jstrangfeld
I guess recursion is a requirement? It sure seems...
I guess recursion is a requirement? It sure seems inefficient.

Your script using recursion:

$ time ./fibo2.sh
Enter the number of term : 10
0 1 1 2 3 5 8 13 21 34 55

real 0m14.875s...
2,508
Posted By jstrangfeld
You could also do: grep -q -w "^$index"...
You could also do:


grep -q -w "^$index" $HOME/UnixCw/backup/Path.txt

if [ ! $? = "0" ]
then
#dowhatever
fi


If your grep finds the string the exit status will be 0 and you can...
21,252
Posted By jstrangfeld
So I guess I must be misunderstanding you or can...
So I guess I must be misunderstanding you or can you please try to describe in another way.

What I assume by reading the above statement is that you have a simple text file which has line items...
21,252
Posted By jstrangfeld
Might not understand this correctly, but what...
Might not understand this correctly, but what keeps you from doing:



awk -F= '{print $NF}' <yourinputfile>
Forum: Infrastructure Monitoring 12-05-2009
7,262
Posted By jstrangfeld
If I recall right you can do a rpm -ivh...
If I recall right you can do a


rpm -ivh <rpm> <rpm> <rpm> .....


In other words put all the interdependent rpm's on one line.

Good luck
23,084
Posted By jstrangfeld
I am new to the forum so I was browsing some of...
I am new to the forum so I was browsing some of the old threads, I noticed this post and unless this works differently in the shell you are using the above quote is incorrect. Maybe it was just an...
11,820
Posted By jstrangfeld
<your command>|sed 's/\:/ /g'
<your command>|sed 's/\:/ /g'
5,683
Posted By jstrangfeld
Not aware of any generic way. dmidecode, mpstat,...
Not aware of any generic way. dmidecode, mpstat, cat /proc/cpuinfo, ioscan |egrep -i processor, hmm don't recall AIX. many different versions of unix,- many different ways, "top" may be fairly...
10,697
Posted By jstrangfeld
more foo "TEST1234", " test desc" "TEST12", "...
more foo
"TEST1234", " test desc"
"TEST12", " test desc"
"TABC123", " test desc"
"TBC", " test desc"
"12345", " test desc"
root@foo:/tmp/js# cat foo |egrep -w "TEST12"
"TEST12", " test desc"
1,642
Posted By jstrangfeld
hmmm, easiest I think would be ls -l *.out...
hmmm, easiest I think would be

ls -l *.out |sort -nk9
1,545
Posted By jstrangfeld
Hmm. Why not use rsync? ...actually read to...
Hmm. Why not use rsync?

...actually read to much into this as I assumed a remote server....
4,495
Posted By jstrangfeld
Well glad to see I am not alone. Anyone else have...
Well glad to see I am not alone. Anyone else have any thoughts / suggestions where to go from here?
4,495
Posted By jstrangfeld
ps showing inconsistent process start time
Not sure if it makes a difference but "foo" is a java process. The start time reported by various flavors of ps seems to be flopping back and forth by a minute.

I have many (a few hundred) "foo"...
Showing results 1 to 22 of 22

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