Search Results

Search: Posts Made By: ektubbe
7,985
Posted By vbe
sh UKBA_publish.sh UKBA Date_FINAL 3 should it...
sh UKBA_publish.sh UKBA Date_FINAL 3
should it not be:
sh UKBA_publish.sh UKBA $Date_FINAL 3 ?
2,490
Posted By zaxxon
See my comment in your post on using "urgent" in...
See my comment in your post on using "urgent" in the topic, thanks.

Your first script uses ksh syntax to declare an array with set -A. In your second script you use a shebang to call bash, which...
7,189
Posted By MadeInGermany
awk splits on whitespace into fields echo...
awk splits on whitespace into fields
echo "$output" | awk '$1=="bdfo_run_date" {print $2}'To store this in a variable you can use the ` ` or $( ) (replacing the command by its output)
output=`echo...
7,189
Posted By apmcd47
Quick and dirty sed solution: echo "${output}"...
Quick and dirty sed solution:
echo "${output}" | sed -n '/bdfo_run_date/ s///p'
Quoting ${output} preserves the formatting of the variable. sed is run in "no output" mode until it finds the string...
5,421
Posted By bakunin
First: "did not work" is NOT an analysis - it is...
First: "did not work" is NOT an analysis - it is like calling the doctor and then tell him "it hurts". It might be somewhat relevant to know what "it" is...

Second: RudiC already told you that...
2,100
Posted By agama
No awk, that's very odd. Assuming you have...
No awk, that's very odd. Assuming you have Kshell or bash, have a go with this. Replace the directory names with yours (I used the ones here to test).


#!/usr/bin/env bash
# change the...
4,486
Posted By parthmittal2007
cat name.txt | while read line do grep -e...
cat name.txt | while read line
do
grep -e $line source.txt >> resultfile.txt
done

Output-:
msisdn | imsi | name | subscription | product | date | recharge type
09311424354 | 09488439820...
4,486
Posted By knight_eon
You can check this code :) #!/bin/bash ...
You can check this code :)


#!/bin/bash

while read MSISDN; do
awk -F'|' '/^'"$MSISDN"'/ {print $0}' source.txt >> output

done < msidsn.txt
20,353
Posted By tmarikle
Here's a quick and sloppy way of doing it in KSH....
Here's a quick and sloppy way of doing it in KSH.
{
typeset IFS='
'
while read USER_NAME
do
USER_DIR=$(grep $USER_NAME /etc/passwd | awk -F: '{print $6}') ...
20,353
Posted By chaandana
This will do FileName='specify your file...
This will do

FileName='specify your file here'
while read LINE
do
echo $LINE
#do your stuff here
done < $FileName
20,353
Posted By spaceship
Thank you both for your help. Sorted
Thank you both for your help. Sorted
Showing results 1 to 11 of 11

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