Search Results

Search: Posts Made By: ewoods
2,537
Posted By ewoods
The value of $x is a long line where dir1 is the...
The value of $x is a long line where dir1 is the last word in that line. So I was just trying to pull the last word from that line and add the word MODIFIED to it. Like I said, I'm still kind of...
2,537
Posted By ewoods
Command substitution within an echo
I'm trying to get this to work and I'm not really sure how to do it.

echo $x | awk '{print $NF}' MODIFIEDThe output I'm trying to get should look like:

dir1 MODIFIED

Where dir1 will be the...
3,013
Posted By ewoods
Works like a charm! Thanks for your help.
Works like a charm! Thanks for your help.
3,013
Posted By ewoods
Storing lines of output into a script variable
I'm sure this is a simple thing but I can't figure it out. In a script that I'm writing, I'd like to be able to store each line of output from "ls -l" into a variable. Ultimately I'd like to end up...
Showing results 1 to 4 of 4

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