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

Trying to get files from today date and result is displaying yesterday date files as well (Unix Korn Shell)
Nagios plugin that runs at 2pm daily
remove with double-asterisk wildcards does not work [duplicate]
Zero byte output File in Unix Environment
Format data using Awk Statemnt
Passing environment variables over ssh for remote expansion
Providing input for additional authentication using Plink
Way to create multiline comments in Bash?
How do you execute a SHELL script in multiple directories without having to generate a run script
How to stop GNU make from expanding dollar signs in MAKEFILE_LIST?
POSIX shell: escaping line-continuations in backquote command-substitutions
ms-dos command shell sort returns “Input file specified two times.”
Shell script: Want to find all files in last hour and cat the last 1000 lines to 1 log file
Need to a grep a file for specific word and count the occurrence for every hour
MSAccess VBA Shell Command - Max Length?
How to compute spectrum using awk or shell scripting?

Categories

HOME
httparty
eclipse
fabricjs
apache-jena
ecmascript-6
gpu
mjml
grafana
permissions
babeljs
polling
spring-session
banner
angularfire2
trac
modal-dialog
joomla3.0
bing-maps
categorical-data
octave
project-intu
emoji
zerobrane
plink
flatpak
google-content-api
wolframalpha
smartclient
undertow
systemtime
php-mysqlidb
exit
roundup
send
scatter3d
papaparse
linkedhashmap
docfx
c9.io
naming
jboss-4.2.x
opennms
trojan
singleinstance
payara-micro
carrot2
reindex
oozie-coordinator
payload
rocks
file-uri
xdoclet
http-status-code-401
lua-telegram-bot
riot
pushbots
state-restoration
assertion
grgit
vigenere
extjs-grid
cgi-bin
doctype
omnifaces
typeconverter
zend-currency
actionfilterattribute
gamekit
procedural-programming
cocos3d
mdichild
named-parameters
draw2d-js
multiautocompletetextview
scringo
joomla-template
android-sdk-2.3
midlet
procedures
fsevents
google-ajax-api
w3c-geolocation
inline-formset
qglwidget
request-headers
qtabbar
technical-debt
idatareader

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile