I am looking for a substitution for "> pf_print" in Linux.
Example:
Here pf_print is a file containing printer name, print command. The above command is trying to get the # of copies from the program and trying to pass thru script.
The above command is not working in linux. Please suggest me an alternative to this command, that I need to use in the script.
Thanks
Moderator's Comments:
Please use next time code tags for your code and data
Hi,
What is the actual difference between these two? Why the following code works for process substitution and fails for command substitution?
while IFS= read -r line; do echo $line; done < <(cat file)executes successfully and display the contents of the file
But,
while IFS='\n' read -r... (3 Replies)