Search Results

Search: Posts Made By: pikamon
1,478
Posted By Jotne
EDIT: Did not fix the space. Here is another...
EDIT:
Did not fix the space.
Here is another version that should work.
awk -F/ '{print $NF"§"$0}' file | sort | awk -F§ '{print $2}'
Path=/home/pikamon/Desktop/ABC;...
1,478
Posted By Subbeh
It's not the prettiest solution but it works: ...
It's not the prettiest solution but it works:
awk -F/ '{a[$NF]=$0}END{for (i in a) print i,a[i]}' inputfile | sort | cut -d\; -f2
or
sed 's#.*/\(.*\)#\1 &#' inputfile | sort | cut -d\; -f2...
6,543
Posted By disedorgue
Hi, Also, you can try: paste -d' ' <(echo $a|...
Hi,
Also, you can try:
paste -d' ' <(echo $a| tr ' ' '\n') <(echo $b|tr ' ' '\n') <(echo $c|tr ' ' '\n')
Regards.
6,543
Posted By ahamed101
Another way... ar=($a); br=($b); cr=($c) ...
Another way...
ar=($a); br=($b); cr=($c)
for((i=0;i<5;i++));
do
printf "${ar[i]} ${br[i]} ${cr[i]}\n"
done

--ahamed
6,543
Posted By MDominok
#!/bin/bash a="aa bb cc dd ee" b="11 22 33...
#!/bin/bash

a="aa bb cc dd ee"
b="11 22 33 44 55"
c="AA BB CC DD EE"

for segment in 1 2 3 4 5; do
echo $a | cut -d' ' -f${segment} | tr -d "\n"
echo " " | tr -d "\n"
echo $b | cut...
4,664
Posted By krishmaths
You may try the find command find $HOME...
You may try the find command


find $HOME -type f -exec ls -l {} \;


or


ls -ltcR $HOME | awk '/^\// {dir=substr($0,1,length($0)-1)} /^-/{$9=dir"/"$9;print}'
Showing results 1 to 6 of 6

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