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

resolve Makefile wildcard % inside shell function
Rescheduling an at job
How to append something at the end of a certain line of the text
Words before and after selected text
Shell script parameter substitution
long process shell script cgi?
How do you Build a GUI shell for DOS?
Two variables from a line
Shell Script to update the contents of a folder - 2
Suppress “nothing to be done for 'all' ”
Shell script to find files with similar names
How to use multiple arguments with a shebang (i.e. #!)?
Are there any tools for modifying INI style files from shell script
cp command should ignore some files
Replacing one XML element with another
Dialog --input box

Categories

HOME
prism
cheerio
case
camera
sitecore
tivoli
carousel
simulink
nuget-package
webix
teechart
google-schemas
minecraft-forge
vimdiff
activecollab
rtf
plink
internationalization
microsoft-dynamics-nav
xmonad
symfony-console
sse
asciidoctor-pdf
href
dynamically-generated
windows-server-2003
siri
intersystems-cache
wcag
tpm
sinch
exchangewebservices
browser-sync
failover
constexpr
xbox
livelink
anki
complex-numbers
rselenium
python-import
imx6
openproject
release
magento-1.9.3
skylink
install.packages
wc
photos
apache-directory
rfc3339
procfile
plan-9
getchar
lightning
context-sensitive-grammar
oozie-coordinator
monkey
flac
trigger.io
pocketsphinx-android
smartfoxserver
cronexpression
redistributable
xdoclet
firebase-security
gcloud-ruby
maybe
grgit
themoviedb-api
avisynth
intel-c++
text-search
mirror
zend-currency
phpldapadmin
qtwebengine
cryptographichashfunction
nodelist
boost-program-options
paw
ignite-ui
wxformbuilder
gnumeric
mutual-authentication
paste
vsx
spring-3
hibernate-entitymanager
kendo-dataviz
script#
font-awesome-4.0.0
apache-commons-dbutils
luabind
htdocs
tmx
non-clustered-index
jqueryform
sifr
dsl-tools
google-wave
dojo-dnd
scrubyt
business-model
appliance

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