Search Results

Search: Posts Made By: bashnewbee
1,214
Posted By bashnewbee
Perfect! Thanks Amaravathi!
Perfect! Thanks Amaravathi!
1,214
Posted By bashnewbee
Thanks for trying to help! But the problem is...
Thanks for trying to help! But the problem is that I don't know what variables are being passed. I just need to take all inputs passed to script_one and pass them to script_two. It needs to be an...
1,214
Posted By bashnewbee
Script that takes strings as input
Hello all!

I need to take a series of inputs passed to one shell script and pass them to a second shell script.

For example, the first shell script, script_one.sh, has the following inputs:
...
12,830
Posted By bashnewbee
tar command to explore multiple layers of tar and tar.gz files
Hi all,

I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for,...
6,142
Posted By bashnewbee
Thanks, Alister. My problem was that I only had...
Thanks, Alister. My problem was that I only had one % sign and therefore the output was everything before the last dash instead of everything before the first dash
6,142
Posted By bashnewbee
Extracting string before first dash in a file name
Hi all,

Given a file name such as

EXAMPLE=lastname-02.30.71-firstname-town-other.tar.gz

How do I print everything before the first dash (i.e. lastname)

Note: I do not know exactly how...
3,436
Posted By bashnewbee
Given a url how to get last part of file
HI,

I have a URL that points to a file:

LINK= "http://www.webpage.org/project/team2/file.tar"

However when I try to use wget on this variable I receive the following error.


wget $LINK...
16,673
Posted By bashnewbee
Given a path get the last folder in the path
Hi,

I have a path such as:

PATH= "/home/user/Desktop/folder1/folder2"and I want to output the last folder in the path i.e. "folder 2"

Any idea how I should do this? grep?

Thanks!
1,883
Posted By bashnewbee
Get Variables from txt file
I want to call a txt file in bash and be able to get the values of certain variables as displayed in the text file.

For example the text file appears as follows

TXT File:

First_Name=John...
Showing results 1 to 9 of 9

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