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

Shell Script for searching Makefile recursively in directories
Filter activity log entries by day and time span with power shell
Why this docker file is not running with a shell script?
Jenkins 2.18 withCredentials doesnt work in pipeline (Credentials Binding Plugin)
sed inplace replacement replaces itself [duplicate]
How to use Regular expression in OOZIE?
Get files which are created in last 5 minutes in hadoop using shell script
Secrets in oozie workflows
Shell script input directory
Returning list of files based on creation date
How to run shell script by using aws command?
Assigning a command output to a shell script variable
No output when QEMU shell script is executed
How to consistently record command output in a variable in UNIX
Shell: getopts commandline argument with conditional argument, how to do it?
How to select lines between two patterns?

Categories

HOME
django
oracle12c
merge
telegram
pda
toolbox
apache-spark-mllib
composite-primary-key
jsf-2.2
graphics
google-cloud-functions
dojo
hpc
bookmarks
data-visualization
lanczos
accessibility
mel
ipmitool
shared-libraries
esoteric-languages
standards
android-7.0-nougat
jquery-ias
libigl
backpack-for-laravel
string-concatenation
easeljs
aggregation
tosca
jquery-callback
android-maps
intersystems-cache
spotipy
calculation
magento-1.8
eviews
zend-debugger
deltaspike
erb
linkedhashmap
android-gridview
keras-layer
vue-chartjs
python-import
slacktextviewcontroller
searchkit
google-knowledge-graph
xcode7.3
linq-to-objects
hackintosh
vmware-fusion
flask-login
stylecop
bluez
reindex
filehandle
objectscript
drawstring
eigenvector
jclouds
lua-telegram-bot
eoferror
openbabel
paw
mintty
vsx
accesscontrolexception
poker
video-codecs
resource-management
device-width
curb
koken
tournament
metaweblog
timertask
instantiationexception
maven-1
folding
mathematical-notation

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