Search Results

Search: Posts Made By: StevePr
8,051
Posted By StevePr
Thanks for the quick response I'll go do some...
Thanks for the quick response I'll go do some research.
8,051
Posted By StevePr
Returning exit code from a while read $inputline
Hi searched hi and wide for this with no luck.

Maintaining a bash script that

#!/usr/bin/bash
#does some stuff like setting env etc.
f_do_dbwork

...
..

#Now I want to exit with the...
10,686
Posted By StevePr
your OR examples aren't the same length. The new...
your OR examples aren't the same length. The new string is len 14, x's only, and the original 13, 9 and 16 . So you need to define rules of how to handle over and under size as most databases don't...
48,483
Posted By StevePr
if you want exactly 5 0's no matter the length of...
if you want exactly 5 0's no matter the length of the string then
x=`echo -e "450\n2345"`
for i in $x
do
z=`expr 5 + length $i`
printf "%0${z}d" $i
done
2,615
Posted By StevePr
I don't have a lot of time but awk would work...
I don't have a lot of time but awk would work well here.

Something like
for i in $input
do
action=`gawk -F: '{print $1}' $i`
case $action in
ADD) grep -ov ...
5,525
Posted By StevePr
The way I'd do it would be to read file 3 line by...
The way I'd do it would be to read file 3 line by line using sed or awk to get get the columns, untested as I'm not near a Unix machine.

file3=`cat $filename | awk '{FS="(Whatever it...
44,782
Posted By StevePr
Practicing Vi is easy go here GnuWin32...
Practicing Vi is easy go here GnuWin32 (http://gnuwin32.sourceforge.net/) and download it for windows.

Vmware is dead easy to install.
Showing results 1 to 7 of 7

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