Search Results

Search: Posts Made By: surfer515
37,617
Posted By surfer515
Need to find the end of this particular line and...
Need to find the end of this particular line and insert " right before ^n: dat is not always present.
37,617
Posted By surfer515
cat $ff ...... adds " before each table (good)...
cat $ff ...... adds " before each table (good) and ^M" after each line in the script (bad!) instead of adding only " at the end of the string table /dir1/dir2/aaa.dat. .... Very close!
37,617
Posted By surfer515
May be I ma doing something wrong but it is not...
May be I ma doing something wrong but it is not working:
#!/bin/bash
for ff in `find . -type f`
do
cat ff|sed 's/table /table "/'|sed 's/$/"/'
done
37,617
Posted By surfer515
I though it should be something like this (I know...
I though it should be something like this (I know that sed is wrong):
#!/bin/bash
for ff in `find . -type f`
do
sed -e 's/table *$/\table \"*$\"/g' ff
done
#take everything after word table...
37,617
Posted By surfer515
Sorry. For ex., there are two files file1.prg and...
Sorry. For ex., there are two files file1.prg and file2.prg in Unix driectory. 1st file has string :
select into table /dir1/dir2/aaa.dat.
2d file has a string :
select into table...
37,617
Posted By surfer515
Yes. Any ideas?
Yes. Any ideas?
37,617
Posted By surfer515
Add double quotes around the string
I have a line in multiple scripts:select into table /dir1/dir2/file.dat
dir1 and dir2 are the same but file.dat is different from script to script.
I need to include /dir1/dir2/file.dat into...
Showing results 1 to 7 of 7

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