I want to save the client view in a file so that any member of my team can use the same file and sync similar files. Something like this:
cd new_client_folder
export P4CLIENT=new_client_folder
cat nfs/old_client_view.txt | p4 client -i
I am looking for a way where old_client_view.txt will act as a template and it can automatically replace the root and view fields specified in the old_client_view.txt file.
You don't need to save it as a file at all, but can save the client view as a template. Then simply import the template: