Search Results

Search: Posts Made By: Topaz
4,406
Posted By drl
Hi. The shell ksh does not allow nesting --...
Hi.

The shell ksh does not allow nesting -- like this:
#!/usr/bin/env ksh

# @(#) s1 Demonstrate nested parameter expansion in shell.

# Utility functions: print-as-echo,...
4,406
Posted By rdcwayx
In fact, your command is good enough. echo...
In fact, your command is good enough.

echo "/dir1/dir2/dir3/filename.stuff.morestuff.garbage" |awk -F "[/.]" '{print $(NF-3),$(NF-2),$(NF-1)}' OFS="."
Showing results 1 to 2 of 2

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