Search Results

Search: Posts Made By: sgtbobie
30,996
Posted By Scrutinizer
In that case the regular IFS could be used, i.e....
In that case the regular IFS could be used, i.e. any combination whitespace that consists of spaces, tabs or linefeeds.. So the use of spaces or tabs as field separator would not need to be...
30,996
Posted By Scrutinizer
Try something like this (not tested): ...
Try something like this (not tested):

DESTDIR="/destination/"
SORTDIR="/source/"
STRINGS="string1
string2
string 3"

sortmove ()
{
found=0
oldIFS=$IFS
IFS="
"
for str in...
2,765
Posted By radoulov
The array manipulation syntax varies between...
The array manipulation syntax varies between shells,
this is with bash (ksh93 and zsh support that syntax too):

$ ls -1
file name - something - NNxNN - something.xxx
file name - something -...
2,765
Posted By jayan_jay
$ ls *.* | nawk -F- '{print $1}' first log ...
$ ls *.* | nawk -F- '{print $1}'
first log
second file
third from start
$
2,765
Posted By radoulov
It's rather simple: $ ls -l total 0 ...
It's rather simple:

$ ls -l
total 0
-rw-r--r-- 1 xxxx xxxxx 0 Sep 29 16:03 first log - 1x05 - testing.txt
-rw-r--r-- 1 xxxx xxxxx 0 Sep 29 16:03 second file - 13x25 -...
Showing results 1 to 5 of 5

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