Search Results

Search: Posts Made By: barath
2,201
Posted By barath
Sorry for the inconvenience......much larger...
Sorry for the inconvenience......much larger doesn't meant here that it can go to thousand or million lines...the above code is crafted on the basis of similar kind(datalins1.dat) of input...
2,201
Posted By barath
yes the file (datalins1.dat) could be much...
yes the file (datalins1.dat) could be much larger......not necessary only 12 lines(for the above example only 12 lines).....but the format of the file would be always constant ( four fields separated...
2,201
Posted By barath
Looping in case of duplicates
complinagetest () #function name
{
if [ -f complins.dat ];then
rm complins.dat
fi
touch complins.dat
i=0
while read line
do
if [ $line == "SNA" ]; then

va=`grep -w "$line" datalins1.dat...
2,201
Posted By barath
Looping in case of duplicates
14`~abc`~9`~11
14`~abc`~9`~10
36`~ee`~7`~9
36`~ee`~8`~9
58`~rtt`~12`~7
70`~gff`~13`~8
86`~tyu`~6`~12
86`~tyu`~6`~13
92`~mjh`~5`~6
28`~jkl`~10`~DNA
32`~mjk`~SNA`~5
82`~jkli`~11`~DNA...
3,779
Posted By barath
Hi, When I use eval cat "$line" or ...
Hi,

When I use
eval cat "$line"
or
cat $(eval echo $line)
and my filename contains spaces - I get the following error - " No such file or directory"



For Ex:

-> cat...
3,779
Posted By barath
Thanks a lot. This worked.
Thanks a lot.
This worked.
3,779
Posted By barath
Resolving a parameter which is passed as parameter
Hi,
I have the following files.
->cat scr.sh
export TMP_DIR=/home/user/folder1
export TMP_DIR_2=/home/user/folder2
while read line
do
cat "$line"
done<file_list.dat
------------------------...
Showing results 1 to 7 of 7

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