Search Results

Search: Posts Made By: b.hamilton
1,875
Posted By b.hamilton
nawk won't accept comma as delimiter
I have a text file delimited by commas, with three fields (no " marks).

I want to use awk to create a fourth field which is equal to the line number + field 1 + .txt

I've searched this forum...
978
Posted By b.hamilton
Text file creation problem
Using KSH, I have one text file which just contains a list of distinct references on each line, e.g.;

123456789
987654321
15457544X
164450200

etc. The file will always be called...
61,684
Posted By b.hamilton
sed : remove whitespace
I'm trying to remove the whitespace at the end of each line of a text file in ksh.

Im using

sed s/ $//g' file1.txt > file2.txt

It's not working. Any clues?
14,335
Posted By b.hamilton
OK - I dind't realise that the space before the...
OK - I dind't realise that the space before the _END_ would have any effect, this is the first time I've ever used << _END within an else/then, and generally indent them as it makes it clearer. Will...
14,335
Posted By b.hamilton
still not working
Hi, I checked for that but it's still not working.

I commented out that whole if/then/else/fi, as its not really required, and then saved a test version of the script and removed the comments (I...
14,335
Posted By b.hamilton
fi
if/then/else/fi now in bold.
14,335
Posted By b.hamilton
else unmatched
I'm getting an else unmatched error on the script below..

For info : SYDB is the database name entered as a param on the command line.

#Check the DB name
HBDB=`sql $SYDB <<_END_ | grep '^|' ...
Showing results 1 to 7 of 7

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