Search Results

Search: Posts Made By: Muki101
7,325
Posted By Muki101
I have a question. My script is like this at the...
I have a question. My script is like this at the moment.


#!/usr/bin/awk -f

BEGIN {RS=ORS="\n\n"}


//{
gsub("\t", "\n")
}

$1=$1


END {}


Why won´t if make a new line? It...
7,325
Posted By Muki101
Thanks alot Franklin52! Works just fine :) ...
Thanks alot Franklin52! Works just fine :)

But I was wondering whether it`s possible to do it entirely int AWK?
7,325
Posted By Muki101
Thanks Franklin52, the code you gave works just...
Thanks Franklin52, the code you gave works just fine, except there is one problem. I want it to make a new paragraph when tab is used as well.

So if the input file is:


First line of the...
7,325
Posted By Muki101
The output of Tytalus' code is pretty much what...
The output of Tytalus' code is pretty much what needed, but yes, I want it to work with paragraphs longer than 2 lines as well. But I really didn't understand the code itself very well to change it...
7,325
Posted By Muki101
AWK scripting
I have a text file in which the text has been divided into paragraphs (two line breaks or tab marks a new paragraph) and I want to make a script which output would delete line breaks within the...
1,288
Posted By Muki101
Already tried that before and it doesn't work. As...
Already tried that before and it doesn't work. As I understand it still uses find as the main command and when recursively going through the lines the ls just adds the rest of the information in...
1,288
Posted By Muki101
Problem with shell script
Here is the code:


find `pwd`/$1/ -name "*.*" -exec ls -l {} \;


It finds all the files of a given directory with last modified time. Any ideas how I could sort them by modified times (older...
1,318
Posted By Muki101
EDIT: ls -ldtr `pwd`/dirname/* | grep -v...
EDIT:

ls -ldtr `pwd`/dirname/* | grep -v "^d" seems to work :)

So thanks!
1,318
Posted By Muki101
Bash script help
Hello,

I need to make a script that will display files of a directory (with full path) and they need to be sorted by modified time (older ones first)

This is what I have done so far:


ls...
Showing results 1 to 9 of 9

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