shell


How do i print multiple variables in separate lines into a file using shell scripting


i need to select string from one csv file to another properties file using shell
project.csv - this is the file which contains data like below & this may contain N number of lines/data
PN549,projects.pn549
SaturnTV_SW,projects.saturntv_sw
Need to collect each string "pn549" , "saturntv_sw" into a properties file
properties
[projects]
pn549_pt=pn549
saturntv_sw_pt=saturntv_sw
Below is the code i wrote to fetch the string and to print
cat "project.csv" | while IFS='' read -r line; do
Display_Name="$(echo "$line" | cut -d ',' -f 1 | tr -d '"')"
project_name="$(echo "$TEMP_Name" | cut -d '.' -f 2)"
echo "$project_name"
echo "$project_name"_pt="$project_name" > /opt/properties
How do i print multiple lines like i gave in example(properties)
i have got my answer, simply redirected the output

Related Links

How to limit shell script execution time?
Needed assistance with checking the exit code returned by a node script in shell
Shell script for generating HTML out put
Script to create individual zip files for each .txt file it finds and move them after
Direct output to standard output and an output file simultaneously?
How do i replace [] brackets using SED
Loading my .profile into SublimeText2
Shell scripting: raise to the power
How to check if an URL exists with the shell and probably curl?
low cost Linux development board for kernel development [closed]
Calling `command -v find` from GNU Makefile
How to copy and rename files in shell script
How to strace adb shell am start myandroidapp
How to change the sender's name or E-mail address in mutt?
Running script commands after SSH
Resizing terminal in Emacs

Categories

HOME
xml
twitter-bootstrap-3
delphi-7
nvd3.js
object
battery
serialization
solver
spring-data-redis
owl-carousel
ms-access-2016
nsbundle
maxscript
x264
barcode
rcloud
bitnami
azure-iot-hub
dynamic-sql
atlassian-stash
asp.net-mvc-viewmodel
shortest-path
windows-xp
asciidoctor-pdf
short-url
displaytag
roundup
subclass
sammy.js
carriage-return
python-import
latitude-longitude
google-data-api
news
ogc
odoo-website
tcc
apache-directory
uiimage
git-flow
headless
docpad
angular2-testing
atlas
pytables
stax
lrs
jboss-tools
scaffolding
dup
createprocess
cortex-m
toast
themoviedb-api
mod-proxy
matlab-deployment
node-serialport
osc
user-permissions
dot.js
code-documentation
grouping-sets
create.js
angular-carousel
authlogic
extjs2
windows-embedded-standard
rfc5322
spring-3
hibernate-entitymanager
gtm-oauth2
c++builder-xe5
tlf
scringo
insert-id
virtual-pc
curb
fitbounds
convention
htdocs
uipagecontrol
w3c-geolocation
django-piston
build-environment
glui
dsl-tools

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App