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

Writing a shell program stdout
How to insert a different delimiter in between two columns in shell
get X11 window id of terminal from shell
Script is being executed manually but not at root crontab on suse 10 sp2
not found error in shell script
Shell Script to extract two zip folders
If file in Unix
Exclude certain directories in find results in AIX
Taking out few words from a sentence within characters using UNIX
How to create a random string in standard shell on hp-ux
how to add a table name described at the top to be duplicated for each row of a table in awk
Shell Script Moving Files into Folders by Date (i.e. mm-dd-yy) Format [duplicate]
what does -d command with command unzip in shell scripting
merge N sorted files using shell
Removing double quotes in a CSV with decimeter inside
Shell scripting - Email script based on user input

Categories

HOME
sonarqube
azure-stream-analytics
kentico
assembly
porting
depth
powerpoint
opendj
simulink
parameters
crystal-reports-2013
opengl-es-3.0
symmetricds
enterprise-architect
bitnami
azure-powershell
linear-algebra
google-container-registry
blade
imagemap
visual-studio-extensions
aggregation
zxing
strongname
licensing
angularjs-components
genexus-sd
handler
subclass
tizen-tv
weather
spring-security4
linkedhashmap
vue-chartjs
least-squares
openerp-7
cd
protein-database
kill
stringtokenizer
portforwarding
android-exoplayer
photos
double-click
openresty
openal
remedy
flyout
cpu-cache
visual-studio-2008-sp1
ziparchive
wso2developerstudio
eigenvector
lua-telegram-bot
phpwebsocket
libav
wiredep
pax-exam
ocra
liquid-layout
mirror
google-refine
android-broadcast
cryptographichashfunction
exceldatareader
nodelist
addressing-mode
entry-point
angular-carousel
radiant
cfcache
git-repo
syndicationfeed
http-patch
scrypt
scringo
gpars
composite-component
wp7test
sentestingkit
rmiregistry
koken
cgimage
workflow-services
promotion-code
umra
photolibrary
cruisecontrol.rb
office-2007
drupal-fivestar
addchild
zend-rest
blender-2.49
dsl-tools
complex-event-processing
scrubyt
java1.4
pbcopy
blind
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