Search Results

Search: Posts Made By: MBN
11,398
Posted By MBN
I have just realized that the log file I was...
I have just realized that the log file I was trying to grep saves any single dates as eg: Nov 2 with 2 spaces not Nov 02 :confused: so when I created the script it was the 1st of Nov so the today...
11,398
Posted By MBN
using todays date to create a report using grep
What i'm trying to do is to use grep to search through a few files for a selected daemon and only report on today's date.
I think I got it sorted apart from in the txt file the date has 2 gaps...
2,230
Posted By MBN
I dunno if what I need is in the sort of same...
I dunno if what I need is in the sort of same lines as this but I need to copy all *.txt files to a directory but change any reacurring names eg like multi readme.txt would have to rename as to keep...
23,508
Posted By MBN
Oh god I'm such a novice at all this linux.......
Oh god I'm such a novice at all this linux.... Can understand what you mean about the username as yeah I was just checking in the home directory for the user name ... this could be renamed ...
...
23,508
Posted By MBN
Yeah I have the directory thing sorted but having...
Yeah I have the directory thing sorted but having trouble with the above :(



#!/bin/bash

cd /home/

echo -n "Enter Users Name : "
read name
while read a; do
if [[ -z "${a}" ]];...
23,508
Posted By MBN
Validating user input is not blank
Trying to create a script in BASH that would ask the user to enter another user name making sure the input is not blank before they hit enter then to check the home directory of that user does exist,...
Showing results 1 to 6 of 6

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