Search Results

Search: Posts Made By: saurabhkoar
1,947
Posted By kalpeer
try the below scripts. it works as you expected...
try the below scripts. it works as you expected unless there is a space.

te4:

#! /bin/bash
val=`awk '{
i=0
printf("%s ",$i)
}' inp4`
./te5 $val

te5: prints the argument received

#!...
1,947
Posted By kalpeer
below script will ignore # and blank space ...
below script will ignore # and blank space


#! /bin/bash
val=`awk '$0 !~ /^[#]|[\ ]/{
i=0
printf("%s ",$0)
}' inp4`
./te5 $val
echo $val

if you want add any other pattern apart from #...
Showing results 1 to 2 of 2

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