Search Results

Search: Posts Made By: masta
7
3,364
Posted By masta
asterisk?
I see a possible problem.
The asterisk symbols on input might be evaluated in awk as an expression.



cat testInput | awk -F' ' '{printf(" %s",$2)}'
8-17,113

See how two ones' (11) came...
2,169
Posted By masta
embeded while number generator
Edit: fixed some trivial typos

for X in `i=0;while ((i < 300)) ; do echo $i ; ((i += 1)) ; done`
do # the for loop cmd list
printf "for X:%3d\n" $X
done
40,334
Posted By masta
Some shell parameter substitution might help. ...
Some shell parameter substitution might help.

blar=foo.JPG
echo ${blar/JPG/jpg}

will output:
foo.jpg
So that means you can do:

for JPG in `find /path -type f -name \*.JPG` ; do mv $JPG...
5,248
Posted By masta
No person is wrong.
No person is wrong.

Scottn's solution is, in my personal opinion, not as ideal as my own proposal.

The reason is that Scottn's solution requires to invoke `ls -l`, where mine uses pure shell...
5,248
Posted By masta
This will do stuff on the files if they exist
for FILE in a*
do
ls -l $FILE
strings $FILE
. . .
done
6,666
Posted By masta
Maybe just input the files to sqlplus:
cat /path-of-dir/*.sql | sqlplus "uname/password@sid"
Showing results 1 to 6 of 6

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