Search Results

Search: Posts Made By: raidkridley
4,267
Posted By raidkridley
hey, can't you use something like this for your...
hey, can't you use something like this for your command file?

#!/bin/bash
MAILDIR="/var/spool/mail/firstname.lastname"
TEXT="hey"
DESTDIR="$HOME/Mail/hey"
find "$MAILDIR" -type f | while...
1,778
Posted By raidkridley
how are you doing with Lab 6? I don't believe I...
how are you doing with Lab 6? I don't believe I have to change any of the file codes he gave in the Week 8 Notes (http://spot.pcc.edu/%7Ecdjones/200804/CS140U/03%20-%20Plans/week8.html) right?
5,235
Posted By raidkridley
...please...?
...please...?
5,235
Posted By raidkridley
.bashrc files modifying the PS1 variable?
Is there a command for finding all files on the system named ".bashrc" that modify the PS1 variable? I'd like to list the full file name(s) and the protection (including the full path).
2,086
Posted By raidkridley
thanks. the previous command didn't really work...
thanks. the previous command didn't really work that well even with the correct path.
2,086
Posted By raidkridley
Problem with find command.
I'm trying to display the full file name (including the full path) and file size of all files whose name (excluding the path) is longer than 10 characters.

I came up with find path -type f -name...
1,557
Posted By raidkridley
Grep userids
Hey, what's the best way to use grep to list all userid's on the system that do not contain the "." character (period). Also, could I edit the same command to list all the userid's on the system that...
1,999
Posted By raidkridley
Quick question.
I'd like to list all userid's on the system that have a .bashrc file in their home directory with a command like "cat /etc/passwd | grep -f", however I'm not quite familiar with using grep. Any...
1,982
Posted By raidkridley
What would I have to edit in that command to get...
What would I have to edit in that command to get exactly what I need?
1,982
Posted By raidkridley
Finding files that midify the PS1 variable.
Any help developing a command to find all files on the system named ".bashrc" that modify the PS1 variable. I wanna list the full file name, including the full path, and protection. Nothing else.
4,400
Posted By raidkridley
Combining two commands.
Is there anyway to achieve "find /home -name "*.bashrc" 2>/dev/null" and "PS1="\n>"" in the same command? I just wanna add a line to the previous command to change the PS1 variable to ">".
1,621
Posted By raidkridley
creating a file by editing another one?
BASH shell:

I'm trying to create a copy of the /etc/passwd file named "./copy-passwd" that contains only the entries for userids that have a home directory in /home/inst, and then change each...
11,504
Posted By raidkridley
anyone?
anyone?
11,504
Posted By raidkridley
I believe the command I'm looking for is...
I believe the command I'm looking for is something like /etc/passwd | sed, but I'm not familiar with using sed to create a file by changing the properties of another file.
11,504
Posted By raidkridley
Creating a copy of the /etc/passwd file
Is there a command for creating a copy of the /etc/passwd file named "./copy-passwd" that contains only the entries for userids that have a home directory in /home/inst, and change each entry in your...
11,266
Posted By raidkridley
Finding a file created within the last 24 hours
which out of atime, ctime, or mtime are the closest to diplaying only the files created within the last 24 hours. is it even possible to find only the files created in the last 24 hours, because I...
4,689
Posted By raidkridley
BASH shell, I'm using the Bourne-Again shell.
BASH shell, I'm using the Bourne-Again shell.
4,689
Posted By raidkridley
Find and display largest file on system
What is the correct command for finding and displaying the largest file on the system?

I don't know how to specify "largest" with "find", and pipe that to something that will display the file...
2,243
Posted By raidkridley
I figured finding and displaying the largest file...
I figured finding and displaying the largest file on the system would be a small and simple command that actually finds and displays only the largest file on the system.
2,243
Posted By raidkridley
it doesn't matter which command, I just want to...
it doesn't matter which command, I just want to find and display the contents of the biggest file without any other information.

cat, ls, find, more, or less aren't exactly doing that with | xarg...
2,243
Posted By raidkridley
Quick question about finding a large file
what is the correct command for finding the largest file and displaying it without any error information?

I can find it, but how do I display it in the same command?
2,803
Posted By raidkridley
Creating a file that contains output from a command, and then displays itself
hey, I'm trying to create the command that will create a file named user.txt that contains the output of the command cut -d: -f1,5 /etc/passwd, and displays itself afterwards.

I don't know how to...
58,038
Posted By raidkridley
I'm trying to display the userid's in the...
I'm trying to display the userid's in the /etc/passwd file, but not display any other information from the file

ls lists to much information
13,349
Posted By raidkridley
thanks
thanks
58,038
Posted By raidkridley
display the userid's of a file
what command can I use to display the userid's only of a file; specifially the /etc/passwd file?
Showing results 1 to 25 of 27

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