Search Results

Search: Posts Made By: SoVi3t
28,230
Posted By SoVi3t
Using 'diff' exit status in an if statement
is there a way to compare two files using diff (ex: diff 1.txt 2.txt) in an if statement?
I read that the exit status of diff is 0 if the files contain the same content. 1 if they're different. So...
10,538
Posted By SoVi3t
find files with SUID bit turned on
I'm writing a script that will search for files with the SUID bit turned on, and put the list in a file called id.txt

i read that files with the SUID bit turned on are chmod'd to 4000, so i tried:...
14,194
Posted By SoVi3t
god bless u for answering both my questions :)
god bless u for answering both my questions :)
14,194
Posted By SoVi3t
Counting total users
wow, back again :)

I am trying to write a program that has many functions, however one of the functions will count the total number of users in the database.


I want to just use wc -l passwd...
2,952
Posted By SoVi3t
Input A Menu Selection In A Variable
hey all, me again....having a problem with my code, where I essentially am trying to show a menu, have the user select an option (from 1 to 5), then display which selection they picked...


...
2,201
Posted By SoVi3t
How Do I Create A Multi Line Menu Variable?
I want something that would show up basically like:

Menu
-----
1) Option 1
2) Option 2
3) Option 3

Pick one:


I tried menu = " Menu \r\n ----- \r\n 1)Option 1...
2,049
Posted By SoVi3t
Script that copies one file to/over another
1. The problem statement, all variables and given/known data:

Write a script that asks for 4 arguments, and the 1st and 3rd need to be -i and -o, and the 2nd/4th need to be file names.
...
6,827
Posted By SoVi3t
Changing / to - with vi
Hi just learning Unix in college now and this is my first post here, so I dunno if this goes here, or in the homework section technically.

Anywho, trying to change all the / in a file into - using...
Showing results 1 to 8 of 8

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