Search Results

Search: Posts Made By: nuclearpenguin
35,568
Posted By nuclearpenguin
Oh, I see. I was inputting the arguments wrong....
Oh, I see.
I was inputting the arguments wrong. Instead of writing the year month day, I was writing the year day month. It's working now.
Thanks for the help everyone!
35,568
Posted By nuclearpenguin
Ok I ran the script with $ ./appoint.sh 2015...
Ok I ran the script with
$ ./appoint.sh 2015 25 01
and got
35,568
Posted By nuclearpenguin
I tried putting quotes around the values of...
I tried putting quotes around the values of $DATE, but still doesn't seem to do anything.

Also, yes, I believe the format is correct. The string I'm trying to look for that is contained within the...
35,568
Posted By nuclearpenguin
Using $variables in grep
Hi, I'm currently trying to use variables in grep on my script. Printing the variable via echo works fine. Also, if I hard coded the date of the appointment it works just fine. But, if I try to use...
1,583
Posted By nuclearpenguin
Thanks you're the best! Also, I just found out...
Thanks you're the best!
Also, I just found out the last code I put out works and the reason it didn't print anything was because the string didn't exist in any of the files lol
1,583
Posted By nuclearpenguin
How to list the names of the files from all the subdirectories?
Hi, I'm currently trying to print the names of all the .txt files in the subdirectories that contain the string I'm searching.

I tried with this code, but it seems that it searches for the names...
2,048
Posted By nuclearpenguin
I LOVE YOU :b:
I LOVE YOU :b:
2,048
Posted By nuclearpenguin
Printing a 2 column output using scripts
Hi, I'm fairly new to scripting and Unix. I'm having trouble printing the number of directories and number of files in all the directories in 2 columns using scripts.


#!/bin/bash

echo "# of...
Showing results 1 to 8 of 8

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