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

How to prevent iterm2 from closing when typing Ctrl-D (EOF)
wget capture stdout to variable
Getting exit code of shell execution inside define
How do you run scripts and output results to file in sequence using a shell script
How can I extract the last X folders from the path in k shell
In ksh how do I iterate through a list of directories and cd to them using a loop?
Shell Script to access a remote machine using ssh with usr and pwd both
Increment value of a variable within loop that reads line from file in shell script
print 3 consecutive column after specific string from CSV
Getting parent directory's basename in makefile
what's the below Unix shell mean?
Why am I getting if: Expression Syntax when I try to run this script?
Gnu make: read recipe output into make variable
Creating a CSV file from a text file
how to debug fish script?
Shell Script: Mac, live update counter

Categories

HOME
uml
grok
twitter-bootstrap-3
deep-learning
linkedin
dns
jax-rs
pascal
limit
ado.net
lanczos
minecraft-forge
tput
modbus-tcp
fileserver
html5-appcache
jersey-1.0
foreign-keys
digital-signature
bourbon
href
react-toolbox
google-cloud-print
sinch
bioinformatics
browser-sync
uitapgesturerecognizer
google-earth
kodi
wacom
papaparse
joomla2.5
apiary.io
parse-tree
git-rewrite-history
cd
xdocreport
modernizr
magento-1.9.3
attributeerror
install.packages
facebook-social-plugins
term
launchctl
qtranslate
boo
libjpeg
gameplay-kit
objectscript
choice
adafruit
file-uri
neon
mongodb-php
mta
drawstring
i386
shopping
http-status-code-401
spreadjs
bizagi
np-spring
libvlc
inf
include-guards
intel-c++
rpart
aspectj-maven-plugin
diff3
xmltype
boost-program-options
trdion2011
cuba
file-not-found
vbe
multiautocompletetextview
accesscontrolexception
light
code-duplication
abstract-data-type
dopostback
onmousemove
pyunit
josql
azman
inline-formset
zend-rest
sifr3
change-management

Resources

Encrypt Message