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

unix utility to compare lists and perform a set operation
After xserver-xorg update 1:7.7+16 `su — pi -c “startx” &` not working anymore
Extract different rows from 2 text files and append to new file
Suppressing zero padding in 'date' output
how to move hbase shell table data with schema from one cluster to another
Why isn't gcloud available to /usr/bin/sh on Google Compute Engine instances?
Changing database connection details in a file using bash script
How to change the date format in a file in shell script?
How to change the variable which contains a path string to another path string
Export variable declared in script.sh and Import the value in mupltiple Makefiles
Extract each line from a text file and compare it with all the lines in the file to avoid duplication in shell script
To remove line based on string
How to write and execute shell script from code in vxworks 5.5?
How to get the individual exit codes of all the shell scripts invoked by a parent shell script?
why shell for expression cannot parse xargs parameter correctly
Passing System date to Sqoop

Categories

HOME
shell
embedded
jpa
time-complexity
apache-flink
dns
knitr
alarm
switch-statement
alsa
nuget-package
windows-ce
emoji
keytool
dreamweaver
wolframalpha
sar
lilypond
symbols
user-experience
pagespeed
string-concatenation
event-store
xunit
strongname
fragment-backstack
apktool
intersystems-cache
iis-express
mobx
volatile
laravel-eloquent
android-sugarorm
biztalk-rule-engine
instantiation
slacktextviewcontroller
roblox
magento-1.9.2.4
cd
urlsession
spring-mvc-test
c9.io
dbnull
plr
android-checkbox
berkeley-db-je
cnc
magic-draw
reindex
modelsim
edit
arules
objectscript
django-1.10
rsa-archer-grc
slackware
vulcanize
neon
signalr.client
macaulay2
nikeplus-api
drawstring
appscale
http-status-code-401
angular-ui-typeahead
dbamp
file-move
forwarding
morton-number
cgi-bin
eoferror
ansi
telepat
qtwebengine
procedural-programming
nodelist
angular-gettext
android-vibration
gii
create.js
with-statement
file-not-found
dsym
xmltodict
inputmismatchexception
modular
actiondispatch
cascadingdropdown
sqlclr
mkv
sentestingkit
iboutlet
database-create
jsr286
role
socketserver
squishit
resharper-6.0
cruisecontrol.rb
vs-android
cfwindow
wcf-instancing
complex-event-processing
sqlobject

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