Hi Guys,
I am geting this message ".status: (WARNING): 0781-102 Invalid printer name: xerox".i m reading printer name from a text file.i try to print the value reading from file is correct xerox. if run lpstat -pxerox -l it works fine but when i try to read from file it throughs warining.please help me to fix this problem. thanks code is given below
cat test.txt
xerox
read line
echo $line
lpstat -p$line -l >t.txt
sed '1,2d' t.txt > file.csv