Quantcast
Channel: Difference between two ways to grep from input file - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by Kusalananda for Difference between two ways to grep from input file

Assuming that your command substitution is quoted (if it wasn't, most of the words in scan.data would be taken as filenames to run grep on) and that the first word in the file does not start with a...

View Article



Difference between two ways to grep from input file

I have an input file we'll call scan.data. It contains a list of words that I'm going to grep. I've found two different ways of doing this, but I get drastically different results:IFS=$''find / -type f...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>