Search Results

Search: Posts Made By: matbrow
3,136
Posted By matbrow
@Chubler: It works!! great. Thanks.
@Chubler: It works!! great. Thanks.
3,136
Posted By matbrow
@chubler: You are right, dos2unix worked and the...
@chubler: You are right, dos2unix worked and the script does work now. I did create on the windows side for this one. Not for the other ones though. They still seem to have the problem. Thanks Bud. ...
3,136
Posted By matbrow
The version of linux I have is Red Hat...
The version of linux I have is

Red Hat Enterprise Linux WS release 4 (Nahant Update 5). Gawk also throws the same error.
3,136
Posted By matbrow
@chubler: I dont have the nawk executable, I see...
@chubler: I dont have the nawk executable, I see gawk. I do not have the rights to install the rpm too.
3,136
Posted By matbrow
@scottn & @yin Both the codes seems to work...
@scottn & @yin

Both the codes seems to work but in the statement

file=`sed xxxx`

It executes the sed statement correctly but puts an '=' sign before so when the cp command is executed it...
3,136
Posted By matbrow
@yinyuemi I tried your code and when I...
@yinyuemi

I tried your code and when I execute it

=/usr/proj/1.txt : cannot open (=/usr/proj/1.txt)
cp: missing destination file
Try cp--help

This is what I have in new.txt

.include...
3,136
Posted By matbrow
@Chubler_XL: I tried your script and it gives me...
@Chubler_XL: I tried your script and it gives me "unmatched" something is not matching. Doesnt give me a lot to debug.

@guru: tried your sed command and it comes up with message ".cp : command not...
3,136
Posted By matbrow
Chubler, Thanks, let me try it. Now...
Chubler,

Thanks, let me try it.

Now that you mentioned, 1.txt might have includes too.
3,136
Posted By matbrow
What I meant was while parsing the file, it...
What I meant was while parsing the file, it should find all the places where there is an include statement and whatever is there in the include statement, I should be able to copy that file...
3,136
Posted By matbrow
Help with sed/awk
This is what i am trying to do. I have a file which has the following

file name-new.txt

*
include "/net/proj/new/1.txt"
include "/net/proj1/new/2.txt"
*

What I would like is to copy the...
Showing results 1 to 10 of 10

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