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 shell script to read files, copy files and delete files
How to extract values from a java properties files in a bash/shell script and store in a variable and cd to that variable
KShell regular expression comparision not working
Difference between Ctrl C and Ctrl \
Why is an extra file being created in FOR loop of batch program?
How to determine if any of the background process is done in shell and their elapsed time?
shell: any way to use `uniq -c` taking into account a prior `uniq -c`?
Remove part of a string using KornShell
Unix Shell : Search file and append its last occurence
how to effectively segregate URLs, IP Addresses, Subnets, FQDNs
Compare Date-Time Stamps [duplicate]
Start lein repl with commands from the terminal
UNIX Shell Scripting Output
How to use an array with remote variable on remote server in shell scripting?
Unix Shell: Summing up values, one per line but skipping every nth row
Shell has become very slow since upgrading OSX [closed]

Categories

HOME
android
url-redirection
polymer
github-for-windows
css3
mstest
sitecore
rendering
spring-data-mongodb
echo
pearson-correlation
boto3
octave
line
ipmitool
automatic-ref-counting
intercom
renjin
gource
bitnami
parameter-passing
azure-iot-hub
template-engine
cfml
dataflow-diagram
gmock
custom-post-type
flooding
angular-translate
ceylon
user-defined-functions
ntp
autodesk-designautomation
livelink
complex-numbers
deltaspike
clickjacking
hunspell
least-squares
alphabetical
playframework-2.1
xcode7.3
release
odroid
gdata
jvmti
resolution
branching-and-merging
softmax
knime
uiimage
monkey-testing
optimizely
pom.xml
ntvs
serde
tf
context-switch
git-flow
jtree
renaming
iotivity
gogs
udpclient
project-organization
upx
cortex-m
nullable
blitline
jbase
roadkill-wiki
android-launcher
pax-exam
sapscript
ember-cli-rails
vacuum
sha512
branch-and-bound
pyobjc
botan
nutiteq
diff3
shopizer
broadband
ghcjs
functional-java
synapse
android-audiorecord
ora-06550
notorm
light
unit-of-work
node-blade
font-awesome-4.0.0
composite-component
onload-event
twisted.web
joomla3.1
lambdaj
window-decoration
entity-attribute-value
htdocs
filemerge
update-statement
mysql-error-1205
tmx
request-headers
lxr
localizable.strings
blind
netbeans6.1

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