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

SSH MOTD per User [closed]
define variables while using curl to POST to url
Read selected line from text file using Shell
Shell scripting - write contents of variable to specific place in file?
gnuplot and Shell script read many files and create graphs
Running ios-sim with Jenkins
Switching rubies in shell script
Shell - renaming logfiles according to their timestamps
Use a shell script to rename a number of files depending on their contents
Tar: Directory Checksum Error
How to check if an argument has a single character in shell
Batch Files Rename sorted by date
countdown in shell without seq or jot
scala process with spaces not working correctly
Convert fonts into different types [closed]
Many to Many relationship in two files in unix [duplicate]

Categories

HOME
android
windows
eclipse
localization
merge
forms
static
pclxl
gradient
r-googlesheets
spring-data-mongodb
visual-studio-emulator
ado.net
python-multithreading
google-admin-sdk
joomla3.0
syntaxnet
jquery-ui-sortable
pcl-crypto
android-intent
heat
atlassian-stash
video-editing
wolframalpha
swagger-2.0
symbols
user-experience
firebase-analytics
failover
twiml
finagle
alm
userdefaults
xbox
jmockit
angularjs-material
contacts
latitude-longitude
magento-1.9.2.4
amazon-ses
unordered-map
apache-stanbol
lpsolve
optimizely
proget
dotnet-httpclient
facebook-pixel
openblas
headless
sundials
jtree
stripe-connect
usart
cudd
pure-css
qtplugin
xcode-server
neon
ng-grid
riot
php-socket
nio2
aspen
qbxml
relativelayout
dynamics-nav-2016
assertion
dynatree
grgit
forwarding
poppler
umlgraph
primitive-types
ghcjs
post-commit-hook
entry-point
gii
build-script
cuba
rcaller
android-audiorecord
scriptaculous
artemis
scrypt
ui-select2
abstract-data-type
font-awesome-4.0.0
mantle
http-status-code-410
intersect
extreme-programming
midlet
extconf.rb
multiplexing
expression-blend-4
screen-size
collectionviewsource
facebook-iframe
globals
request-headers
purepdf
sifr3
information-management

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