Search Results

Search: Posts Made By: Torrid
613
Posted By Scrutinizer
Hi, try: num=$(wc -l < /root/demp/hehe.txt) ...
Hi, try:
num=$(wc -l < /root/demp/hehe.txt)
By using the redirect, variable num will only contain the number. Otherwise variable num will contain both the number and the filename, which leads to...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 06:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy