Search Results

Search: Posts Made By: SilversleevesX
1,794
Posted By radoulov
awk -F'\n' '{ print $2, $1, $3, $4 }'...
awk -F'\n' '{
print $2, $1, $3, $4
}' OFS='\n' RS= ORS='\n\n' infile
4,776
Posted By agama
I completely missed that the send, was being...
I completely missed that the send, was being placed on its own line in the output!! Initially I was using spaces to separate the fields and realised that there were embedded spaces and when I...
4,776
Posted By durden_tyler
$ $ cat datafile ;Canyon ::grand:: Send,...
$
$ cat datafile
;Canyon
::grand::
Send, Canyon
Exit

;Elevator
::lift::
Send, Elevator
Exit

;Office
::9to5::
Send, Office
Exit

;Cabin
::log::
Send, Cabin
4,776
Posted By agama
If you are maintaining the file, and thus have...
If you are maintaining the file, and thus have control over it's format, I'd suggest keeping your "source" as one record per 4 line entry like this:


;Canyon|::grand::|Send,|Canyon|Exit|...
4,015
Posted By pravin27
Could this help you? echo...
Could this help you?
echo 'example.jpg:QVC,honeywell-labs.com,COM,blah' | awk -F"[:,]" '{for(i=1;i<=NF;i++) { print "fld"i,"-",$i}}'
9,718
Posted By Corona688
This code seems strange.... n=$(echo $line) What...
This code seems strange.... n=$(echo $line) What is its function when n="$line" would seem on the face of it to suffice?

file=${n%,*}
dest=${n#*,} And if you're trying to read fields splitting...
6,826
Posted By hongwei
I dont get what you mean by "enter the...
I dont get what you mean by "enter the [your-file-name] and [source-URL] parts on the same line with the "homeperm"
6,826
Posted By Corona688
If you want to use parameters, a function would...
If you want to use parameters, a function would be better than an alias. Not all shells have them but bash definitely does. You can use them like little callable scripts you put in your .bashrc
...
6,253
Posted By Corona688
Oh, you mean, not executing stuff below the loop...
Oh, you mean, not executing stuff below the loop during the loop? Yes, that's normal.
6,253
Posted By agama
Did you notice that there is a missing double...
Did you notice that there is a missing double quote on the last echo in the script? I would have expected you to have seen an error, but the behaviour might be exactly as you described all caused by...
6,253
Posted By Corona688
It's not supposed to do that -- something else is...
It's not supposed to do that -- something else is going on.

I don't think this is doing what you think it's doing:
if [[ $MANY == *PhotoFiltre* ]] Asterisks there won't match against $MANY, they...
Showing results 1 to 11 of 11

 

Featured Tech Videos

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