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

Tell if a user has SUed in a shell script?
Why does this if statement fail in bourne shell?
Bourne Shell For i in (seq)
Bash: recursively copy and rename files
Custom shells started automatically from .emacs
shell script merge two list and remove duplicates
LaTeX: Which OS am I running on?
Regarding UNIX Grep Command
shell script to extract mail attachments with specific filename
shell script: recursively find a file with a keyword
Bourne Shell Left Right Justify
Remove line breaks in Bourne Shell from variable
Shell Scripting: Generating output file name in script and then writing to it
caching problem
piping to variables
shell script to quickly jump to a directory

Categories

HOME
beautifulsoup
api
paraview
fuelux
gdb
polymer
phpmyadmin
toolbox
jsf-2.2
socket.io
seo
xbee
scripting
alsa
onclick
zip
azure-container-service
drop-down-menu
vimdiff
cmdb
ipmitool
filechannel
supervisor
frequency-distribution
shared-libraries
eip
keytool
google-content-api
sar
undertow
jquery-callback
siri
android-sharedpreferences
ntp
alm
magento-1.8
cognos-bi
left-join
laravel-eloquent
linkedhashmap
modalviewcontroller
mnist
navigator
amazon-ses
urlsession
doc
visa
microsoft-metro
congestion-control
http-request
wc
getchar
dynamic-linq
ntvs
globalize
rserve
podscms
modelsim
git-flow
shinobi
materialized-path-pattern
greatest-n-per-group
mongodb-php
jquery-jscrollpane
xdoclet
fuzzywuzzy
kendo-upload
toran-proxy
avisynth
google-books
poppler
fuelcms
rubaxa-sortable
pax-exam
evolus-pencil
batik
uncompress
liquid-layout
cwrsync
snackbar
matlab-deployment
uvc
adehabitathr
mass-assignment
metatrader5
paw
ora-00904
live555
koala
http-patch
away3d
workitem
route-provider
epiceditor
onload-event
mysql-error-2013
http-status-code-410
preload
web-farm
fsevents
filemerge
multiplatform
xui
photolibrary
vs-android
object-database
jqueryform
binomial-heap
tabpanel
spread
glui
purepdf
change-management

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App