Search Results

Search: Posts Made By: jojan
11,131
Posted By jojan
if you are using dos shell jsut double quotes...
if you are using dos shell jsut double quotes the file name like "you'are crazy.mp3"
11,131
Posted By jojan
If you are using windows dos shell you jsut need...
If you are using windows dos shell you jsut need to specify the file it in the double quotes "you're cray"
7,513
Posted By jojan
Fantastic , that was new to be , I thought of...
Fantastic , that was new to be , I thought of getting rid of the the "disk write" happening while out putting it in to a file.

sed -n "$begin, $end" $logfile >engines
exec < engines
while read...
7,513
Posted By jojan
You mean I ahve to change the below line sed...
You mean I ahve to change the below line
sed "$begin, $end" $logfile | while read line

to
exec < test.file
while read line

But I do not want to read file fully , but only from begin to end.
7,513
Posted By jojan
Help in dealing with arra
I am readinga file lin by line and based craeting a arry of unique elemenst from the second column of the line. However when i coem out of the while loop my array becomes empty , can eny one tell me...
1,801
Posted By jojan
Thank you!
Thank you!
1,801
Posted By jojan
reas a file partially line by line
I need to read a file fron nth to n+m line by line using bash

ie
while read line
do
# soem stuff
done <<file

But The file is so big I am only intersted in reading ceratin portion of the...
10,943
Posted By jojan
Thansk , But I also have to print the originla...
Thansk , But I also have to print the originla values , with diffeences 0, incase I did not find a matching line.
10,943
Posted By jojan
I got it, it look like bash does not support...
I got it, it look like bash does not support floating point arithmetics

I have to use awk, like the following

diff=`echo $f1col1 $f2col2 | awk '{print $1-$2}'
10,943
Posted By jojan
floating point shell variable
I have a two files
>cat file1
jjjjj 10.345 6.673
ppp 9.000 5.883

>cat file2
mmm 80 10
jjjjj 10.305 6.873
ppp 9.000 5.883

I am reading file 1 line by...
93,089
Posted By jojan
fanstastic it worked ! My file is very large ,...
fanstastic it worked ! My file is very large , so I do not want to grep it again and again! Instead do s single grep and store all insatnces together
Thanks
93,089
Posted By jojan
Grep results to store in a shell variable
I have the results of a grep with -n store in a shell variable
ie
VAR=`grep -n -e 'PATTERN' file`
How ever I am missing the line breaks in the variable , How do I store the resualts of grep with...
Showing results 1 to 12 of 12

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