Search Results

Search: Posts Made By: deneuve01
11,150
Posted By vgersh99
does it have to be csh/tcsh? #!/bin/ksh ...
does it have to be csh/tcsh?

#!/bin/ksh
awk '
FNR==NR {f1[$0];next}
{f2[$0]}
END {
for (f1I in f1)
for (f2I in f2)
print "sql " f1I " -u" f2I " <script.sql>>...
11,150
Posted By MadeInGermany
I guess you want to read from the two files...
I guess you want to read from the two files simultaneously?
With /bin/sh (bash, ksh, zsh, ash, dash, ...)
#!/bin/sh
while read x && read z <&3
do
echo "sql $x -u$z"
done <...
1,803
Posted By pravin27
perl -pe 's/\n/\n\n/g;s/\s+Test/\n\nTest/g' ...
perl -pe 's/\n/\n\n/g;s/\s+Test/\n\nTest/g' filename
Showing results 1 to 3 of 3

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