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

Applying OSX tags based on filename with hazel
During Ant build Adobe Flex 3 shell script getting killed even within RAM limits
Why am I getting a syntax error ('{' unmatched) in this SL4A script?
how to make the cloudmonkey output plain text with no style info?
Syntax error occurs with cli node/coffeescript app installed globally via npm
what does the second www-data mean?
How to get the files from a folder everyday and store it in another folder using shell script?
sed with option -i and flag /d set
Command substitution in shell script without globbing
Get the local user during ssh session
How to type ^A in unix shell script/VI
Linux shell script - copy folder from VPS to local PC
How to use fnmatch from a shell?
Scrapy: Data retrieved with xpath in shell but not in item
How to write from a particular column in shell?
Cut functionality is not working in shell script

Categories

HOME
grok
twitter-bootstrap-3
api
apache-flink
telegram
wakanda
rdbms
mjml
angular2-material
flex
apiblueprint
solver
replace
nsbundle
permissions
polling
code-coverage
sendgrid-api-v3
augeas
siddhi
resultset
line
datastage
dynatrace
selectize.js
mongodb-csharp
package.json
mvc-mini-profiler
dreamweaver
imessage
replication
selinux
lilypond
guzzle
xcode-ui-testing
ms-access-web-app
failover
sqlpackage
finagle
volatile
memory-address
sendbird
least-squares
playframework-2.1
railstutorial.org
css-position
vmware-fusion
android-softkeyboard
oracle-service-bus
signal-strength
procfile
phpdbg
servermanager
ovf
user-defined-fields
launchctl
tinymce-3
modelsim
colorbar
rackspace-cloud
android-instrumentation
chromium-os
redistributable
android-dateutils
qiime
omniauth-facebook
php-socket
ikiwiki
poppler
rubaxa-sortable
visual-sourcesafe-2005
batik
airbrake
graphics2d
java-security
jama
ora-00904
live555
synapse
solace-mq
joomla-template
video-codecs
pdfviewer
os.system
josql
w3c-geolocation
quotation-marks
dot-emacs
application-verifier
scrollbars
movieplayer

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile