Hi ...
I have a file saju-list with the following contents
Nidesh:25
Dinto:26
Johnson:28
I want to write a script to display the output like this :
NAME Nidesh
25
NAME Dinto
26
NAME Johnson
28
I write my script like this :
for x in $(cat /in/tmp/saju-list)
do
service_name=$(cut -f1 /in/tmp/saju-list)
value=$(cut -f3 /in/tmp/saju-list)
echo "NAME $service_name "
echo $value
sed -e '1d' /in/tmp/saju-list
done
But i dont get the desired output ...
Could you check if there's anything wrong in the script..