Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Sed in While loop not working
Name: Brucee Date: April 22, 2004 at 03:26:10 Pacific OS: Windows 2000 CPU/Ram: Intel Celeron 2 GHz / 512
Comment:
Hi , I have a folder containing abt 50 files each of which has the tag <xyz>abcd</xyz> I want to replace the text between the tags - abcd (it need not be abcd , can be 50 diff strings ) in this case with the file names of these files or anything unique .. I am trying ls REG* | while read i do sed s/\<xyz\>*\<\/xyz\>/\<xyz\>i\<\/xyz\>/ $i done
but getting sed:command garbled ... Pls suggest ..
Summary: Hi, I want to get the second field from a file (report.txt)like this: $ cat report.txt SheetName|RecordName|FieldName|TableName|ColumnName|Change Summary||2||No specification received for output file ...
Summary: Can someone please help me to understand why the following code is not working? Once compiled, it displays the usage error message. I can't figure why... #include <stdio.h> #define PROG_NAME "xe" v...
Summary: Hello, here is my issue - I am running a script with a while loop. I have an awk statement within the while loop that uses an incremented variable. the script does not like me to use a variable in t...