Search Results

Search: Posts Made By: ricky-row
2,546
Posted By ricky-row
Thanks for the explanation, But it needs some...
Thanks for the explanation,
But it needs some changes as, I could send all the lines in the file, Some lines occur with the colon in between.
...
2,546
Posted By ricky-row
Hi RudiC This is works really great when the...
Hi RudiC
This is works really great when the content is in two seperate lines as
PASS=test1/worked:fail/withthe/test/:go-to-school/grab/some:get/the/hope/to/work:success
...
2,546
Posted By ricky-row
@RudiC My requirement is both as you could see...
@RudiC My requirement is both as you could see from the first line "hope" lies between :*hope*: the other line doesn't have any : so, it should remove the entire content.

@MadeInGermany
I have...
2,546
Posted By ricky-row
Grep and neglect a specific string
Hi,

I have a file with "n" number of lines. I need to get rid of a specific line having a specific string from the file. I tried some possibilities but not successful.

For ex: in a file named...
7,087
Posted By ricky-row
Thanks Corona, I suppose to export those...
Thanks Corona,
I suppose to export those parsed individual variables and use them in the MAKEFILE. Like

echo $WORK
Ps

echo $TEST
Name

echo $DEL
let

Any inputs please,
I tried ...
7,087
Posted By ricky-row
Hi, I am really sorry for the confusions, I...
Hi,
I am really sorry for the confusions, I tried like this way

hacker@hacker:~$ cat test.sh
#!/bin/bash

NEED="TEST=Name WORK=Ps DEL=let"
buf=""

while [ -n "$NEED" ] ; do
...
7,087
Posted By ricky-row
Thanks Bakunin, But When I tried your code in...
Thanks Bakunin,
But When I tried your code in the script its not stopping. It keeps on printing TEST=Name infinitely. Could you give some correction on this, please
7,087
Posted By ricky-row
Hi, When I implemented this on my Makefile, I...
Hi,
When I implemented this on my Makefile, I got errors

while [ -n "nput" ] ; do
/bin/bash: -c: line 1: syntax error: unexpected end of file

code:


input=NEED="TEST=Name WORK=Ps...
7,087
Posted By ricky-row
How to parse the variable in .mk file?
Hi all,
I am passing a variable in .mk file as

NEED="TEST=Name WORK=Ps DEL=let"

I need to echo and export each variable like TEST, WORK. DEL

TEST=Name
WORK=Ps
DEL=let

We have to...
2,065
Posted By ricky-row
Sorry, I will have a note of it for the future...
Sorry,
I will have a note of it for the future queries. Thanks
2,065
Posted By ricky-row
Thanks for the code @RudiC. But I need to...
Thanks for the code @RudiC. But I need to implement this in .mk file Makefile, Is there any suggestion for implementing this in Makefile
2,065
Posted By ricky-row
Need to parse the multiple definitions from a single line and assign
Hi,
I need a help on my requirement that
eg: NEED="TEST=Name WORK=Ps DEL=let"

Here the definition can be n number, could anybody have an idea to get the output as,
TEST=Name
WORK=Ps...
3,472
Posted By ricky-row
But my requirement is to look for a file in the...
But my requirement is to look for a file in the location and if not has to create it first, if it is available I have to append these values in the end of the file. in different format, not directly....
3,472
Posted By ricky-row
Thanks for the quick reply, The corrections given...
Thanks for the quick reply, The corrections given by you are correct, I will make changes. But the last which you said. cat ../info/* > outputfile I can't understand it., where I have to implement it...
3,472
Posted By ricky-row
No, sorry The value of VAR should be the input...
No, sorry
The value of VAR should be the input of my question

---------- Post updated at 09:17 PM ---------- Previous update was at 09:06 PM ----------

test()
{
pushd packages &>/dev/null...
3,472
Posted By ricky-row
oh, sorry. test is for explanation, I have my...
oh, sorry. test is for explanation, I have my different function, its just for explaining the scenario
3,472
Posted By ricky-row
Hi, any idea on this?
Hi, any idea on this?
3,472
Posted By ricky-row
I have made this function in script, I need to...
I have made this function in script, I need to use the VAR in other way after the function, do you have any idea how to do that

if there are 10 files with *.rpm, I need to store the VAR values...
3,472
Posted By ricky-row
Its just near to the output, My idea is to make...
Its just near to the output, My idea is to make the delimiter to check from the front, because the output for thsi file is server-7.10.1-1-xyz-gbc.rpm is server-7.10.1 but I need only server, I am...
3,472
Posted By ricky-row
Thanks Aia, but my case some files have the...
Thanks Aia, but my case some files have the alphabets after the numerical too. for ex. abc-d-1.01-test.rpm. etc..
here we can use the delimiters as -(0-9) this is my idea, could you change your...
3,472
Posted By ricky-row
Logic to separate the first name in the file
Hi any logic to write a shell script to go back up into the previous directory and it has "n" number of files like abc-1.0.1.rpm , xyz-3.2.1.rpm , a-bd-2.3.1.rpm etc.. with same pattern. I need the...
Showing results 1 to 21 of 21

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