I need some help combining elements of scripts to form a read output. Basically I need to get the file name of a user for the folder structure listed below and using count the number of lines in the
i want to find a process that was inv开发者_如何学编程oked by my application. And when i use \"ps pgrep -u\" i need my application \"User\" id.
I have a file lets say it is called filename.c I am trying to find if the file is being used in one of the following ways
hi how do you search for a specific field in a lis开发者_运维问答t using grep? For example in a file myfile.txt I need to search for the word apple. Thanks,
After running the command find . -name \"R*VER\" -mtime +1 -exec sh -c \'grep -H ^err \"{}\" || echo \"{}:No error\"\' \\;
Can anyone help to show me how to do this. I use netstat to find out how many servers are currently connected to my servers, and I\'ve got the following list, server001 and 002 has a number of servic
I am trying to开发者_StackOverflow社区 get the word \"1.23\" from this string. The String is \"1 USD in SGD 1.23\".
I want to get the first string that matches my regular expression. For example I have the String RCPT from unknown[211.147.3.74]: 450 4.7.1 Client host rejected: cannot find your hostname, [211.14
I have trouble capturing text like the following in input: \"xy$\" I did grep -eo \'([a-zA-Z]+)$\' grep -eo \'([a-zA-Z]+)\\$\'
I\'m trying to get my terminal to return the latest .txt file, with pat开发者_JAVA百科h intact.I\'ve been researching ls, grep, find, and tail, using the \'|\' functionality of passing results from on