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 > 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