Quantcast
Channel: I don't want my ls command in my script to print results on screen - Ask Ubuntu
Browsing all 3 articles
Browse latest View live

Answer by bac0n for I don't want my ls command in my script to print results...

Your script will print each of the commands in your pipeline to the terminal because you are running it with the -x flag. Fromman bash: -x Print commands and their arguments as they are executed....

View Article



Answer by WinEunuuchs2Unix for I don't want my ls command in my script to...

Updated Answer After posting script used in the question it was discovered: #!/bin/bash -x was used where the -x option outputs all commands to the terminal. Removing the -x solved the original...

View Article

I don't want my ls command in my script to print results on screen

I run "ls -lX" over files umbrella31_*.xvg. I run a command that searches the number on the fifth column of the ls command output, that is larger let's say than 20000. It looks like this: ls -lX...

View Article
Browsing all 3 articles
Browse latest View live


Latest Images