Search Results

Search: Posts Made By: watsup
3,886
Posted By watsup
Read last word of file name
Hi
I am writing a script that needs to read all file from a directory and print only last word of all file names.
My script:

for file in /documents/files/
do
$shortFile=$(file##.*)
echo...
2,861
Posted By watsup
Thanks Tyler..Got it
Thanks Tyler..Got it
2,861
Posted By watsup
use SED to replace repeat statements
Hi
I need to write a script that read a input file that had same statement repeatedly to replace only 2nd & 5th time repeated statements (ex: This is UNIX forum) with another statement ( UNIX forum...
Showing results 1 to 3 of 3

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