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

Ansible shell comand with root elevation
Using screen to keep program alive in a shell script
grep not working inside script when uses variables
Is there such a thing as an http shell?
fish shell: how to add a newline before existing prompt?
why php from web broswer doesn't find a file that has special characters
bourne shell whitespace intricacies
Jenkins fail build after executing all commands if exit code != 0
post curl to rest interface using a shell script
Not able to run git diff within shell script with local variable
AWS No instance visible to run a command
How to execute commands on different CLI from shell script?
Replace dot . in make file recipe
Make statement executable
Shell - check if file contains string with newlines inside [duplicate]
Script exits after view is set (clearcase)

Categories

HOME
google-app-engine
api
fuelux
apache-flink
telegram
android-studio-2.2
google-spreadsheet
jsf-2.2
google-cloud-functions
static-site
bing-maps
opengl-es-3.0
eip
qsqlquery
internationalization
powershell-v5.0
fileserver
sse
sigma.js
imagemap
systemtime
exploit
fable-f#
mat
android-maps
browser-sync
failover
calculation
mobx
testbed
papaparse
engine.io
searchkit
timing
tex
metawidget
google-data-api
mongoose-schema
angular-http
plan-9
httrack
jboss-4.2.x
hammer.js
zenhub
vibrate
swingworker
rxtx
uicolor
watch-os-2
tooleap
observablecollection
kango-framework
aurora
np-spring
boomerang
include-guards
doctype
ocra
sql-server-data-tools
nutiteq
xmltype
gamekit
theos
iiop
post-commit-hook
live555
ios8-extension
synapse
openargs
gpars
route-provider
kaleidoscope
virtual-pc
asplinkbutton
wimax
cakephp-1.2
saleslogix
adobe-media-server
thttpd
floating-point-exceptions
infobright
urlrewriter
w3c-geolocation
pos-for-.net
request-headers
lxr
feasibility
windows-identity
scrubyt
business-model

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