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

What does if [ “x” != x ] do in bash?
use xargs to mv the “find” directory into another directory
How can a console command executed from a program create a graphical dialog to respond to an input prompt?
Function instead of alias in C shell login script
difference between $() and `` reviewed [closed]
Using Headless FireFox to Save All HTML files using command line in Linux
ImageMagik doesnt convert in shell
Applescript or shellscript to delete config file?
How to get every character in a string in shell?
The Sort command does not work as expected
get last line from grep search on multiple files
Automatically close MsgBox in vbscript?
shell script executing several shell scripts for cron
removing files that have extenstion .bin then printing bye
Using Net::SSH Ruby library to remote command execution that requires sudo su - another user
Display all fields except the last

Categories

HOME
google-app-engine
grok
turing-machines
spark-streaming
c++11
camera
rom
parameters
emscripten
echo
trac
elasticsearch-5
teechart
openstreetmap
enthought
pega
siddhi
activecollab
alamofire
enterprise-architect
plink
docx
easyphp
foreign-keys
sigma.js
topology
replication
drive
poedit
short-url
mount
corpus
asymptotic-complexity
tizen-tv
event-flow
powershell-ise
reverse
openproject
watchman
android-augmented-reality
c9.io
setup.py
apache-stanbol
sharp-snmp
lpsolve
android-checkbox
term
openrasta
dotnet-httpclient
mongotemplate
bluez
openblas
trojan
arq
scalding
compiler-design
oracleclient
jqchart
mach-o
google-photos
jtree
stripe-connect
simplepie
actor-platform
jclouds
custom-errors
assertion
fiware-monitoring
rewrite
intel-c++
skspritenode
git-ftp
broadband
infosphere-spl
android-cookiemanager
pseudo-class
psr-4
imagefilter
verold
jjaql
ios8-extension
terminate
extjs2
git-repo
openargs
gwt-openlayers
eclipse-kepler
mbunit
kogrid
nebula
merb
kaleidoscope
android-sdk-2.3
panda3d
jquery-blockui
oracle-enterprise-linux
jquery-address
procedures
jquery-tools
htdocs
quotation-marks
http-daemon
facebook-iframe
maven-1
object-database
binomial-heap
openfaces
blender-2.49
django-piston
dojo-dnd
linfu-dynamicproxy

Resources

Encrypt Message