Search Results

Search: Posts Made By: GmGeubt
1,452
Posted By GmGeubt
hey it worked thanks!
hey it worked thanks!
1,452
Posted By GmGeubt
help with sed one liner
hey everyone,
I want to remove some characters from a string that i have with sed. For example if my string is:

a0=bus a1=car a2=truck

I want my output to look like this:

bus car truck
...
11,989
Posted By GmGeubt
cool it works thanks!
cool it works thanks!
11,989
Posted By GmGeubt
Using sed to round a number
Hey everyone, I was wondering if i am able to write a sed command to round a number to two decimal places. So for example:

1.58674
would be
1.58

I just want to chop off the numbers to the...
1,959
Posted By GmGeubt
i want to use command2 result in command 1. so...
i want to use command2 result in command 1. so the part in double quotes would be command 2

---------- Post updated at 06:20 PM ---------- Previous update was at 06:05 PM ----------

ok i got it...
1,959
Posted By GmGeubt
ok so this program greps the file $p for the...
ok so this program greps the file $p for the parameter that the user enters and outputs some modified text with sed.

grep $1 $p|sed s/.*=.//|sed 's/<.*//'


this program greps the parameters...
1,959
Posted By GmGeubt
redirecting script output
Hello,

I am interested in taking the output from a script i wrote and using it as input to a different script i wrote. So for example i want to take the output from program2 and use it as a...
2,779
Posted By GmGeubt
ya i tried that before but without the quotes....
ya i tried that before but without the quotes. Thanks that seems to work now thank you a bunch!
2,779
Posted By GmGeubt
the file is too big to paste here but here is an...
the file is too big to paste here but here is an example....
some info from the file:

78 16300 Charlotte Amalie town VI 12331 4741 0000003024 0000000002 +18344032 -064933536
78 18100 Charlotte...
2,779
Posted By GmGeubt
ya i used exactly what you have. The output is...
ya i used exactly what you have. The output is too long for the parameters im giving it. The parameters i am searching should only output one line but its giving me every line in the file.
2,779
Posted By GmGeubt
didnt work.
didnt work.
2,779
Posted By GmGeubt
grep unknown number of params
Hey i got trivial question but i cant figure it out. I want to grep a file for multiple unknown parameters. The user will enter these parameters at the command line. For example...

./program red...
Showing results 1 to 12 of 12

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