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
Shell: script.sh is writing empty files
extract information from a file in unix using shell script
invalid condition in the if statement [duplicate]
I have to run a command in shell script and that command is asking for username and password and I want to hardcode it in script
How to install shell commands to enable the atom command at the command line?
shell command to achieve SCP task in Cloudbees
Subtract corresponding lines
What to add to `Path` in “System Variables” to install shell commands to enable the Atom command?
Wild characters in parameters of Unix Script
How to use awk to chop pattern in a line
how to remove unwanted text in vi with regex or similar pattern match
The second command doesn't run as root
How to install remotely PHP-Composer?
Getting log entry “disk online” from system log
How to break from case only and continue other loop
Change directory before running local script