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 do I use if/else statements in shell scripts?
asterisk in ksh variable
How to grep http request and response for specific MSISDN in logs
how to delete the string from the file in unix
set path in vagrant machine
run command as other user in unix shell script csh
Applescript Variable issue
Custom shell script to kill uWSGI by pid
How to split a file into multiple files based on a delimiter, and remove the delimiter also, in Unix
How do I set a value returned from eval to a variable? (Shell)
multiple logical operators in shell script causing an issue [duplicate]
Extra ! sign in email message body while sending mail through shell script
Shell script with expect module to backup running config of router via console
How to swap two fixed column values for each occurrence in vi shell?
work with loops in bash
How to deploy a new version of binary to a server when it's already running?

Categories

HOME
jpa
time-complexity
apache-jena
pagination
rdbms
pda
saml-2.0
sitecore
error-handling
knitr
cublas
emscripten
bookmarks
google-admin-sdk
frontend
odoo-8
opengl-3
little-proxy
google-chrome-app
fhir
startup
pybossa
internationalization
firefox-addon
intershop
fileserver
vuejs
google-data-studio
identity-management
production
nim
drive
rubymotion
imageresizer
itunes
slidetoggle
custom-post-type
exchangewebservices
errbot
vex
complex-numbers
zend-debugger
cognos-bi
testbed
jmockit
laravel-eloquent
yowsup
timing
gdata
opensmpp
hackintosh
ssrs-2014
libgphoto2
term
dotnet-httpclient
vugen
activeperl
appdomain
android-testing
jqchart
ampps
xcode-server
macaulay2
pre-build-event
swizzling
cfchart
lua-telegram-bot
php-socket
bizagi
createprocess
nio2
java-money
terracotta
extjs-grid
branch-and-bound
avahi
bufferedinputstream
nodelist
packet-sniffers
rickshaw
psr-4
dot42
twitter-bootstrap-rails
visual-studio-express
isqlquery
beaker-testing
nevron
swfobject
apache-abdera
twisted.web
dopostback
relative
role
catransform3d
android-holo-everywhere
update-statement
cgbitmapcontextcreate
mtu
lobo-cobra
cldc
todos
lemmatization

Resources

Encrypt Message