Search Results

Search: Posts Made By: Sheetal
14,674
Posted By Sheetal
for i in `grep $LINE $FILENAME | cut -d'|' -f2` ...
for i in `grep $LINE $FILENAME | cut -d'|' -f2`
Try putting double quotes arnd $LINE
14,674
Posted By Sheetal
In your code, echo "-----" "$LINE" "-----" ...
In your code,
echo "-----" "$LINE" "-----"
Remove the double quotes around $LINE. I think it should work.
14,674
Posted By Sheetal
#!/bin/ksh FILENAME="$1" grep a $FILENAME |...
#!/bin/ksh
FILENAME="$1"
grep a $FILENAME | while read LINE
do
echo "$LINE"
done
14,674
Posted By Sheetal
Is this your exact requirement? If you just want...
Is this your exact requirement? If you just want to print the lines then you can very well say followingin your script
#!/bin/ksh
grep a data.dat

If you want to do some processing then you can...
13,181
Posted By Sheetal
Thanks Perderabo
Thanks Perderabo
13,181
Posted By Sheetal
I think I asked for too much :( My script is as...
I think I asked for too much :(
My script is as follows
#!/bin/csh
echo -n "login: "
read login
echo $login

When i run the script
jolt% ./test_read.csh
login: sheetal
login: Undefined...
4,980
Posted By Sheetal
Can you post some sample data from yourfile? ...
Can you post some sample data from yourfile?

Using combination of awk and grep i think you should be able do achieve it.

Thanks
13,181
Posted By Sheetal
Thanks a lot for your help Sorry i didnt...
Thanks a lot for your help

Sorry i didnt mention that i am using ksh shell, and as per man pages for echo
"In addition, ksh's echo, does not have a -n option. :( "

doesnt matter ...i will...
13,181
Posted By Sheetal
Is it possible to read the username being on the...
Is it possible to read the username being on the same line ,
like login: Sheetal instead of
login:
Sheetal

Eg: when i say in my script
echo "login"
read username

and run this, it...
8,106
Posted By Sheetal
Will this help cat filename|grep -v '^$' ...
Will this help
cat filename|grep -v '^$'

You can forward this result to another file ....
cat filename|grep -v '^$' > filename2
190,593
Posted By Sheetal
Connect to sqlplus and then execute it as belows...
Connect to sqlplus and then execute it as belows if your sql file is just a Declare begin end SQL block:
#!/bin/csh

set db_login = <database user>@<connectstring>/<database passwd>

sqlplus -s...
Showing results 1 to 11 of 11

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