Search Results

Search: Posts Made By: scopiop
2,678
Posted By scopiop
Here is just 1 long line sysmem=$(($(cat...
Here is just 1 long line

sysmem=$(($(cat /proc/meminfo | grep 'MemTotal' | tr -s ' ' | cut -d' ' -f2) / 1024))
6,688
Posted By scopiop
Thank you for your helps. I have thought...
Thank you for your helps.

I have thought about how to approach how to write this program but did not knowing how the log system work. There fore, I ask some questions here may offend the...
6,688
Posted By scopiop
I have tried the approach to grep the date of the...
I have tried the approach to grep the date of the last line and cut out the Date field and I have problem of getting rid of the square bracket.


$cat /etc/httpd/logs/access_log | cut -d' ' -f4 ...
6,688
Posted By scopiop
79.114.31.152 - - [10/Jun/2013:07:43:07 -0700]...
79.114.31.152 - - [10/Jun/2013:07:43:07 -0700] "GET /~otangdec/cnit132/images/chic_dance.gif HTTP/1.1" 200 556572 "http://filelist.ro/details.php?id=23714" "Mozilla/5.0 (Windows NT 6.1; WOW64)...
6,688
Posted By scopiop
How to use xargs to repeat as a loop to grab date string?
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
My goal to...
6,223
Posted By scopiop
Thanks, I remove the IFS and it solved all my...
Thanks, I remove the IFS and it solved all my problem. I did not need to use FIELD SEPARATOR in this case of reading.... Thank you much.

scopiop
6,223
Posted By scopiop
you can see my attachfile to run my codes ...
you can see my attachfile to run my codes

Here is how the instructor want us run the program

$ cat inputfile | program.sh

Please create an inputfile that contains a blank line with a few...
6,223
Posted By scopiop
I have tried to test the input file that has 1...
I have tried to test the input file that has 1 blank includes with 2 characters SPACE and here the result.

if [[ ${#line} > $maxline && ${#line} != 0 ]]



input

<-- it's blank...
6,223
Posted By scopiop
I have ran in the problem since the instructor...
I have ran in the problem since the instructor does not allow me to send my output to another file and read back in again. He prefers that the program will output max and min lines without using a...
6,223
Posted By scopiop
Thank you Junior-helper and RudiC.
Thank you Junior-helper and RudiC.
6,223
Posted By scopiop
Need help how to search for shortest line from a file
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
I have to...
1,839
Posted By scopiop
Thank you.
Thank you.
1,839
Posted By scopiop
Back quote problem
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
Print out...
1,870
Posted By scopiop
Confuse how to use "$1" vs "$@"
I am confuse how to use the commands as follow:

grep "$1" /location of a file
vs
grep "$@" /location of a file


What are differences between these two types of search?
Where can I read to...
2,652
Posted By scopiop
Thanks, it works....
Thanks, it works....
2,652
Posted By scopiop
Protection and special characters
I am learning from the class how to protect the special characters and the script that I wrote here does not work when I am trying to pick up a single quote. It would complaint about parentheses...
2,061
Posted By scopiop
Thank you..... But I have written the new command...
Thank you..... But I have written the new command lines to get these output below. But I only want to pick out .bash .ksh and .zsh. Is the only command I can use here is grep? How do I use the grep...
2,061
Posted By scopiop
How to display in column format?
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
I would like...
Showing results 1 to 18 of 18

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