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 > What will be value of available?
Syntax error: newline unexpected (expecting “)”) [on hold]
Re-direct output of a shell to a txt file
Arduino sketch stops running after 5 mins on Edison
How to force an error if file is missing?
How long does ngrok's randomly generated webid last?
Shell glob results are quoted if no response
Insert a line of text in the end of a function
Unix Shell scripting in AIX(Sed command)
non-zero value of 2 numbers with a return exit code in shell
find: missing argument to `-exec' error from shell script
Build failed while appending line in source of docker container
Delete file in multiple directories on remote server using SSH
jq - Cannot index string with string
awk or shell script to change format of a tab delimited file
Can't execute remote ssh command from irssi

Categories

HOME
phpmyadmin
mjml
pclxl
opendj
bitbucket-api
google-apps
permissions
big-o
android-json
mvc5
elasticsearch-5
qpython
angular-dart
jsonpath
automatic-ref-counting
shared-libraries
atlassian-stash
shortest-path
cfml
bourbon
boost-icl
poedit
dataflow-diagram
openmdao
sqsh
scrollview
catch-unit-test
dsx-desktop
login-script
installshield-le
getpixel
sharding
mnist
jpad
graphhopper
dm-script
android-augmented-reality
p4merge
stringtokenizer
android-softkeyboard
lpsolve
drupal-theming
show-hide
procfile
opencmis
vaadin-elements
dynamic-linq
sonarlint-eclipse
serde
mschart
netbeans6.8
launchctl
janus
pybrain
gets
slackware
node-request
latin
signalr.client
mta
dimension
jtwig
redis-cluster
exim4
uncompress
sha512
skspritenode
diff3
shopizer
infosphere-spl
uncaught-typeerror
primitive-types
browserify-shim
structuremap3
ray
extjs2
gae-quotas
synapse
high-resolution
mysql-error-1044
jammer
mbunit
scringo
pdfviewer
diagrams
vs-android
maven-1
easyb
burndowncharts
murmurhash
lobo-cobra
wordprocessingml
fdf

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile